Bug 16428

Summary: SDL crashes, maybe new glibc fault?
Product: [Retired] Red Hat Linux Reporter: Need Real Name <marcus.schiesser>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-17 15:09:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
simple test case which segfaults none

Description Need Real Name 2000-08-17 11:38:55 UTC
Hi, I encountered a strange problem.

Every program which uses SDL_mixer segfaults (I think its also maybe every
program which uses SDL and sound). I debugged one with the
following result.
SDL_Init works, but after calling
      if (Mix_OpenAudio(22050, AUDIO_S16, 2, 256) < 0)
it immediately segfaults.
following message:
[New Thread 2049 (LWP 31136)]
[New Thread 1026 (LWP 31137)]

Program received signal SIGSEGV, Segmentation fault.
__pthread_unlock (lock=0x8052f78)

But there was now problem with Redhat 6.2. I think it seems to be a problem
with the new glibc? Any workaround available (like using the old glibc?)

Thanks,

Marcus

Comment 1 Jakub Jelinek 2000-08-17 12:11:06 UTC
My suspicion is that SDL tries to unlock an already unlocked mutex.
Can you tell me which exact program you can reproduce that behaviour with
(I cannot find Mix_OpenAudio in SDL).

Comment 2 Need Real Name 2000-08-17 12:52:16 UTC
Created attachment 2586 [details]
simple test case which segfaults

Comment 3 Bill Nottingham 2000-08-17 15:09:46 UTC
I can't reproduce this here on a test system; it
runs OK.

Comment 4 Need Real Name 2000-08-18 12:08:14 UTC
you're right after changing back to sdl-1.1.3 from the pinstripe distro it works
flawlessly (i tried with sdl-1.1.4). But my problem with pinstripe isn't solved
yet. XMPS with avi plugin does work under redhat 6.2, but not with pinstripe and
somehow the sdl sound is related to the problem. (this sound problem also occurs
with sdl-1.1.3). Maybe I can build a new test case.