I've just discovered a segfault bug in the current HEAD CVS gimp.
To activate the bug: start gimp, select some rectangle area, use the
move tool, bang!

Here is the gdb trace:

coruscant:/export3/Gimp/gimp$ gdb gimp-1.3
GNU gdb 5.1
Copyright 2001 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 "i386-linux"...
(gdb) run
Starting program: /usr/local/bin/gimp-1.3
using MMX: yes
gimp_container_add_handler: key = dirty-0, id = 509
gimp_container_add_handler: key = disconnect-1, id = 699
/usr/local/bin/gimp-1.3: run called extension_plugin_helper
/usr/local/bin/gimp-1.3: Could not open module 
/usr/local/bin/gimp-1.3: time for the evil loop
gimp_dialog_factory_add_dialog: registering toplevel "gimp:toolbox"
gimp_dialog_factory_add_dialog: registering toplevel "gimp:tool-options-dialog"
gimp_display_connect: gimage->ref_count before refing: 1
rect_select: 118 x 84

gimp-1.3 (pid:32541): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to 

Program received signal SIGSEGV, Segmentation fault.
0x080d4459 in gimp_tool_pop_status (tool=0x82c1c30) at gimptool.c:313
313       gimp_statusbar_pop (statusbar,
(gdb) list
308       g_return_if_fail (GIMP_IS_DISPLAY (tool->gdisp));
310       statusbar =
311         GIMP_STATUSBAR (GIMP_DISPLAY_SHELL (tool->gdisp->shell)->statusbar);
313       gimp_statusbar_pop (statusbar,
314                           GIMP_OBJECT (tool->tool_info)->name);
315     }
(gdb) print statusbar
$1 = (GimpStatusbar *) 0x87a8358
(gdb) print tool->tool_info
$2 = (GimpToolInfo *) 0x0

Obviously, the segfault comes from there. tool->tool_info is NULL and
dereferenced. I guess this is related to the new GimpStatusbar widget
Mitch just created.

I don't have time to investigate more right now, but if you want more
informations, just ask me.



Gimp-developer mailing list

Reply via email to