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/loaders/libpixbufloader-ani.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ani.so" "ani" 4 "gtk20" "The ANI image format" "application/x-navi-animation" "" "ani" "" "RIFF ACON" " xxxx " 100 unable to open symbol file: 9@: No such file or directory. warning: Unable to read symbols from "9@". warning: Unable to read symbols from "9@"; skipping. Breakpoint 1, 0x9011f770 in dlopen () 0x1100930: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-bmp.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-bmp.so" "bmp" 5 "gtk20" "The BMP image format" "image/bmp" "image/x-bmp" "image/x-MS-bmp" "" "bmp" "" "BM" "" 100 unable to open symbol file: ??: No such file or directory. warning: Unable to read symbols from "??". warning: Unable to read symbols from "??"; skipping. Breakpoint 1, 0x9011f770 in dlopen () 0x1100a70: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-gif.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-gif.so" "gif" 4 "gtk20" "The GIF image format" "image/gif" "" "gif" "" "GIF8" "" 100 Reading symbols for shared libraries . done Breakpoint 1, 0x9011f770 in dlopen () 0x1100930: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ico.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ico.so" "ico" 5 "gtk20" "The ICO image format" "image/x-icon" "" "ico" "cur" "" " \001 " "zz znz" 100 " \002 " "zz znz" 100 unable to open symbol file: ?!: No such file or directory. warning: Unable to read symbols from "?!". warning: Unable to read symbols from "?!"; skipping. Breakpoint 1, 0x9011f770 in dlopen () 0x1100a70: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so" "jpeg" 5 "gtk20" "The JPEG image format" "image/jpeg" "" "jpeg" "jpe" "jpg" "" "\377\330" "" 100 unable to open symbol file: ?0: No such file or directory. warning: Unable to read symbols from "?0". warning: Unable to read symbols from "?0"; skipping. Breakpoint 1, 0x9011f770 in dlopen () 0x1100930: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-pcx.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-pcx.so" "pcx" 4 "gtk20" "The PCX image format" "image/x-pcx" "" "pcx" "" "\n \001" "" 100 "\n\002\001" "" 100 "\n\003\001" "" 100 "\n\004\001" "" 100 "\n\005\001" "" 100 unable to open symbol file: : No such file or directory. warning: Unable to read symbols from "". warning: Unable to read symbols from ""; skipping. Breakpoint 1, 0x9011f770 in dlopen () 0x1100a70: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-png.so" Reading symbols for shared libraries . done Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-png.so" "png" 5 "gtk20" "The PNG image format" "image/png" "" "png" "" "\211PNG\r\n\032\n" "" 100 unable to open symbol file: B?: No such file or directory. warning: Unable to read symbols from "B?". warning: Unable to read symbols from "B?"; skipping. Breakpoint 1, 0x9011f770 in dlopen () 0x1100930: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-pnm.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-pnm.so" "pnm" 4 "gtk20" "The PNM/PBM/PGM/PPM image format family" "image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" "" "pnm" "pbm" "pgm" "ppm" "" "P1" "" 100 "P2" "" 100 "P3" "" 100 "P4" "" 100 "P5" "" 100 "P6" "" 100 unable to open symbol file: ????N?: No such file or directory. warning: Unable to read symbols from "????N?". warning: Unable to read symbols from "????N?"; skipping. Breakpoint 1, 0x9011f770 in dlopen () 0x1100a70: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ras.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-ras.so" "ras" 4 "gtk20" "The Sun raster image format" "image/x-cmu-raster" "image/x-sun-raster" "" "ras" "" "Y\246j\225" "" 100 Reading symbols for shared libraries . done Breakpoint 1, 0x9011f770 in dlopen () 0x1100930: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tga.so" Reading symbols for shared libraries . done "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tga.so" "tga" 4 "gtk20" "The Targa image format" "image/x-tga" "" "tga" "targa" "" " \001\001" "x " 100 " \001\t" "x " 100 " \002" "xz " 99 " \003" "xz " 100 " \n" "xz " 100 " \013" "xz " 100 unable to open symbol file: ?}: No such file or directory. warning: Unable to read symbols from "?}". warning: Unable to read symbols from "?}"; skipping. Breakpoint 1, 0x9011f770 in dlopen () 0x1100a70: "/sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tiff.so" Reading symbols for shared libraries . done Program received signal EXC_BAD_ACCESS, Could not access memory. 0x8fe0878c in __dyld_is_library_loaded_by_name () (gdb) quit The program is running. Exit anyway? (y or n) y calvin:~$ otool -L /sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tiff.so /sw_unstable/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tiff.so: /sw_unstable/lib/libtiff.3.dylib (compatibility version 11.0.0, current version 11.2.0) /sw/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0) /sw_unstable/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 601.0.0, current version 601.8.0) /sw_unstable/lib/libintl.3.dylib (compatibility version 8.0.0, current version 8.1.0) /sw_unstable/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0) /sw_unstable/lib/libgmodule-2.0.0.dylib (compatibility version 601.0.0, current version 601.5.0) /sw_unstable/lib/libgobject-2.0.0.dylib (compatibility version 601.0.0, current version 601.5.0) /sw_unstable/lib/libglib-2.0.0.dylib (compatibility version 601.0.0, current version 601.5.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.3) calvin:~$
pgpxZQVxmsAPR.pgp
Description: PGP signature