Re: [Fink-devel] gtk+2 strangeness.
On Jul 8, 2005, at 11:43 PM, Corey Halpin wrote: (gdb) bt #0 0x8fe0878c in __dyld_is_library_loaded_by_name () #1 0x8fe02e38 in __dyld_load_library_image () #2 0x8fe0642c in __dyld_load_images_libraries () #3 0x8fe04720 in __dyld_map_bundle_image () #4 0x8fe12ec8 in __dyld__dyld_link_module () #5 0x9003fc88 in NSLinkModule () #6 0x9011f4fc in loadModule () #7 0x9011f884 in dlopen () #8 0xbe90 in g_module_open () #9 0x2d80 in query_module () #10 0x2c2c in main () #11 0x263c in _start (argc=1, argv=0xbb10, envp=0xbb18) at /SourceCache/Csu/Csu-47/crt.c:267 #12 0x8fe1a278 in __dyld__dyld_start () 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?'. Dave PGP.sig Description: This is a digitally signed message part
Re: [Fink-devel] gtk+2 strangeness.
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
[Fink-devel] gtk+2 strangeness.
I'm running fink unstable, selfupdated about an hour before this mail, on OS X 10.3.9 with the most recent dev tools for that OS release. When I try to update gtk+2, the build proceeds without error, however: calvin:~$ fink install gtk+2 Information about 4948 packages read in 3 seconds. The following package will be installed or updated: gtk+2 dpkg -i /sw_unstable/fink/dists/unstable/main/binary-darwin-powerpc/gnome/gtk+2_2.6.8-1_darwin-powerpc.deb (Reading database ... 107911 files and directories currently installed.) Preparing to replace gtk+2 2.6.8-1 (using .../gtk+2_2.6.8-1_darwin-powerpc.deb) ... Unpacking replacement gtk+2 ... Setting up gtk+2 (2.6.8-1) ... /sw_unstable/sbin/update-gdk-pixbuf-loaders: line 16: 5616 Segmentation fault gdk-pixbuf-query-loaders $TMPFILE /sw_unstable/bin/dpkg: error processing gtk+2 (--install): subprocess post-installation script returned error exit status 139 Errors were encountered while processing: gtk+2 ### execution of dpkg failed, exit code 1 Failed: can't install package gtk+2-2.6.8-1 Here's some gdb information on the crashing program: 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) 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 # Reading symbols for shared libraries . done *** ^- repeated several times /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 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 RIFFACON 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. 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. 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 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 \001zz znz 100 \002zz 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. 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. 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 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/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. 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. Reading symbols for shared libraries . done