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 444992 - crash adding to aspell dictionary with no word selected
crash adding to aspell dictionary with no word selected
Status: RESOLVED DUPLICATE of bug 378825
Product: bluefish
Classification: Other
Component: application
1.0.7
Other All
: Normal normal
: ---
Assigned To: Bluefish Maintainer(s)
Bluefish Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2007-06-07 05:17 UTC by Ralph Giles
Modified: 2007-07-06 03:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to add guards preventing the segfault (1.78 KB, patch)
2007-06-07 05:19 UTC, Ralph Giles
none Details | Review

Description Ralph Giles 2007-06-07 05:17:03 UTC
Steps to reproduce:
1. launch application
2. close tip window
3. Select Document:Check Spelling... from the menu
4. click the "Add" button in the Check Spelling window
5. segfault


Stack trace:
Program received signal SIGSEGV, Segmentation fault.

Thread 46962791714912 (LWP 4487)

  • #0 doc_get_next_word
    at bfspell.c line 89
  • #1 spell_run
    at bfspell.c line 186
  • #2 spell_gui_add_clicked
    at bfspell.c line 337
  • #3 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #4 ??
    from /usr/lib/libgobject-2.0.so.0
  • #5 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #6 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #7 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #8 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #9 ??
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #12 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #13 _gtk_marshal_BOOLEAN__BOXED
    from /usr/lib/libgtk-x11-2.0.so.0
  • #14 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #15 ??
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #17 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #18 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #19 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #22 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #23 ??
    from /usr/lib/libglib-2.0.so.0
  • #24 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #25 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #26 main
    at bluefish.c line 296
$1 = (Tbfspell *) 0xc1aad0
(gdb) print *bfspell
$2 = {spell_config = 0x792540, spell_checker = 0x0, filtert = filthtml, 
  win = 0xbb2510, lang = 0x78e0d0, filter = 0x78e340, langs = 0xc51780, 
  dict = 0xbc3280, runbut = 0xbbc0c0, repbut = 0xbbc430, ignbut = 0xbbc380, 
  in_doc = 0x78b1a0, in_sel = 0x78b260, incorrectword = 0x7424b0, 
  suggestions = 0xbbb6d0, doc = 0x0, offset = 0, stop_position = 0, so = 0x0, 
  eo = 0x0, bfwin = 0x98d770}
(gdb) print bfspell->doc->buffer
Cannot access memory at address 0x88
(gdb) print bfspell->doc
$3 = (Tdocument *) 0x0
(gdb) quit


Other information:
originally reported by Cory Doctorow
Comment 1 Ralph Giles 2007-06-07 05:19:16 UTC
Created attachment 89528 [details] [review]
patch to add guards preventing the segfault

This patch guards the segfaults I found, which may not be all of them. You may prefer a more specific fix.
Comment 2 Daniel Leidert 2007-06-29 02:24:29 UTC
To my knowledge, Jim already fixed this issue (untested). Your report seems to be a duplicate of http://bugzilla.gnome.org/show_bug.cgi?id=378825. The fix can be seen at http://bluefish.cvs.sourceforge.net/bluefish/bluefish-gtk2/src/bfspell.c?r1=1.26.2.3&r2=1.26.2.4&pathrev=bluefish_1_0.

However, the fix turns off the "Add word" button forever. Seems, we need to fix this.

Adjusting severity. It's not nice but IMO not critical.
Comment 3 Ralph Giles 2007-07-05 17:37:52 UTC
Yes, the patch seems to work, and is a better fix. Thanks. It doesn't turn off the "Add Word" button forever, just when the "Misspelled word" field (which is oddly uneditable) is empty.

The crash caused (repeated) data loss for the original reporter. I would have thought because of this a crash should be considered especially critical for an editor.
Comment 4 Daniel Leidert 2007-07-06 02:43:22 UTC
Doh! Missed a part of the patch. Yes it works. Will be applied to the Debian package soon. You can then file a sync-request for Ubuntu.

This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 378825 ***
Comment 5 Ralph Giles 2007-07-06 03:46:02 UTC
Thanks for pushing an update!