Bug 103780

Summary: LD_PRELOAD=/usr/lib/libaoss.so causes segfaults
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Bjoern Jacke <bjacke>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: x86   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bjoern Jacke 2005-08-10 11:04:55 UTC
up to 9.3 I was using LD_PRELOAD=/usr/lib/libaoss.so with alsa dmix globally
which worked great at let me play sound from any application simulanously
without noticable latency. In 10.0 it doesn't work anymore with some X11
applications, some applications still work ...

It can simply be reproduced with xcalc:

LD_PRELOAD=/usr/lib/libaoss.so xcalc
Segmentation fault

reinstalling the alsa RPM from 9.3 on the same system makes it work again
Comment 1 Takashi Iwai 2005-08-10 12:41:07 UTC
Are you sure that the 9.3 alsa.rpm works on SL10.0 system (ie. new gcc4/glibc)?
I still get segfault with 9.3 alsa.rpm.

It seems that fcntl(fd, F_SETFD, xxx) causes segfault.  Interestingly, other
F_XXX seems OK.

Jaroslav, any clue?
Comment 2 Takashi Iwai 2005-08-10 13:11:08 UTC
OK, I found the culprit.  It's a missing initialization in fcntl wrapper.
Comment 3 Takashi Iwai 2005-08-10 14:13:56 UTC
The fixed package is submitted to STABLE.