GNOME Bugzilla – Bug 471687
crash selecting mail content ...
Last modified: 2009-11-03 15:51:04 UTC
If I start a selection by pressing shuft select and press page-down a few times to extend it downwards (over the HTML table): bang ... Program received signal SIGSEGV, Segmentation fault. (gdb) bt
+ Trace 158954
Looks dup of either http://bugzilla.gnome.org/show_bug.cgi?id=222062 or http://bugzilla.gnome.org/show_bug.cgi?id=269748
*** Bug 500837 has been marked as a duplicate of this bug. ***
*** Bug 491962 has been marked as a duplicate of this bug. ***
*** Bug 491961 has been marked as a duplicate of this bug. ***
*** Bug 491958 has been marked as a duplicate of this bug. ***
Hmm, I cannot reproduce it, somehow. Do you have any special mail and text portion to reproduce this?
Milan, Srini knows more details about the bug.I just filed the bug for him.It will be better to ask him. Thanks !
BNC bug https://bugzilla.novell.com/show_bug.cgi?id=293904
srag ping
Milan, Michael was the original downstream reporter.
*** Bug 535172 has been marked as a duplicate of this bug. ***
last dup in 3.18.x
Hm. I am going to close this bug as OBSOLETE then...
I can reproduce at will trying to remove gunk from a forwarded message (it crashes while using shift+arrows to select the text). gtkhtml3-3.26.3-1.fc11.x86_64 evolution-2.26.3-1.fc11.x86_64
+ Trace 216783
For me to find it again: Message-Id: <1249391496.3375.577.camel@handsome-monkey-king> 180 t = HTML_TABLE (self); 181 nt = g_new0 (HTMLTable, 1); 182 183 start = HTML_TABLE_CELL ((from && from->next) ? from->data : html_object_head (self)); 184 end = HTML_TABLE_CELL ((to && to->next) ? to->data : html_object_tail (self)); 185 rows = end->row - start->row + 1; 186 cols = end->row == start->row ? end->col - start->col + 1 : t->totalCols; 187 188 copy_sized (self, HTML_OBJECT (nt), rows, cols); 189 (gdb) p start $3 = (HTMLTableCell *) 0x0 Huh.
Thanks for the update, Bastien. Could you share the test mail with some exact steps what portion to select and such, please? Of course only if it doesn't contain any private information. (I believe the message HTML part structure is important here only, not whom it sent or what information it contained).
Simon Brys has attached a patch in downstream bug which solves crash for him. --- gtkhtml/htmltable.c.ori 2009-09-17 11:33:12.000000000 +0200 +++ gtkhtml/htmltable.c 2009-09-17 11:35:23.000000000 +0200 @@ -182,6 +182,13 @@ start = HTML_TABLE_CELL ((from && from->next) ? from->data : html_object_head (self)); end = HTML_TABLE_CELL ((to && to->next) ? to->data : html_object_tail (self)); + + if (!start || !end) { + copy_sized (self, HTML_OBJECT (nt), 0, 0); + (*len) ++; + return HTML_OBJECT (nt); + } + rows = end->row - start->row + 1; cols = end->row == start->row ? end->col - start->col + 1 : t->totalCols;
I cannot reproduce it now, with 2.28.1, without the above patch. I'm willing to include this in sources, I just want to test it first. Do we have some reproducer, please? I tried to build some test HTML message, with some tables/link/image but no luck with a selection crash.
Sent you a reproducer privately.
Great, thanks, I can reproduce it with your message, but I cannot with the patch applied, thus: Created commit 5147eac in gtkhtml master (3.29.2+) Created commit 2956681 in gtkhtml gnome-2-28 (3.28.2+)