GNOME Bugzilla – Bug 107939
Pressing Ctrl+Home or Ctrl+End in GtkTextViewcauses segfault
Last modified: 2004-12-22 21:47:04 UTC
Help->About/pan -v report .13.90, but I'm using cvs, so not sure which teh bug is specific to. Steps to reproduce: 1.) Choose a group. 2.) Choose a header in the group. 3.) Make sure focus is on the article body. 4.) Press Ctrl + Home or Ctrl+End, and watch pan crash.
Created attachment 14877 [details] Backtrace log
Created attachment 14878 [details] Last thirty lines of output from pan --debug
Confirmed on RH 8.1 with cvs head...
Created attachment 14882 [details] another backtrace, made on RH 8.1 with Pan CVS head.
More information: * This happens even if all the g_signal_connect() statements on that TextView widget is removed. * This can be reproduced even without loading a group, by just highlighting some text in the welcome copyright message and hitting ctrl-home or ctrl-end. * gtk-demo's GtkTextView demo _doesn't_ crash, so this needs first to be investigated as a Pan bug.
Not sure if it helps or not, but I noticed that pressing Ctrl+Home/Ctrl+End in the composer *doesn't* crash Pan.
I can't make this happen on my RH8.0 box with gtk+ 2.0.6, nor a Solaris box running gtk+ 2.0.9. Maybe this bug requires gtk 2.2? bluejamc: what version of gtk+ do you have?
Gtk+-2.2.1 here.
Double-checking on my RH8.1 box, which has gtk 2.2.1, yup, it still crashes here. :|
Just another datapoint, I upgraded my Solaris box to gtk+ 2.2.1 and the bug is showing up there too now. So, confirmed that this is a bug in Pan only under gtk+ 2.2.1 The crash is caused from a NULL pointer being dereferenced in gtk_text_view_move_cursor_internal in gtktextview.c:4577: 4574 if (count > 0) 4575 set_adjustment_clamped (adj, adj->value + adj->step_increment); 4576 else 4577 set_adjustment_clamped (adj, adj->value - adj->step_increment); Where adj is NULL. Backtrace attached.
Created attachment 15266 [details] backtrace with debug information
Bumping to the gtk+ team because this is reproducable in gtk-demo with gtk 2.2.1. to reproduce: 1. start gtkdemo 2. with the mouse, highlight the phrase "demonstrates a typical application window, with menubar, toolbar, statusbar" in the info tab. 3. press ctrl-end. At this point gtk-demo crashes, with a backtrace whose relevant parts are identical to the 03/28/03 11:41 attachment's backtrace.
*** Bug 110795 has been marked as a duplicate of this bug. ***
Same on RH9 w/ gtk2-2.2.1-4.
Already fixed in the 2.2 branch, there is a bug open with a more extensive fix for head, which I can't find currently.
*** Bug 110853 has been marked as a duplicate of this bug. ***
*** Bug 112553 has been marked as a duplicate of this bug. ***
*** Bug 114030 has been marked as a duplicate of this bug. ***