After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 330800 - Certain jpegs create segmentation fault when opening
Certain jpegs create segmentation fault when opening
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.3.x
Other Linux
: High critical
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-02-11 15:44 UTC by Serge Droz
Modified: 2008-01-15 14:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Serge Droz 2006-02-11 15:44:42 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
  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libc.so.6
  • #2 g_on_error_stack_trace
    from /usr/lib/libglib-2.0.so.0
  • #3 g_on_error_query
    from /usr/lib/libglib-2.0.so.0
  • #4 gimp_install_temp_proc
  • #5 <signal handler called>
  • #6 gtk_dialog_set_alternative_button_order
  • #7 ??
  • #8 ??
  • #9 ??
  • #10 gimp_main
    from /opt/gimp-2.3/lib/libgimp-2.0.so.0
  • #11 ??
  • #12 __libc_start_main
    from /lib/libc.so.6
  • #13 ??


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!
Comment 1 Serge Droz 2006-02-11 15:55:02 UTC
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
Comment 2 weskaggs 2006-02-11 18:32:17 UTC
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?
Comment 3 Michael Schumacher 2006-02-11 18:48:45 UTC
Bug 300186 has more about this, and lots of dupes. Please check if this is another one.
Comment 4 Serge Droz 2006-02-13 19:55:13 UTC
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.
Comment 5 Manish Singh 2006-03-01 21:33:30 UTC
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.
Comment 6 Serge Droz 2006-03-03 00:53:26 UTC
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

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libc.so.6
  • #2 IA__g_on_error_stack_trace
  • #3 IA__g_on_error_query
  • #4 gimp_plugin_sigfatal_handler
    at gimp.c line 1489
  • #5 <signal handler called>
  • #6 gtk_dialog_set_alternative_button_order_valist
  • #7 IA__gtk_dialog_set_alternative_button_order
  • #8 jpeg_apply_exif_data_to_image
  • #9 load_image
  • #10 run
  • #11 gimp_main
  • #12 main
    at jpeg.c line 63
  • #13 __libc_start_main
    from /lib/libc.so.6
  • #14 _start

I hope this helps
Serge
Comment 7 Manish Singh 2006-03-03 01:15:11 UTC
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.
Comment 8 Serge Droz 2006-03-03 17:16:44 UTC
The patch does indeed solve the problem
Thanks a lot.

Cheer
Serge