! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Mousepad randomly segfaults reading ro files
Status:
RESOLVED: FIXED
Product:
Mousepad
Component:
General

Comments

Description Lauri Kasanen 2007-07-14 07:02:45 CEST
I'm using mousepad 0.2.12 (can't select this version from the list..) from Xfce 4.4.1 stable. (as unprivileged user)

Everytime reading readonly files it randomly segfaults.
It can open them, and if I don't touch anything, it stays fine.
But if I move the cursor with mouse or arrows it randomly segfaults,
and if I select text with mouse it instantly segfaults.

Changing the files to read-write removes this behavior.

I don't have gdb or anything like that, so cannot attach a trace..

System info:
LinuxFromScratch dev-20070504
Gtk-2 2.10.11
Glib-2 2.12.11


PS. it also segfaults on any files (rw too) if started with sudo, not sure if that's related..
Comment 1 Erik Harrison 2007-07-14 17:02:08 CEST
Without a backtrace this is pretty much useless. I'm running identical versions of Gtk+/GLib, and I don't see this behavior.

Two basic possibilities - either there is a bug somewhere down the software stack that mousepad is hitting, or Mousepad has a bug that's only uncovered by a slight change in the underlying behavior (memory alignment) of something it depends on, directly or indirectly.

I'm leaving this bug open for now, in case someone else can shed any light on the issue.
Comment 2 Lauri Kasanen 2007-08-25 13:51:02 CEST
I just had a similar behavior in Sylpheed (e-mail program). It segfaulted the second I selected text. It's a gtk app, so I guess this isn't Mousepad specific..
Comment 3 Erik Harrison 2007-08-25 18:09:29 CEST
Well, selecting text is different from reading a file from disk. Regardless, I'm gonna clean up the bugs by closing this works for me, on the reasoning that you seem to have other problems with your system. Sorry about that.
Comment 4 Lauri Kasanen 2007-08-27 17:02:43 CEST
I compiled gdb and got a backtrace. Unofortunately I've stripped everything, but atleast the gtk function name is seen.

Program received signal SIGSEGV, Segmentation fault.
0xb7d83d84 in _gtk_text_btree_get_chars_changed_stamp ()

(gdb) bt full
#0  0xb7d83d84 in _gtk_text_btree_get_chars_changed_stamp ()
   from /usr/lib/libgtk-x11-2.0.so.0
   No symbol table info available.
   #1  0xb7da3429 in gtk_text_iter_ends_line () from 
   /usr/lib/libgtk-x11-2.0.so.0
   No symbol table info available.
   #2  0x00000006 in ?? ()
   No symbol table info available.
   #3  0x00000016 in ?? ()
   No symbol table info available.
   #4  0xbfd12304 in ?? ()
   No symbol table info available.
   #5  0xbfd12308 in ?? ()
   No symbol table info available.
   #6  0xbfd12310 in ?? ()
   No symbol table info available.
   #7  0xbfd122f0 in ?? ()
   No symbol table info available.
   #8  0xbfd123e8 in ?? ()
   No symbol table info available.
   #9  0xb7da1d27 in gtk_text_iter_is_end () from 
   /usr/lib/libgtk-x11-2.0.so.0
   No symbol table info available.
   #10 0x083a0eb8 in ?? ()
   No symbol table info available.
Comment 5 Lauri Kasanen 2007-09-14 16:03:10 CEST
Since it seemed like a gtk bug, I just compiled the lastest stable, 2.10.14 I think, and suddenly the bug's gone. In all apps.

This wasn't your fault, sorry to have bothered ya :)

Bug #3394

Reported by:
Lauri Kasanen
Reported on: 2007-07-14
Last modified on: 2007-09-14

People

Assignee:
Erik Harrison
CC List:
0 users

Version

Version:
Unspecified

Attachments

Additional information