gedit crashed with SIGSEGV in zeitgeist_log_insert_events_from_ptrarray()

Bug #903975 reported by GNAServicesInc
62
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Zeitgeist Data-Sources
Invalid
Undecided
Unassigned
gedit (Ubuntu)
Fix Released
High
Unassigned

Bug Description

IDK if it helps or is related but when the problem happened I had an FTP connection to a remote webserver open in Nautilus and had a php file open.

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: gedit 3.2.5-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-4.10-generic 3.2.0-rc5
Uname: Linux 3.2.0-4-generic x86_64
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Tue Dec 13 17:17:00 2011
ExecutablePath: /usr/bin/gedit
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111212)
ProcCmdline: gedit /home/User Name/.gvfs/FTP\ as\ <removed>\ on\ ftp.<removed>.com/www/<removed>/<removed>/<removed>/<removed>/<removed>.php
SegvAnalysis:
 Segfault happened at: 0x7f1c7d48f0de <zeitgeist_log_insert_events_from_ptrarray+62>: cmp %rax,(%rdx)
 PC (0x7f1c7d48f0de) ok
 source "%rax" ok
 destination "(%rdx)" (0x00000001) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: gedit
StacktraceTop:
 zeitgeist_log_insert_events_from_ptrarray () from /usr/lib/libzeitgeist-1.0.so.1
 zeitgeist_log_insert_events_no_reply () from /usr/lib/libzeitgeist-1.0.so.1
 ?? () from /usr/lib/gedit/plugins/libzeitgeistplugin.so
 g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
 ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
Title: gedit crashed with SIGSEGV in zeitgeist_log_insert_events_from_ptrarray()
UpgradeStatus: Upgraded to precise on 2011-12-13 (0 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
GNAServicesInc (gnaservicesinc) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 zeitgeist_log_insert_events_from_ptrarray (self=0x111a800, events=0x7f1c701ba400, cancellable=0x0, callback=0, user_data=0x0) at zeitgeist-log.c:437
 zeitgeist_log_insert_events (self=0x111a800, cancellable=0x7f1c701ba400, callback=0x1, user_data=0x0) at zeitgeist-log.c:344
 gedit_zeitgeist_plugin_send_event (doc=<optimized out>, interpretation=0x7f1c7d6a20d0 "http://www.zeitgeist-project.com/ontologies/2010/01/27/zg#AccessEvent", plugin=<optimized out>) at gedit-zeitgeist-plugin.c:201
 g_closure_invoke (closure=0x7f1c703ce4f0, return_value=0x0, n_param_values=2, param_values=0x215ab20, invocation_hint=<optimized out>) at /build/buildd/glib2.0-2.31.4.is.2.31.2/./gobject/gclosure.c:774
 signal_emit_unlocked_R (node=<optimized out>, detail=0, instance=<optimized out>, emission_return=0x0, instance_and_params=0x215ab20) at /build/buildd/glib2.0-2.31.4.is.2.31.2/./gobject/gsignal.c:3302

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-amd64-retrace
visibility: private → public
description: updated
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
Romanos Dodopoulos (rwmanos) wrote :

I had also a php file open at gedit. Gedit crashed when I pressed to open a txt file (from firefox).

Revision history for this message
Eddie Kane (eddiekane150) wrote :

updated bash script and gedit grayed and crashed. script not affected.

Revision history for this message
Elvis Dominguez (elvisd79) wrote :

Had 5 (3 in read-only mode) files open, tried to close 4 of them with ctrl+W and gedit grayed out and then crashed.

affects: gedit (Ubuntu) → libzeitgeist (Ubuntu)
Revision history for this message
Michal Hruby (mhr3) wrote :

Seems to be an issue with the zeitgeist plugin inside gedit (incorrect ref-counting?)

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

Siegfried, assigning to you, mhr3 said you would have a look to it

Changed in libzeitgeist (Ubuntu):
assignee: nobody → Siegfried Gevatter (rainct)
Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote :

The gedit datasource which caused this issue is upstream
http://git.gnome.org/browse/gedit/tree/plugins/zeitgeist

Changed in zeitgeist-datasources:
status: New → Invalid
Revision history for this message
Siegfried Gevatter (rainct) wrote :

So ZeitgeistLog was being free'd once a tab was closed (but then still used for any other tabs). Fixed it here:
http://git.gnome.org/browse/gedit/commit/?id=4d7222562430379055e323f561c197dcb4106477

Not sure if that's the cause of this bug, but I couldn't spot anything else.

affects: libzeitgeist (Ubuntu) → gedit (Ubuntu)
Changed in gedit (Ubuntu):
assignee: Siegfried Gevatter (rainct) → nobody
importance: Medium → High
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gedit - 3.3.2-0ubuntu3

---------------
gedit (3.3.2-0ubuntu3) precise; urgency=low

  * debian/patches/git_invalid_unrefing.patch:
    - don't call unref on tab close, that leads to segfaults (lp: #903975)
 -- Sebastien Bacher <email address hidden> Wed, 01 Feb 2012 16:04:02 +0100

Changed in gedit (Ubuntu):
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.