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 696240 - Changing Gradient From Script-Fu Drop Down Causes GIMP to Crash/Abend
Changing Gradient From Script-Fu Drop Down Causes GIMP to Crash/Abend
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.8.4
Other All
: High critical
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
: 696808 696983 697488 697643 701067 703137 710954 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-03-21 00:21 UTC by cl
Modified: 2013-10-27 13:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description cl 2013-03-21 00:21:42 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)
Comment 1 Michael Natterer 2013-03-21 00:32:55 UTC
Indeed.
Comment 2 Michael Natterer 2013-03-21 00:40:42 UTC
This seems to be broken since 2006, doesn't anybody use script-fu?
Comment 3 Michael Natterer 2013-03-21 00:53:55 UTC
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(-)
Comment 4 cl 2013-03-21 01:00:27 UTC
(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).
Comment 5 Michael Natterer 2013-03-21 07:18:54 UTC
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.
Comment 6 saulgoode 2013-03-21 10:30:04 UTC
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)
Comment 7 Michael Natterer 2013-03-21 12:07:58 UTC
I must have been blind when reading the git blame, thanks :)
Comment 8 Michael Schumacher 2013-03-28 20:11:54 UTC
*** Bug 696808 has been marked as a duplicate of this bug. ***
Comment 9 Michael Natterer 2013-03-31 20:17:32 UTC
*** Bug 696983 has been marked as a duplicate of this bug. ***
Comment 10 Michael Natterer 2013-04-07 14:31:01 UTC
*** Bug 697488 has been marked as a duplicate of this bug. ***
Comment 11 Michael Natterer 2013-04-09 23:46:36 UTC
*** Bug 697643 has been marked as a duplicate of this bug. ***
Comment 12 Michael Natterer 2013-05-27 07:32:01 UTC
*** Bug 701067 has been marked as a duplicate of this bug. ***
Comment 13 Michael Natterer 2013-06-26 16:52:07 UTC
*** Bug 703137 has been marked as a duplicate of this bug. ***
Comment 14 Michael Natterer 2013-10-27 13:07:15 UTC
*** Bug 710954 has been marked as a duplicate of this bug. ***