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 746129 - crash (SIGSEGV) while going to line 31948 in a large SQL dump
crash (SIGSEGV) while going to line 31948 in a large SQL dump
Status: RESOLVED INCOMPLETE
Product: gedit
Classification: Applications
Component: general
3.14.x
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2015-03-13 05:18 UTC by Paul Wise
Modified: 2015-03-22 11:08 UTC
See Also:
GNOME target: ---
GNOME version: 3.13/3.14


Attachments
gdb backtrace of the crash (42.36 KB, text/plain)
2015-03-13 05:18 UTC, Paul Wise
Details

Description Paul Wise 2015-03-13 05:18:10 UTC
Created attachment 299260 [details]
gdb backtrace of the crash

I'm using gedit 3.14.0-3 and GNOME 3.14 on Debian jessie. I got a crash while trying to go to line 31948 in a large SQL dump.
Comment 1 Sébastien Wilmet 2015-03-13 13:10:13 UTC
Thanks for the bug report.

I copy/paste the backtrace in the comment so that bugzilla will display it nicely.

Thread 1 (Thread 0x7f09d844d980 (LWP 24495))

  • #0 _gtk_text_btree_get_chars_changed_stamp
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtktextbtree.c line 543
  • #1 gtk_text_iter_make_surreal
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtktextiter.c line 173
  • #2 gtk_text_iter_get_line
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtktextiter.c line 637
  • #3 ??
    from /usr/lib/x86_64-linux-gnu/gedit/libgedit.so
  • #4 g_closure_invoke
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gclosure.c line 768
  • #5 signal_emit_unlocked_R
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3553
  • #6 g_signal_emit_valist
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3309
  • #7 g_signal_emit
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3365
  • #8 g_simple_action_activate
    at /tmp/buildd/glib2.0-2.42.1/./gio/gsimpleaction.c line 211
  • #9 gtk_action_muxer_activate_action
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkactionmuxer.c line 411
  • #10 gtk_action_muxer_activate_action
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkactionmuxer.c line 413
  • #11 gtk_action_muxer_activate_action
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkactionmuxer.c line 413
  • #12 gtk_action_muxer_activate_action
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkactionmuxer.c line 413
  • #13 gtk_action_muxer_activate_action
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkactionmuxer.c line 413
  • #14 gtk_action_muxer_activate_action
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkactionmuxer.c line 413
  • #15 gtk_action_muxer_activate_action
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkactionmuxer.c line 413
  • #16 gtk_menu_tracker_item_activated
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkmenutrackeritem.c line 778
  • #17 gtk_popover_item_activate
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkmenusectionbox.c line 185
  • #18 _g_closure_invoke_va
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gclosure.c line 831
  • #19 g_signal_emit_valist
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3218
  • #20 g_signal_emit
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3365
  • #21 gtk_button_do_release
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkbutton.c line 1890
  • #22 gtk_real_button_released
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkbutton.c line 2008
  • #23 gtk_model_button_released
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkmodelbutton.c line 686
  • #24 g_closure_invoke
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gclosure.c line 768
  • #25 signal_emit_unlocked_R
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3483
  • #26 g_signal_emit_valist
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3309
  • #27 g_signal_emit
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3365
  • #28 multipress_released_cb
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkbutton.c line 611
  • #29 ffi_call_unix64
    at ../src/x86/unix64.S line 76
  • #30 ffi_call
    at ../src/x86/ffi64.c line 525
  • #31 g_cclosure_marshal_generic_va
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gclosure.c line 1541
  • #32 _g_closure_invoke_va
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gclosure.c line 831
  • #33 g_signal_emit_valist
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3218
  • #34 g_signal_emit
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3365
  • #35 gtk_gesture_multi_press_end
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkgesturemultipress.c line 273
  • #36 g_cclosure_marshal_VOID__BOXEDv
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gmarshal.c line 1160
  • #37 _g_closure_invoke_va
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gclosure.c line 831
  • #38 g_signal_emit_valist
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3218
  • #39 g_signal_emit
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3365
  • #40 _gtk_gesture_set_recognized
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkgesture.c line 275
  • #41 _gtk_gesture_check_recognized
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkgesture.c line 315
  • #42 gtk_gesture_handle_event
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkgesture.c line 624
  • #43 gtk_gesture_single_handle_event
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkgesturesingle.c line 218
  • #44 gtk_event_controller_handle_event
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkeventcontroller.c line 214
  • #45 _gtk_widget_run_controllers
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkwidget.c line 7428
  • #46 _gtk_marshal_BOOLEAN__BOXEDv
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkmarshalers.c line 130
  • #47 _g_closure_invoke_va
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gclosure.c line 831
  • #48 g_signal_emit_valist
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3218
  • #49 g_signal_emit
    at /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c line 3365
  • #50 gtk_widget_event_internal
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkwidget.c line 7773
  • #51 propagate_event_up
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkmain.c line 2424
  • #52 propagate_event
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkmain.c line 2526
  • #53 gtk_main_do_event
    at /tmp/buildd/gtk+3.0-3.14.5/./gtk/gtkmain.c line 1748
  • #54 gdk_event_source_dispatch
    at /tmp/buildd/gtk+3.0-3.14.5/./gdk/x11/gdkeventsource.c line 364
  • #55 g_main_dispatch
    at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c line 3111
  • #56 g_main_context_dispatch
    at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c line 3710
  • #57 g_main_context_iterate
    at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c line 3781
  • #58 g_main_context_iteration
    at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c line 3842
  • #59 g_application_run
    at /tmp/buildd/glib2.0-2.42.1/./gio/gapplication.c line 2282
  • #60 main

Comment 2 Sébastien Wilmet 2015-03-13 13:13:31 UTC
>  #3 ?? from /usr/lib/x86_64-linux-gnu/gedit/libgedit.so

Debug info is missing for gedit, it'd be useful to know the function there.
Comment 3 Paul Wise 2015-03-13 16:36:00 UTC
Unfortunately Debian doesn't distribute debug info for gedit, I'll file a bug in Debian asking for that. Please close the bug if the backtrace isn't useful enough.
Comment 4 Sébastien Wilmet 2015-03-22 11:08:24 UTC
Frame #3 is probably _gedit_cmd_search_goto_line(), but this function doesn't call directly gtk_text_iter_get_line() (at frame #2). gtk_text_iter_get_line() is most probably called in gedit-view-frame.c, more precisely in init_search_entry().

But I'm not 100% sure, and by reading the code I don't see what's wrong. And I cannot reproduce the crash when testing the goto line on a big file (e.g. just after loading it, when the view isn't fully rendered).

So I'm closing the bug. If you have more information, like warning messages in the terminal, feel free to reopen.