On 2005-07-09, Dave Vasilevsky wrote:
> Hey Corey,
>
> I'm kinda lunging in the dark here, but it could be useful to find
> out which dlopen is causing the crash. Could you set a breakpoint
> action to print that? This should work:
>
> $ gdb gdk-pixbuf-query-loaders
> (gdb) break dlopen
> (gdb) commands
> >x /s $r3
> >continue
> >end
> (gdb) run
>
> Also, try running otool on that loader, just for the hell of it :-)
> Reason I'm asking is 1) to detect if you have any external libraries
> linked in by accident and 2) to see if it can explain the 'warning:
> Unable to read symbols from "N?"'.
I should mention that on my system /sw is a symlink to /sw_unstable.
I noticed in the otool output that it finds libjpeg in /sw/lib rather
than /sw_unstable/lib. But since they should be the same place anyway,
that shouldn't cause a problem? Right?
I'm rebuilding libjpeg and then gtk+2 to see if that fixes it.
Here's the results of what you asked for:
calvin:~$ gdb gdk-pixbuf-query-loaders
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT
2004)
Copyright 2003 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 "powerpc-apple-darwin".
Reading symbols for shared libraries done
(gdb) break dlopen
Breakpoint 1 at 0x9011f770
(gdb) commands
Type commands for when breakpoint 1 is hit, one per line.
End with a line saying just "end".
>x /s $r3
>continue
>end
(gdb) run
Starting program: /sw_unstable/bin/gdk-pixbuf-query-loaders
Reading symbols for shared libraries +... done
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
# Created by gdk-pixbuf-query-loaders from gtk+-2.6.8
#
# LoaderDir = /sw_unstable/lib/gtk-2.0/2.4.0/loaders
#
Breakpoint 1, 0x9011f770 in dlopen ()
0x1100930: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/io-wmf.so"
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
"/sw_unstable/lib/gtk-2.0/2.4.0/loaders/io-wmf.so"
"wmf" 0 "gtk20" "Windows Metafile"
"image/x-wmf" ""
"wmf" ""
"\327\315\306\232" "" 100
"\001" "" 100
Breakpoint 1, 0x9011f770 in dlopen ()
0x1100a70:
"/sw_unstable/lib/gtk-2.0/2.4.0/l