beautify icon indicating copy to clipboard operation
beautify copied to clipboard

Segfault in gtk_widget_hide

Open eigengrau opened this issue 6 years ago • 0 comments

When applying any effect from «Filters / Beautify / Beautify», the plug-in (current HEAD, Gimp 2.9.8, gtk2 2.24.32) segfaults after clicking the Okay button.

Backtrace:

#0  0x00007f86a6fcce1b in gtk_widget_hide () at /usr/lib/libgtk-x11-2.0.so.0
#1  0x000055b7a946d0b9 in apply_effect () at beautify.c:1261
#2  0x000055b7a946a20e in beautify (drawable=0x55b7abda5400) at beautify.c:345
#3  0x000055b7a946a195 in run (name=0x55b7abda3b90 "plug-in-beautify", nparams=3, param=0x55b7abda4700, nreturn_vals=0x7ffe05d52c34, return_vals=0x7ffe05d52c38) at beautify.c:324
#4  0x00007f86a8e840c8 in gimp_proc_run (proc_run=0x55b7abd91940) at gimp.c:2168
#5  0x00007f86a8e840c8 in gimp_loop () at gimp.c:1997
#6  0x00007f86a8e840c8 in gimp_main (info=<optimized out>, argc=<optimized out>, argv=<optimized out>) at gimp.c:618
#7  0x000055b7a9469f86 in main (argc=6, argv=0x7ffe05d52e58) at beautify.c:234

It’s not obvious to me where the segfault arises. The effect_option pointer passed by apply_effect to gtk_widget_hide isn’t null, in any case, and can be dereferenced.

>>> p effect_option
$2 = 0x55b7abf9b490
>>> x effect_option
0x55b7abf9b490:	0xaaaaaaaa

eigengrau avatar Feb 09 '18 09:02 eigengrau