GNOME Bugzilla – Bug 560014
crash while trying to view an image
Last modified: 2009-09-23 12:50:30 UTC
Steps to reproduce: from directory view, double-click the image. the window disappears without a trace. Stack trace: (gdb) bt
+ Trace 209518
Other information: Linux, Fedora 9, KDE 4.1
What version of gthumb were you using? - Mike
Using version 2.10.8 I have build a gthumb from 2.10.8 source, and did the same experiment. Core was generated by `/home/hat/Downloads/gthumb-2.10.8/src/.libs/lt-gthumb'. Program terminated with signal 11, Segmentation fault. [New process 29087] [New process 29109] [New process 29108] [New process 29107] [New process 29106] [New process 29105]
+ Trace 209660
The call stack is as before, except with a few more details at the top. (assuming the bottom part doesn't tell you much, I left it out this time) As verification of ptr pointing to the wrong address: (gdb) p *((char *)ptr) Cannot access memory at address 0x76070556
Can you try 2.10.10 instead? It is available here: http://ftp.gnome.org/pub/GNOME/sources/gthumb/2.10/ This is probably a duplicate of bug 486886, which should be fixed in 2.10.10. - Mike
2.10.10 crashes too Core was generated by `/home/hat/Downloads/gthumb-2.10.10/src/.libs/lt-gthumb'. Program terminated with signal 11, Segmentation fault. [New process 15530] [New process 15557] [New process 15556] [New process 15555] [New process 15554] [New process 15553]
+ Trace 209661
Just before line 479 of gth-exif-utils.c, I added printf("i=%d\n", i); which gives as output: i=-1235372154 (i'd say slightly out of bounds :) )
Can you email the crash-causing image to mjc@avtechpulse.com? Also, this code has been removed from the trunk version. If you feel adventurous, try compiling trunk. - Mike
OK, I understand if you can't provide a sample image. However, try using exiftool or other exif programs to see if there is anything "funny" or odd about the exif structure. To try trunk, you would do something like this: svn co http://svn.gnome.org/svn/gthumb/trunk gthumb-trunk cd gthumb-trunk ./autogen.sh --prefix=/usr CFLAGS="-Wall -ggdb" make su make install You may need to install some development libraries (gnome-common, glib-devel, stuff like that). - Mike
With your instructions and a several additional packages, I managed to build a trunk version of gthumb (rev 2444). I didn't install it, but ran the binary (cd src ; ./gthumb) after building (as I did with the 2.10.8 and 2.10.10 versions too). This version seems to run fine. I can display the image just like any other image. w.r.t. exif data, 'exiv2' reports there is not exif data, and 'jhead' only reports name, date, size, and resolution, even with a '-exifmap', which is supposed to do "Dump header bytes, annotate". Thanks for a great program!!