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 702868 - crash on exit
crash on exit
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-06-22 18:40 UTC by Andreas J. Guelzow
Modified: 2013-06-24 02:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample file (1.68 KB, application/gnumeric)
2013-06-22 18:40 UTC, Andreas J. Guelzow
  Details
proposed patch (896 bytes, patch)
2013-06-22 19:01 UTC, Andreas J. Guelzow
none Details | Review

Description Andreas J. Guelzow 2013-06-22 18:40:03 UTC
Created attachment 247525 [details]
sample file

new gnumeric
open the attached file
select B1
copy
select B2
paste
save
save as ODF 1.2 extended
quit

boom:

Program received signal SIGSEGV, Segmentation fault.
0xb7d1b694 in x_clipboard_get_cb (gclipboard=0x8213418, selection_data=0xbfffe690, info=0, app=0x8122278)
    at gui-clipboard.c:925
925			Workbook *wb = clipboard->origin_sheet->workbook;
(gdb) bt
  • #0 x_clipboard_get_cb
    at gui-clipboard.c line 925
  • #1 selection_get_cb
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkclipboard.c line 408
  • #2 _gtk_marshal_VOID__BOXED_UINT_UINT
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmarshalers.c line 1539
  • #3 g_closure_invoke
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #4 ??
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #5 g_signal_emit_valist
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #6 g_signal_emit_by_name
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #7 gtk_selection_invoke_handler
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkselection.c line 3021
  • #8 _gtk_selection_request
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkselection.c line 2421
  • #9 _gtk_marshal_BOOLEAN__BOXED
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmarshalers.c line 85
  • #10 ??
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #11 g_closure_invoke
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #12 ??
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #13 g_signal_emit_valist
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #14 g_signal_emit
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #15 gtk_widget_event_internal
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkwidget.c line 6132
  • #16 gtk_main_do_event
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmain.c line 1835
  • #17 _gdk_event_emit
    at /build/buildd/gtk+3.0-3.2.0/./gdk/gdkevents.c line 71
  • #18 gdk_event_source_dispatch
    at /build/buildd/gtk+3.0-3.2.0/./gdk/x11/gdkeventsource.c line 360
  • #19 g_main_context_dispatch
    from /lib/i386-linux-gnu/libglib-2.0.so.0
  • #20 ??
    from /lib/i386-linux-gnu/libglib-2.0.so.0
  • #21 g_main_loop_run
    from /lib/i386-linux-gnu/libglib-2.0.so.0
  • #22 gtk_clipboard_store
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkclipboard.c line 2138
  • #23 _gtk_clipboard_store_all
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkclipboard.c line 2174
  • #24 gtk_main
    at /build/buildd/gtk+3.0-3.2.0/./gtk/gtkmain.c line 1381
  • #25 main
    at main-application.c line 383

I am classifying it as 'General' since I see no odf import in the trace. I also have at the time of the crash:

(gdb) p clipboard->origin_sheet
$2 = (Sheet *) 0x0
Comment 1 Andreas J. Guelzow 2013-06-22 18:47:44 UTC
If I enable clipboard debugging I see just before the crash:

clipboard target=UTF8_STRING
** Message: clipboard text of 16 bytes
Handing off clipboard
clipboard target=UTF8_STRING

Program received signal SIGSEGV, Segmentation fault.
0xb7d1b694 in x_clipboard_get_cb (gclipboard=0x8268100, selection_data=0xbfffe670, info=0, app=0x8122278)
    at gui-clipboard.c:925
925			Workbook *wb = clipboard->origin_sheet->workbook;
Comment 2 Andreas J. Guelzow 2013-06-22 19:01:16 UTC
Created attachment 247526 [details] [review]
proposed patch
Comment 3 Morten Welinder 2013-06-24 00:55:24 UTC
I don't see this, but the patch looks harmless.
Comment 4 Andreas J. Guelzow 2013-06-24 02:28:23 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.