--- Yoann Vandoorselaere <[EMAIL PROTECTED]> wrote:
> Eugenio Diaz <[EMAIL PROTECTED]> writes:
> 
> > I have been experiencing several segfaults in a lot of programs, and
> > almost all of them show to depend on libsafe when I do a 'ldd' on the
> > binary.
> 
> This doesn't mean anything. Just that libsafe is preloaded so you'll
> see in each time you do ldd...
> 
> > Well I removed the libsafe package, and the output of ldd shows they no
> > longer depend on libsafe, and they don't segfault anymore. So I guess
> > that either libsafe is very buggy, or I have something messing things up
> > with libsafe.
> 
> Please, trace the segfault using gdb :
> 
> gdb program
> run 
> then, when it crash
> bt
> 
> And send the output to this list...

One example is 'realplay':

[nito@fulgore:~]$ rpm -q RealPlayer
RealPlayer-8.0-1
[nito@fulgore:~]$ 

With libsafe installed it segfaults, when I remove the libsafe package it works
fine.

Another example is 'mpg123' it segfaults with some (mostly mp3's created with
gnapster) mp3 files that play fine in xmms; oddly enough, if I append a null to
the file by doing 'echo '\0' >> file.mp3' it plays nice. This should give some
clue as to where the problem lies, however I don't have enough time to debug
this. As with 'realplay', the problem disappear when I remove libsafe.

Here is the output of gdb for 'realplay':

-------------------------------------------------------------------
[nito@fulgore:~]$ gdb realplay
GNU gdb 20010516
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-mandrake-linux"...
(no debugging symbols found)...
(gdb) run
Starting program: /usr/X11R6/bin/realplay 
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 1024 (LWP 15965)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 15965)]
0x4001f3d3 in _IO_vfprintf () from /lib/libsafe.so.2.0
(gdb) bt
#0  0x4001f3d3 in _IO_vfprintf () from /lib/libsafe.so.2.0
#1  0x40023cb3 in vfprintf () from /lib/libsafe.so.2.0
#2  0x4024e803 in fprintf () from /lib/libc.so.6
#3  0x408d9b25 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#4  0x408d0f97 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#5  0x408d0f28 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#6  0x408d109f in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#7  0x408c2258 in CanUnload () from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#8  0x408d68d4 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#9  0x408c4036 in CanUnload () from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#10 0x408c3f44 in CanUnload () from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#11 0x408c3f06 in CanUnload () from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#12 0x40080916 in XtCallCallbackList () from /usr/X11R6/lib/libXt.so.6
#13 0x08096a2f in XmMessageBoxGetChild ()
#14 0x0809687c in XmMessageBoxGetChild ()
#15 0x400b5bc1 in _XtGetModifierIndex () from /usr/X11R6/lib/libXt.so.6
#16 0x400b5d95 in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.6
#17 0x4008d328 in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
#18 0x4008dc08 in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
#19 0x4008de97 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
#20 0x408c46fd in CanUnload () from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#21 0x408c11e5 in CanUnload () from /usr/lib/RealPlayer8/Plugins/rcadlg.so.6.0
#22 0x0812e597 in CRealPlayerApp::XMLLoadComplete ()
#23 0x40365933 in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#24 0x40366305 in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#25 0x409d8dfe in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/skinfs.so.6.0
#26 0x403661bd in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#27 0x409d8df0 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/skinfs.so.6.0
#28 0x403661bd in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#29 0x409d8df0 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/skinfs.so.6.0
#30 0x403661bd in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#31 0x409d8df0 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/skinfs.so.6.0
#32 0x403661bd in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#33 0x409d8df0 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/skinfs.so.6.0
#34 0x403661bd in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#35 0x409d8df0 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/skinfs.so.6.0
#36 0x403661bd in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#37 0x409d8df0 in RMACreateInstance ()
   from /usr/lib/RealPlayer8/Plugins/skinfs.so.6.0
#38 0x40366119 in SetDLLAccessPath ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#39 0x409d8be8 in CanUnload () from /usr/lib/RealPlayer8/Plugins/skinfs.so.6.0
#40 0x4036608c in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#41 0x4044a370 in CloseEngine ()
   from /usr/lib/RealPlayer8/Common/rmacore.so.6.0
#42 0x4044a0f3 in CloseEngine ()
   from /usr/lib/RealPlayer8/Common/rmacore.so.6.0
#43 0x4036600d in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#44 0x40365475 in SetDLLAccessPath ()
   from /usr/lib/RealPlayer8/Common/rcacore.so.6.0
#45 0x0812f640 in CRealPlayerApp::start ()
#46 0x0812de76 in main ()
(gdb) 
-------------------------------------------------------------------------


=====
________________________
Eugenio Diaz, BSEE/BSCE   
Linux Engineer
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to