[uClibc] [uClibc 0000214]: ldso crash with alsa on ppc

bugs at busybox.net bugs at busybox.net
Thu Apr 7 16:30:31 UTC 2005


A NOTE has been added to this issue.
======================================================================
<http://busybox.net/bugs/view.php?id=214> 
======================================================================
Reported By:                aurel
Assigned To:                uClibc
======================================================================
Project:                    uClibc
Issue ID:                   214
Category:                   Shared Library Support
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
======================================================================
Date Submitted:             04-06-2005 15:37 PDT
Last Modified:              04-07-2005 09:30 PDT
======================================================================
Summary:                    ldso crash with alsa on ppc
Description: 
I've just tried to update from uClibc-20050310 to uClibc-20050406 and this
introduced a crash in MPlayer when using -ao alsa. This crash only
happens
on ppc (iMac G3), not on x86.
I narrowed down this crash between 20050320 and 20050321, and more
precisely to patch 10044 :
http://uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/ldso/ldso/ldso.c?rev=10044&r1=10037&r2=10044
I investigated a bit further and found a fix by reintroducing some lines
that were dropped by patch 10044. I know this is certainly not the right
fix, but it may help to understand the problem, and at lest it fixes the
bug for me in the meantime.
So here is the patch I made. I don't understand all the details of ldso,
but I will try to help to solve this issue if you tell me what to do.
======================================================================

----------------------------------------------------------------------
 aurel - 04-06-05 16:04 
----------------------------------------------------------------------
Sorry but I've done my x86 tests a bit too quickly. In fact I have exactly
the
same problem on x86, so it's not related to ppc at all.

----------------------------------------------------------------------
 jocke - 04-06-05 23:53 
----------------------------------------------------------------------
I suppose the crash(SEGV?) happens at exit()?
Please compile ldso with debugging support and set env. variable
LD_DEBUG=1 while executing alsa. Post the debug output. Run ldso
unpatched
and with your patch.

----------------------------------------------------------------------
 aurel - 04-07-05 09:30 
----------------------------------------------------------------------
No, the bug don't happens at exit() ! It happens during mplayer
initialisation.
Here are the full logs of a crashing session, and a working session
using my patch. I also included a diff between the 2 logs.

It seems that the first "Trying to dlopen '/usr/lib/libasound.so.2'"
behave exactly the same, but second and third dlopen of libasound
behave differently.

Do you need any more output ?

Issue History
Date Modified  Username       Field                    Change              
======================================================================
04-06-05 15:37 aurel          New Issue                                    
04-06-05 15:37 aurel          File Added: 01_ppc_ldso_fix.diff                  
 
04-06-05 16:04 aurel          Note Added: 0000132                          
04-06-05 23:53 jocke          Note Added: 0000134                          
04-07-05 09:29 aurel          File Added: crashing.log                     
04-07-05 09:29 aurel          File Added: patched.log                      
04-07-05 09:29 aurel          File Added: log.diff                         
04-07-05 09:30 aurel          Note Added: 0000136                          
======================================================================




More information about the uClibc mailing list