gedit crashed with SIGSEGV in g_cclosure_marshal_VOID__VOID()

Bug #849225 reported by Joshua Alcock
56
This bug affects 14 people
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Medium
gedit (Ubuntu)
Fix Released
Medium
Michael Terry
Oneiric
Fix Released
Undecided
Unassigned

Bug Description

Turning on the gedit python console crashed it

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: gedit 3.1.5-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-11.17-generic 3.0.4
Uname: Linux 3.0.0-11-generic i686
ApportVersion: 1.22.1-0ubuntu2
Architecture: i386
Date: Tue Sep 13 18:45:29 2011
ExecutablePath: /usr/bin/gedit
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110902)
ProcCmdline: gedit
SegvAnalysis:
 Segfault happened at: 0xc0d2db: cmp %ecx,(%eax)
 PC (0x00c0d2db) ok
 source "%ecx" ok
 destination "(%eax)" (0xcd5ec381) not located in a known VMA region (needed writable region)!
SegvReason: writing unknown VMA
Signal: 11
SourcePackage: gedit
StacktraceTop:
 ?? () from /usr/lib/libpeas-gtk-1.0.so.0
 g_cclosure_marshal_VOID__VOID () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
 g_closure_invoke () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
 ?? () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
 g_signal_emit_valist () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
Title: gedit crashed with SIGSEGV in g_cclosure_marshal_VOID__VOID()
UpgradeStatus: Upgraded to oneiric on 2011-09-12 (1 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Joshua Alcock (joshwajustify92) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 show_configure_cb (widget=0x8911848, pm=0x8942b20) at peas-gtk-plugin-manager.c:229
 g_cclosure_marshal_VOID__VOID (closure=0x893f4e8, return_value=0x0, n_param_values=1, param_values=0x882b108, invocation_hint=0xbffa82a0, marshal_data=0x0) at /build/buildd/glib2.0-2.29.90/./gobject/gmarshal.c:85
 g_closure_invoke (closure=0x893f4e8, return_value=0x0, n_param_values=1, param_values=0x882b108, invocation_hint=0xbffa82a0) at /build/buildd/glib2.0-2.29.90/./gobject/gclosure.c:774
 signal_emit_unlocked_R (node=0x84c4268, detail=0, instance=0x8911848, emission_return=0x0, instance_and_params=0x882b108) at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c:3272
 g_signal_emit_valist (instance=0x8911848, signal_id=143, detail=0, var_args=0xbffa844c "\366\025\220") at /build/buildd/glib2.0-2.29.90/./gobject/gsignal.c:3003

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gedit (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gedit (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert Roth (evfool) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

visibility: private → public
Revision history for this message
sayth (flebber-crue) wrote :

When I select Edit -> Preferences -> Plugins - Python Console and then choose preference option on this plugin gedit crashes causing this error.

Revision history for this message
Sebastien Bacher (seb128) wrote :

is that still an issue?

Changed in gedit (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Dan Halbert (dhalbert) wrote :

My oneiric is completely updated as of today, and I can still generate this crash (same scenario as comment #7). The python stacktrace is:

$ gedit
Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/pythonconsole/__init__.py", line 65, in do_create_configure_widget
    return config_widget.configure_widget()
  File "/usr/lib/gedit/plugins/pythonconsole/config.py", line 49, in configure_widget
    self._settings.get_string(self.CONSOLE_KEY_COMMAND_COLOR))
  File "/usr/lib/gedit/plugins/pythonconsole/config.py", line 61, in set_colorbutton_color
    parsed, color = Gdk.color_parse(value)
TypeError: 'Color' object is not iterable
Segmentation fault

Changed in gedit (Ubuntu):
assignee: nobody → Michael Terry (mterry)
status: Incomplete → New
Revision history for this message
Michael Terry (mterry) wrote :

I have a patch for this that I submitted upstream. Will package it up after I decide if bug 857707 needs anything on the gedit side or not.

Changed in gedit (Ubuntu):
status: New → Triaged
Changed in gedit:
importance: Unknown → Medium
status: Unknown → New
Changed in gedit:
status: New → Fix Released
Revision history for this message
Michael Terry (mterry) wrote :

I've pushed a patch to oneiric-proposed (gedit 3.2.1-0ubuntu2) for this. This bug is a crash regression from 11.04.

To reproduce:
 * Select Edit -> Preferences -> Plugins -> Python Console
 * Enable it
 * Then click its "Preferences" button

gedit will crash, but it shouldn't with this patch.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Joshua, or anyone else affected,

Accepted gedit into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in gedit (Ubuntu Oneiric):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

SRU verification for Oneiric:
I have reproduced the problem with gedit 3.2.1-0ubuntu1 in oneiric-updates and have verified that the version of gedit 3.2.1-0ubuntu2 in -proposed fixes the issue.

Marking as verification-done

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gedit - 3.2.1-0ubuntu2

---------------
gedit (3.2.1-0ubuntu2) oneiric-proposed; urgency=low

  * debian/patches/07_pyconsole_crash.patch:
    - Don't crash when opening the pythonconsole plugin's preferences
      (LP: #849225)
 -- Michael Terry <email address hidden> Thu, 20 Oct 2011 15:00:35 -0400

Changed in gedit (Ubuntu):
status: Triaged → Fix Released
Changed in gedit (Ubuntu Oneiric):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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