After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 107939 - Pressing Ctrl+Home or Ctrl+End in GtkTextViewcauses segfault
Pressing Ctrl+Home or Ctrl+End in GtkTextViewcauses segfault
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.2.x
Other Linux
: Normal major
: ---
Assigned To: gtk-bugs
Pan QA Team
: 110795 110853 112553 114030 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-03-09 21:07 UTC by bluejamc
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Backtrace log (13.26 KB, text/plain)
2003-03-09 21:07 UTC, bluejamc
Details
Last thirty lines of output from pan --debug (4.41 KB, text/plain)
2003-03-09 21:14 UTC, bluejamc
Details
another backtrace, made on RH 8.1 with Pan CVS head. (3.14 KB, text/plain)
2003-03-10 02:58 UTC, Charles Kerr
Details
backtrace with debug information (5.21 KB, text/plain)
2003-03-28 16:41 UTC, Charles Kerr
Details

Description bluejamc 2003-03-09 21:07:08 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.
Comment 1 bluejamc 2003-03-09 21:07:46 UTC
Created attachment 14877 [details]
Backtrace log
Comment 2 bluejamc 2003-03-09 21:14:22 UTC
Created attachment 14878 [details]
Last thirty lines of output from pan --debug
Comment 3 Charles Kerr 2003-03-10 02:57:43 UTC
Confirmed on RH 8.1 with cvs head...
Comment 4 Charles Kerr 2003-03-10 02:58:51 UTC
Created attachment 14882 [details]
another backtrace, made on RH 8.1 with Pan CVS head.
Comment 5 Charles Kerr 2003-03-10 03:09:13 UTC
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.
Comment 6 bluejamc 2003-03-13 17:18:43 UTC
Not sure if it helps or not, but I noticed that pressing
Ctrl+Home/Ctrl+End in the composer *doesn't* crash Pan.
Comment 7 Charles Kerr 2003-03-13 18:03:31 UTC
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?
Comment 8 bluejamc 2003-03-13 18:15:45 UTC
Gtk+-2.2.1 here.
Comment 9 Charles Kerr 2003-03-17 14:04:32 UTC
Double-checking on my RH8.1 box, which has gtk 2.2.1, yup, it still
crashes here. :|
Comment 10 Charles Kerr 2003-03-28 16:40:55 UTC
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.
Comment 11 Charles Kerr 2003-03-28 16:41:50 UTC
Created attachment 15266 [details]
backtrace with debug information
Comment 12 Charles Kerr 2003-04-01 16:57:09 UTC
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.
Comment 13 Christophe Lambin 2003-04-15 06:53:06 UTC
*** Bug 110795 has been marked as a duplicate of this bug. ***
Comment 14 Christophe Lambin 2003-04-15 06:54:12 UTC
Same on RH9 w/ gtk2-2.2.1-4.
Comment 15 Matthias Clasen 2003-04-15 07:08:42 UTC
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.
Comment 16 Matthias Clasen 2003-04-15 13:40:29 UTC
*** Bug 110853 has been marked as a duplicate of this bug. ***
Comment 17 Charles Kerr 2003-05-08 15:37:25 UTC
*** Bug 112553 has been marked as a duplicate of this bug. ***
Comment 18 Matthias Clasen 2003-05-30 11:53:41 UTC
*** Bug 114030 has been marked as a duplicate of this bug. ***