[Pkg-alsa-devel] Bug#364730: Additional information on this bug

Patrick Draper pdraper at gmail.com
Fri Nov 3 03:31:40 CET 2006


I initially opened a mutt bug, but discovered today that my bug is
actually caused by the libaoss.so which I preload. I then found this
bug report.

I have a small test case which demonstrates the bug.

#include <stdio.h>
#include <errno.h>
int main (int argc, char **argv)
{

   char folder[30] = "test";

   FILE *fp = fopen (folder, "r");
   fp = freopen (folder, "r+", fp);
   ftell (fp);

   return 0;
}


When run with LD_PRELOAD=/usr/lib/libaoss.so the preceeding program
segfaults every time. I derived the program above directly from a
process of commenting code from mutt and tidying up the piece that
remained that showed the error.

When LD_PRELOAD is not set, the code above does not segfault.

My system is a typical Debian Testing setup, with Version: 1.0.12-1 of
the alsa-oss package.

I use LD_PRELOAD because I work in Linux, but run Windows under
VMware. I listen to podcasts with a Linux mp3 player, and without the
libaoss.so the sound card will not mix sounds. If my boss tries to IM
me on the Windows side, I don't hear the sound notification because
the Linux mp3 player has locked the sound device.

I will be installing some Alsa source code to track down this problem.

-- 
Patrick Draper --- pdraper at gmail.com
Austin, Texas --- http://www.pdrap.org




More information about the Pkg-alsa-devel mailing list