GNOME Bugzilla – Bug 696240
Changing Gradient From Script-Fu Drop Down Causes GIMP to Crash/Abend
Last modified: 2013-10-27 13:07:15 UTC
From what I can determine, any script-fu script that allows you to select a gradient, will cause a crash when you attempt to select the gradient. Confirmed with multiple installations of Fedora 17 & Fedora 18. To duplicate the crash... 1) Start GIMP 2.8.4 2) File/Create/Logos/Blended 3) Click/Select Gradient 4) Click Close GIMP 2.8.4 crashes with the following error: *** glibc detected *** gimp: double free or corruption (!prev)
Indeed.
This seems to be broken since 2006, doesn't anybody use script-fu?
Fixed in master and gimp-2-8: commit 15c5a9db32d49b22260ffde0202f39284b99d936 Author: Michael Natterer <mitch@gimp.org> Date: Thu Mar 21 01:50:32 2013 +0100 Bug 696240 - Changing Gradient From Script-Fu Drop Down Causes GIMP to Crash gimp_gradient_select_run_callback(): Don't free the color values array twice. (cherry picked from commit ed2849cd5245a4f4f259a261e5d58a1e4fa637ba) app/widgets/gimpgradientselect.c | 1 - 1 file changed, 1 deletion(-)
(In reply to comment #2) > This seems to be broken since 2006, doesn't anybody use script-fu? Power GIMP users are constantly utilizing script-fu scripts and there were no problems selecting gradients in older GIMP versions, including GIMP 2.8.2. This bug appears to be new in GIMP 2.8.4. Presently, the only solution is to revert back to GIMP 2.8.2 (or earlier).
I know people are using script-fu all the time :) It's just absolutely absurd that this code didn't crash before. Anyway, it's fixed now.
This bug appears to have been introduced (gimp-2-8 branch) by commit 5bd861330f6e5d8d09a3b95cb4af8e45cfcca433 Author: Michael Henning <drawoc@darkrefraction.com> Date: Thu Jan 10 17:02:02 2013 -0500 app: fix memory leak in widgets/gimpgradientselect.c Found using clang's scan-build. (cherry picked from commit 42c74722e1f610579e53711706b8fbefc439a058)
I must have been blind when reading the git blame, thanks :)
*** Bug 696808 has been marked as a duplicate of this bug. ***
*** Bug 696983 has been marked as a duplicate of this bug. ***
*** Bug 697488 has been marked as a duplicate of this bug. ***
*** Bug 697643 has been marked as a duplicate of this bug. ***
*** Bug 701067 has been marked as a duplicate of this bug. ***
*** Bug 703137 has been marked as a duplicate of this bug. ***
*** Bug 710954 has been marked as a duplicate of this bug. ***