gimp crashes on starting (segfault) in Kubuntu Natty

Bug #778414 reported by Schaap on 2011-05-06
74
This bug affects 16 people
Affects Status Importance Assigned to Milestone
gimp (Debian)
Unknown
Unknown
gimp (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: gimp

Fresh install of Kubuntu Natty. Added gimp 2.6.11-1ubuntu6 using apt-get install gimp. Running 'gimp' from the commandline crashes immediately with a segfault. Running using 'gdb gimp' (with the debug symbols for GTK2 installed) produces:

(gimp:2433): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0

Program received signal SIGSEGV, Segmentation fault.
gtk_text_view_set_attributes_from_style (widget=0xc66350, previous_style=<value optimized out>) at /build/buildd/gtk+2.0-2.24.4/gtk/gtktextview.c:6380
6380 /build/buildd/gtk+2.0-2.24.4/gtk/gtktextview.c: Bestand of map bestaat niet.
        in /build/buildd/gtk+2.0-2.24.4/gtk/gtktextview.c

Full valgrind log:

==2858== Memcheck, a memory error detector
==2858== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==2858== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==2858== Command: gimp
==2858==

(gimp:2858): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
==2858== Conditional jump or move depends on uninitialised value(s)
==2858== at 0x82D6AA4: babl_free (in /usr/lib/libbabl-0.0.so.0.22.0)
==2858== by 0x82D6EBA: babl_realloc (in /usr/lib/libbabl-0.0.so.0.22.0)
==2858== by 0x82D7062: babl_strcat (in /usr/lib/libbabl-0.0.so.0.22.0)
==2858== by 0x82D0D85: babl_extension_init (in /usr/lib/libbabl-0.0.so.0.22.0)
==2858== by 0x82CE704: babl_init (in /usr/lib/libbabl-0.0.so.0.22.0)
==2858== by 0x7D60F8F: ??? (in /usr/lib/libgegl-0.0.so.0.22.0)
==2858== by 0x8C25AC8: g_option_context_parse (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
==2858== by 0x468821: main (in /usr/bin/gimp-2.6)
==2858==
==2858== Conditional jump or move depends on uninitialised value(s)
==2858== at 0x8F4B0CB: __GI___strcasecmp_l (strcmp.S:243)
==2858== by 0x8EE4F60: __gconv_open (gconv_open.c:70)
==2858== by 0x8EF3106: _nl_find_msg (dcigettext.c:990)
==2858== by 0x8EF3818: __dcigettext (dcigettext.c:654)
==2858== by 0x8F474B2: strerror_r (_strerror.c:65)
==2858== by 0x8F473BD: strerror (strerror.c:33)
==2858== by 0xBD0F3F4: dlerror (dlerror.c:100)
==2858== by 0x947B157: ??? (in /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.2800.6)
==2858== by 0x947BD10: g_module_open (in /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.2800.6)
==2858== by 0x5F3EC34: ubuntu_gtk_scrolled_window_init (gtkscrolledwindow.c:1822)
==2858== by 0x5ED743B: post_parse_hook (gtkmain.c:755)
==2858== by 0x8C25AC8: g_option_context_parse (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
==2858==
==2858== Use of uninitialised value of size 8
==2858== at 0x8F4D204: __GI___strcasecmp_l (strcmp.S:2257)
==2858== by 0x8EE4F60: __gconv_open (gconv_open.c:70)
==2858== by 0x8EF3106: _nl_find_msg (dcigettext.c:990)
==2858== by 0x8EF3818: __dcigettext (dcigettext.c:654)
==2858== by 0x8F474B2: strerror_r (_strerror.c:65)
==2858== by 0x8F473BD: strerror (strerror.c:33)
==2858== by 0xBD0F3F4: dlerror (dlerror.c:100)
==2858== by 0x947B157: ??? (in /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.2800.6)
==2858== by 0x947BD10: g_module_open (in /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.2800.6)
==2858== by 0x5F3EC34: ubuntu_gtk_scrolled_window_init (gtkscrolledwindow.c:1822)
==2858== by 0x5ED743B: post_parse_hook (gtkmain.c:755)
==2858== by 0x8C25AC8: g_option_context_parse (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
==2858==
==2858== Use of uninitialised value of size 8
==2858== at 0x8F4D208: __GI___strcasecmp_l (strcmp.S:2258)
==2858== by 0x8EE4F60: __gconv_open (gconv_open.c:70)
==2858== by 0x8EF3106: _nl_find_msg (dcigettext.c:990)
==2858== by 0x8EF3818: __dcigettext (dcigettext.c:654)
==2858== by 0x8F474B2: strerror_r (_strerror.c:65)
==2858== by 0x8F473BD: strerror (strerror.c:33)
==2858== by 0xBD0F3F4: dlerror (dlerror.c:100)
==2858== by 0x947B157: ??? (in /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.2800.6)
==2858== by 0x947BD10: g_module_open (in /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.2800.6)
==2858== by 0x5F3EC34: ubuntu_gtk_scrolled_window_init (gtkscrolledwindow.c:1822)
==2858== by 0x5ED743B: post_parse_hook (gtkmain.c:755)
==2858== by 0x8C25AC8: g_option_context_parse (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
==2858==
==2858== Invalid read of size 8
==2858== at 0x5F91D1C: gtk_text_view_style_set (gtktextview.c:6380)
==2858== by 0x878E81B: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.6)
==2858== by 0x879F7E2: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.6)
==2858== by 0x87A9257: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.6)
==2858== by 0x87A941E: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.6)
==2858== by 0x5FFC7C9: gtk_widget_set_style_internal (gtkwidget.c:6972)
==2858== by 0x5FFC997: reset_rc_styles_recurse (gtkwidget.c:7182)
==2858== by 0x5F3D92D: gtk_scrolled_window_forall (gtkscrolledwindow.c:1098)
==2858== by 0x5E9B5E9: gtk_frame_forall (gtkframe.c:300)
==2858== by 0x5E2695A: gtk_box_forall (gtkbox.c:1251)
==2858== by 0x5F237B8: gtk_rc_reset_widgets (gtkrc.c:1669)
==2858== by 0x5F256C3: _gtk_rc_context_get_default_font_name (gtkrc.c:1767)
==2858== Address 0x50 is not stack'd, malloc'd or (recently) free'd
==2858==
==2858==
==2858== Process terminating with default action of signal 11 (SIGSEGV)
==2858== Access not within mapped region at address 0x50
==2858== at 0x5F91D1C: gtk_text_view_style_set (gtktextview.c:6380)
==2858== by 0x878E81B: g_closure_invoke (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.6)
==2858== by 0x879F7E2: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.6)
==2858== by 0x87A9257: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.6)
==2858== by 0x87A941E: g_signal_emit (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.2800.6)
==2858== by 0x5FFC7C9: gtk_widget_set_style_internal (gtkwidget.c:6972)
==2858== by 0x5FFC997: reset_rc_styles_recurse (gtkwidget.c:7182)
==2858== by 0x5F3D92D: gtk_scrolled_window_forall (gtkscrolledwindow.c:1098)
==2858== by 0x5E9B5E9: gtk_frame_forall (gtkframe.c:300)
==2858== by 0x5E2695A: gtk_box_forall (gtkbox.c:1251)
==2858== by 0x5F237B8: gtk_rc_reset_widgets (gtkrc.c:1669)
==2858== by 0x5F256C3: _gtk_rc_context_get_default_font_name (gtkrc.c:1767)
==2858== If you believe this happened as a result of a stack
==2858== overflow in your program's main thread (unlikely but
==2858== possible), you can try to increase the size of the
==2858== main thread stack using the --main-stacksize= flag.
==2858== The main thread stack size used in this run was 8388608.
==2858==
==2858== HEAP SUMMARY:
==2858== in use at exit: 1,487,274 bytes in 12,571 blocks
==2858== total heap usage: 74,132 allocs, 61,561 frees, 14,849,982 bytes allocated
==2858==
==2858== LEAK SUMMARY:
==2858== definitely lost: 568 bytes in 4 blocks
==2858== indirectly lost: 240 bytes in 10 blocks
==2858== possibly lost: 690,542 bytes in 6,027 blocks
==2858== still reachable: 795,924 bytes in 6,530 blocks
==2858== suppressed: 0 bytes in 0 blocks
==2858== Rerun with --leak-check=full to see details of leaked memory
==2858==
==2858== For counts of detected and suppressed errors, rerun with: -v
==2858== Use --track-origins=yes to see where uninitialised values come from
==2858== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 218 from 6)
Segmentatiefout

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: gimp 2.6.11-1ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri May 6 11:07:10 2011
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427)
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
SourcePackage: gimp
UpgradeStatus: No upgrade log present (probably fresh install)

Schaap (t-m-schaap) wrote :
Daniel Reimer (uiaeuiae) wrote :

I can confirm this bug for Ubuntu Natty, running the KDE desktop (package "kubuntu-desktop"), fully up-to-date:

(gimp:22270): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
Speicherzugriffsfehler [ = memory access violation]

Daniel Reimer (uiaeuiae) wrote :

I found a workaround:

The bug seems to originate from the Oxygen GTK engine and only appears at the first run of Gimp, some initialization function I think (user_install_dialog_new ff. in the stack trace).

When I changed the widget style in KDE control center (GTK styles in Application Appearance) from "oxygen-gtk" to "simple" , I could start Gimp without a crash. After changing back to "oxygen-gtk", starting Gimp doesn't crash anymore.

Benoit Grégoire (benoitg) wrote :

I have the exact same problem on kubuntu. The same workaround works as well.

_djura_ (netking) wrote :

thanks a ton!!!!!!!!!!!!! It worked for me as well :)

Heitor (heitormsilva) wrote :

Do the following workaround:

- set GTK theme to raleigh
- start GIMP once
- set GTK theme back to oxygen-gtk
- GIMP now works with oxygen-gtk, too!

It had worked to me.

Source:
http://ubuntuforums.org/showthread.php?p=10756351

Changed in gimp (Ubuntu):
status: New → Confirmed
Hans Joachim Desserud (hjd) wrote :

In duplicate bug 794920, it was posted a link to a Debian bug covering this issue (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624693). However it seems to have been closed due to inactivity. Perhaps it should be notified that it is present in Ubuntu as well.

I tried attaching a bug watch (also affects distribution) , but Launchpad just keeps timing out right now.

summary: - gimp crashes on starting (segfault)
+ gimp crashes on starting (segfault) in Kubuntu Natty
Jan (medhefgo) wrote :

This problem seems to be fixed upstream since I cannot reproduce it anymore with latest git head.

Changed in gimp (Ubuntu):
importance: Undecided → Medium

I can confirm this problem and the effectiveness of the workaround on an up-to-date Kubuntu Natty installation. Thanks a lot to all people who posted information about the workaround!

Shriramana Sharma (jamadagni) wrote :

I'm reporter of bug 801968. (I searched for "Segmentation fault" but the search system doesn't recognize that it's the same as "segfault".) Confirmed that workaround works. Thanks.

cefk (cfabik) wrote :

Since I got the same bug (Kubuntu 11.04 - fresh install - fully updated), but solved it another way, here it is:
Got the segmentation fault error on starting gimp like this:
$ gimp

Then tried (I know .. "though shalt never do that" .. but I was curious):
$ sudo gimp
And that worked!

Did some research online and found, that for some people the problem seemed to originate from the ~/.gimp-2.6 - folder, because it was either missing or had the wrong permissions (root:root).

I found, that the only .gimp-2.6 - directory I had, was in /root/.gimp-2.6 .

So I did:
$ sudo mv /root/.gimp-2.6 /home/MY_USERNAME/.gimp-2.6
$ sudo chown MY_USERNAME:MY_USERNAME/.gimp-2.6 -R

This solved the problem of gimp crashing, but I still get the following message on starting gimp:
$ gimp

(gimp:3494): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
Failed to open file '/usr/share/gnome-scan/icons/hicolor/scalable/actions/scan-as-layer.svg': Datei oder Verzeichnis nicht gefundenFailed to open file '/usr/share/gnome-scan/icons/hicolor/scalable/actions/scan.svg': Datei oder Verzeichnis nicht gefunden

I guess that is fixable with changing to Raleigh, but I don't care to find out, since I can at least use gimp now.

Hope that comment is useful to someone, since the bug still seems to be alive and well.

Thank you.
$ sudo gimp
Worked for me as well.

$ sudo mv /root/.gimp-2.6 /home/MY_USERNAME/.gimp-2.6
was OK

andrew@venus:~$ sudo chown andrew:andrew/.gimp-2.6 -R
chown: missing operand after `andrew:andrew/.gimp-2.6'

Had above errors, tried
$ sudo chown andrew:andrew /home/andrew/.gimp-2.6 -R
which worked OK

Gimp now works for me as well. Thank you.

Linuxboy (linuxboy) wrote :

Heitor (heitormsilva) wrote on 2011-05-20

HEITOR workaround works for me.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.