gnote crashed with SIGSEGV in gtk_text_iter_get_offset()

Bug #522372 reported by Mike Durham
154
This bug affects 30 people
Affects Status Importance Assigned to Milestone
gnote (Debian)
New
Undecided
Unassigned
gnote (Ubuntu)
Triaged
Critical
Unassigned
Nominated for Lucid by Ryan

Bug Description

Binary package hint: gnote

Gnote started and search worked okay, but I can't open a note, it just crashes.

ProblemType: Crash
Architecture: i386
Date: Tue Feb 16 08:23:23 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/gnote
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100113)
Package: gnote 0.6.2-2
ProcCmdline: /usr/bin/gnote --panel-applet --oaf-activate-iid=OAFIID:GnoteApplet_Factory --oaf-ior-fd=55
ProcEnviron:
 LANG=en_AU.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic
SegvAnalysis:
 Segfault happened at: 0x1196547: mov 0x28(%eax),%eax
 PC (0x01196547) ok
 source "0x28(%eax)" (0x00000028) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: gnote
StacktraceTop:
 ?? () from /usr/lib/libgtk-x11-2.0.so.0
 gtk_text_iter_get_offset ()
 Gtk::TextIter::get_offset (this=0xbfdbddb4)
 gnote::NoteBufferArchiver::deserialize(Glib::RefPtr<Gtk::TextBuffer> const&, Gtk::TextIter const&, sharp::XmlReader&) ()
 gnote::NoteBufferArchiver::deserialize(Glib::RefPtr<Gtk::TextBuffer> const&, Gtk::TextIter const&, std::string const&) ()
Title: gnote crashed with SIGSEGV in gtk_text_iter_get_offset()
Uname: Linux 2.6.32-13-generic i686
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev plugdev sambashare tape vboxusers video
XsessionErrors:
 (gnome-settings-daemon:2276): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2276): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:2313): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
Mike Durham (mdurhamesq) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 _gtk_text_btree_get_chars_changed_stamp (tree=0x5)
 IA__gtk_text_iter_get_offset (iter=0xbfdbddb4)
 Gtk::TextIter::get_offset (this=0xbfdbddb4)
 gnote::NoteBufferArchiver::deserialize (buffer=@0xbfdbde5c,
 gnote::NoteBufferArchiver::deserialize (buffer=@0xbfdbde5c,

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 gnote (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
visibility: private → public
Changed in gnote (Ubuntu):
importance: Medium → Critical
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

It's possible that debian bugs 563454 or 563675 are related to this one.

Revision history for this message
Roman Yepishev (rye) wrote :

563454 and 563675 are related to 0.7.0 and libnoteoftheday module, we are running 0.6.2 in Lucid Lynx.
In our case corruption happens early and then we see the crash when note is being displayed.

Copying my note from bug 521434:
It appears that something becomes corrupted in Gtk::TextBuffer. This is what is printed when the code below is executed.

notebuffer.cpp:
  NoteBuffer::NoteBuffer(const NoteTagTable::Ptr & tags, Note & note)
    : Gtk::TextBuffer(tags)
    , m_undomanager(NULL)
    , m_note(note)
  {
    DBG_OUT("rtg: notebuffer.cpp:53: NoteBuffer::NoteBuffer()");
    ...

called from notebuffer.hpp:
  static Ptr create(const NoteTagTable::Ptr & table, Note & note)
    {
      DBG_OUT("rtg: notebuffer.hpp:59");
      return Ptr(new NoteBuffer(table, note));
    }

-1208190384) DEBUG: create - rtg: notebuffer.hpp:59
(gnote:3013): GLib-GObject-WARNING **: cannot register existing type `gtkmm__GtkTextBuffer'
(gnote:3013): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `<invalid>'
(gnote:3013): GLib-GObject-CRITICAL **: g_object_class_find_property: assertion `G_IS_OBJECT_CLASS (class)' failed
(gnote:3013): glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "(null)" has no property named "tag_table"
(gnote:3013): GLib-GObject-CRITICAL **: g_type_class_unref: assertion `g_class != NULL' failed
(gnote:3013): GLib-GObject-CRITICAL **: g_object_newv: assertion `G_TYPE_IS_OBJECT (object_type)' failed
(-1208190384) DEBUG: NoteBuffer - rtg: notebuffer.cpp:53: NoteBuffer::NoteBuffer()

These lines are printed when Gtk::TextBuffer(tags) is initialized so I'd like someone with Gtk++ knowledge to look at these messages.

Are we going to use gnote 0.7.x?

Revision history for this message
buratinas (buratinas) wrote :

I'm affected too. However, in my case gnote couldn't even start.

Revision history for this message
Knatchwa (rl-marr) wrote :

Also affects amd64 - in attempting to open a note there is this segmentation fault, with the most recent updates.

Revision history for this message
_khAttAm_ (pravindahal-gmail) wrote :

I got a similar problem with 0.6 and upgraded to 0.7 via ppa, but the problem still persists.

Revision history for this message
Anthony Hook (anthonyhook) wrote :

I just installed this today and was unable to launch, 0.6.2-2 as in the Lucid repositories at the moment.

Revision history for this message
ichtyandr82 (ichtyandr82) wrote :

same here, lucid alpha3 amd64 cannot open or create notes, 0.6.2-2 as well

Revision history for this message
Ryan (ryan-farmer-personal-deactivatedaccount) wrote :

Affects me too. AMD64.

Revision history for this message
Victor Vargas (kamus) wrote :

I just install and run gnote, after that gnote crashed. All this happened in a fully updated Lucid running under a VM.

Revision history for this message
ekilfoil (ekilfoil) wrote :

This bug is in gtkmm (libgtkmm-2.4-1c2a) 2.19.4. According to https://bugs.launchpad.net/ubuntu/+source/regexxer/+bug/521412 this has been fixed in 2.19.5.

This is a critical bug and gtkmm needs to a version bump for Lucid since any gtkmm app that uses Gtk::TextBuffer will probably have the same problem (including my project).

Code to reproduce:

#include <gtkmm.h>

int main(int argc, char *argv[]) {
 Gtk::Main kit(argc, argv);
 Glib::RefPtr<Gtk::TextBuffer> buf = Gtk::TextBuffer::create();
}

Command to compile above program:
gcc `pkg-config --cflags --libs gtkmm-2.4` bug.cpp

Revision history for this message
Jonathon Fernyhough (jfernyhough) wrote :

Downgrading to 2.18.2-1 fixes gnote as a workaround.

https://launchpad.net/ubuntu/lucid/amd64/libgtkmm-2.4-1c2a
(libgtkmm-2.4-1c2a_2.18.2-1_amd64.deb)

Revision history for this message
_khAttAm_ (pravindahal-gmail) wrote :

Yes. The problem seems to be with the libgtkmm-2.4-1c2a-2.19.4.. I installed (dpkg) the older release 2.18.2-1 and gnote works.

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

Other bug subscribers