GNOME Bugzilla – Bug 12582
jpeg preview makes gimp's open layers dialog segfault
Last modified: 2003-07-02 11:40:18 UTC
Package: gimp Severity: normal Version: 1.1.22 Synopsis: Crash when 'progressive' selected in jpeg save Class: sw-bug Distribution: Red Hat Linux release 6.1 (Cartman) System: Linux 2.3.99-pre8 i686 unknown C library: glibc-2.1.2-11 C compiler: egcs-2.91.66 glib: 1.2.7 GTK+: 1.2.7 ORBit: ORBit 0.5.0 gnome-libs: gnome-libs 1.0.60 gnome-print: gnome-print-0.19 gnome-core: gnome-core 1.1.9 Description: Open a PPM "rawbits" file (pnm from xscanimage seems to trigger it reliably); crop, then save as jpeg. JPEG options save dialog appears. Enable progressive-jpeg save via checkbox; segv, UI hang, general death. Debugging information: 0x4017c3f3 in g_on_error_stack_trace () from /usr/lib/libglib-1.2.so.0
+ Trace 3246
-- Kevin Turner <acapnotic@users.sourceforge.net> | OpenPGP encryption welcome here ------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-28 10:53 ------- This bug was previously known as bug 12582 at http://bugs.gnome.org/ http://bugs.gnome.org/show_bug.cgi?id=12582 Originally filed under the gimp product and general component. The original reporter (gnome-bug-buddy-123@devin.com) of this bug does not have an account here. Reassigning to the exporter, debbugs-export@bugzilla.gnome.org. Reassigning to the default owner of the component, egger@suse.de.
Re-assigning all Gimp bugs to default component owner (Gimp bugs list)
This bug still exists in 1.2.2 and is easily reproducible on Linux-PPC and Linux-i386. We spent some time investigating this problem on #gimp shortly before IIRC 1.2.0 but came to no exact conclusion what exactly the cause of this race might be.
I can _not_ reproduce this bug using either 1.2.3 or current CVS (Red Hat Linux 8.0 i386).
It is uncertain if this problem even still exists. Postponing to 1.2.5.
Moving to 1.2.6 milestone, since it is looking like there will be a pretty quick 1.2.( release.
I think I found the cause of the problem while adding some const qualifiers to the plug-in code. In background_jpeg_save() the filename is freed although the plug-in never allocated it. Fixed in both branches. 2003-07-02 Sven Neumann <sven@gimp.org> * plug-ins/common/jpeg.c (background_jpeg_save): do not free the filename since the plug-in never allocated this memory. Merged some const qualifiers from the HEAD branch. Hopefully fixes bug #12582.