GNOME Bugzilla – Bug 330800
Certain jpegs create segmentation fault when opening
Last modified: 2008-01-15 14:05:35 UTC
Steps to reproduce: gimp evil.jpg or through file->open Stack trace: /opt/gimp-2.3/lib/gimp/2.0/plug-ins/jpeg: fatal error: Segmentation fault /opt/gimp-2.3/lib/gimp/2.0/plug-ins/jpeg (pid:24922): [E]xit, [H]alt, show [S]tack trace or [P]roceed: s
+ Trace 66094
Other information: Please send me a mail if you'd like a sample jpg file The file comes from a NIKON D70 and opens just fine with gimp-2.2.10 It doesn't happen with all files I get from my camera, just with a few. And last but not least: Thanks for the gimp, it's great!
System: Fedora Core 4, fully updated with glib2-2.9.5 gtk2-2.8.11 uname -a Linux paxol 2.6.15-1.1831_FC4 #1 Tue Feb 7 13:37:42 EST 2006 i686 i686 i386 GNU/Linux A sample of a jpg triggering the bug is at: http://www.drozilla.ch/gimp/DSC_7551m.JPG
Chances are good that the problem is being caused by something in libexif -- the library that GIMP uses to handle the EXIF data in digital camera images. What version do you have on your system, please?
Bug 300186 has more about this, and lots of dupes. Please check if this is another one.
Hello all, exif conjecture (Comment 2): I just upgrade to the latest libexif 0.6.13. The error persists. However if I remove the exif information (with jhead) I can open the file. So there is indeed a problem with libexif. the libexif cmd tool does work fine though. Also downgrading to libexif 0.6.11 does not help. Comment 3: I'm afraid it's a duplicate ;-( Sorry for that. Please let me know if I can help any more.
Doesn't look like a duplicate to me. The stack trace doesn't involve libexif. What would help is getting a stack trace from gimp and gtk and libexif compilied with debugging symbols, since this one is almost useless. Also, make sure you're running the latest stable GTK+. I can't reproduce the crash here.
Updated to the latest gtk+ (2.8.13) >gimp-2.3 /tmp/DSC_7551m.JPG (jpeg:7295): Gtk-CRITICAL **: gtk_box_reorder_child: assertion `GTK_IS_WIDGET (child)' failed (jpeg:7295): Gtk-CRITICAL **: gtk_box_reorder_child: assertion `GTK_IS_WIDGET (child)' failed (jpeg:7295): Gtk-CRITICAL **: gtk_box_reorder_child: assertion `GTK_IS_WIDGET (child)' failed ..... Lot's of these messages (jpeg:7295): Gtk-CRITICAL **: gtk_box_reorder_child: assertion `GTK_IS_WIDGET (child)' failed /opt/gimp-2.3/lib/gimp/2.0/plug-ins/jpeg: fatal error: Segmentation fault /opt/gimp-2.3/lib/gimp/2.0/plug-ins/jpeg (pid:7295): [E]xit, [H]alt, show [S]tack trace or [P]roceed: s
+ Trace 66641
I hope this helps Serge
Yes, it helped a lot. Thanks. 2006-03-02 Manish Singh <yosh@gimp.org> * plug-ins/jpeg/jpeg-exif.c (jpeg_query): use proper sentinel type for gtk_dialog_set_alternative_button_order. Fixes bug #330800.
The patch does indeed solve the problem Thanks a lot. Cheer Serge