← Back to team overview

desktop-packages team mailing list archive

[Bug 857707] Re: gedit crashed with SIGSEGV in g_type_get_qdata()

 

OK, this is definitely just the fault of gtksourceview.  It creates a
GtkSourceCompletionContext object with a floating ref, but doesn't sink
the ref until it wants to finalize it (using an unusual ref_sink/unref
pair of calls).

Which means that when Python wants to create a wrapper Python object for
the context, it naturally does a ref_sink/unref pair itself, which would
work fine as a normal ref/unref pair if someone had already indicated
they wanted to own it by sinking the ref themselves.  But since the
context floating ref was never sunk for some reason, the Python wrapper
ends up freeing the object.

This is an upstream bug too.  I'll file a bug & patch and link here.
But first an SRU.

** Package changed: gedit (Ubuntu) => gtksourceview3 (Ubuntu)

** Changed in: gtksourceview3 (Ubuntu)
       Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/857707

Title:
  gedit crashed with SIGSEGV in g_type_get_qdata()

Status in “gtksourceview3” package in Ubuntu:
  Triaged

Bug description:
  Gedit failed when it tried to show the proposed terms for the
  completer (using snippets or gedit-developer-plugins)

  The  The gdp test suite also reproduces the error.
  Doctest: syntaxcompleter-controller.doctest ... /usr/lib/python2.7/dist-packages/gi/types.py:43: Warning: g_object_ref: assertion `G_IS_OBJECT (object)' failed
    return info.invoke(*args, **kwargs)
  /usr/lib/python2.7/dist-packages/gi/types.py:43: Warning: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed
    return info.invoke(*args, **kwargs)
  /usr/lib/python2.7/dist-packages/gi/types.py:43: Warning: g_ascii_strncasecmp: assertion `s2 != NULL' failed
    return info.invoke(*args, **kwargs)
  /bin/bash: line 1: 12449 Segmentation fault      (core dumped) ./test.py

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: gedit 3.1.6-0ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-11.18-generic-pae 3.0.4
  Uname: Linux 3.0.0-11-generic-pae i686
  NonfreeKernelModules: nvidia wl
  ApportVersion: 1.23-0ubuntu1
  Architecture: i386
  CrashCounter: 1
  Date: Fri Sep 23 15:42:11 2011
  ExecutablePath: /usr/bin/gedit
  ProcCmdline: gedit _notes.txt
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, user)
   LANG=en_US.UTF-8
  SegvAnalysis:
   Segfault happened at: 0xb6bbfa79 <g_type_get_qdata+89>:	mov    (%eax),%edx
   PC (0xb6bbfa79) ok
   source "(%eax)" (0x00002400) not located in a known VMA region (needed readable region)!
   destination "%edx" ok
  SegvReason: reading NULL VMA
  Signal: 11
  SourcePackage: gedit
  StacktraceTop:
   g_type_get_qdata () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
   ?? () from /usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so
   ?? () from /usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so
   ?? () from /usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so
   ?? () from /usr/lib/python2.7/dist-packages/gi/_gi.so
  Title: gedit crashed with SIGSEGV in g_type_get_qdata()
  UpgradeStatus: Upgraded to oneiric on 2011-09-23 (0 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtksourceview3/+bug/857707/+subscriptions