When editing a .php document and typing {} in a document, geany crashes...
-H-
Somewhat of a backtrace:
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47081729380176 (LWP 5222)] 0x000000000042fd66 in ?? () (gdb) bt #0 0x000000000042fd66 in ?? () #1 0x0000000000430694 in ?? () #2 0x00002ad20df5299a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #3 0x00002ad20df626b8 in ?? () from /usr/lib/libgobject-2.0.so.0 #4 0x00002ad20df63af3 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #5 0x00002ad20df63cc3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #6 0x000000000048ed35 in ?? () #7 0x000000000049f4ff in ?? () #8 0x00000000004bd247 in ?? () #9 0x0000000000491309 in ?? () #10 0x00002ad20df5299a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #11 0x00002ad20df626b8 in ?? () from /usr/lib/libgobject-2.0.so.0 #12 0x00002ad20df63af3 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #13 0x00002ad20df66596 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 #14 0x00002ad20df5299a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #15 0x00002ad20df626b8 in ?? () from /usr/lib/libgobject-2.0.so.0 #16 0x00002ad20df63af3 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #17 0x00002ad20df66596 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 ---Type <return> to continue, or q <return> to quit--- #18 0x00002ad20ccf8ec4 in gtk_im_context_simple_commit_char (context=0x864990, ch=125) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkimcontextsimple.c:1017 #19 0x00002ad20ccf969e in gtk_im_context_simple_filter_keypress ( context=0x864990, event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkimcontextsimple.c:1253 #20 0x000000000048de4a in ?? () #21 0x00002ad20cd1915d in _gtk_marshal_BOOLEAN__BOXED (closure=0x7bace0, return_value=0x7fff9e106a50, n_param_values=<value optimized out>, param_values=0x7fff9e106b40, invocation_hint=<value optimized out>, marshal_data=0x48e1d0) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmarshalers.c:84 #22 0x00002ad20df52a50 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #23 0x00002ad20df62cc8 in ?? () from /usr/lib/libgobject-2.0.so.0 #24 0x00002ad20df638c7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #25 0x00002ad20df63cc3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #26 0x00002ad20ce1f0ae in gtk_widget_event_internal (widget=0xae7ba0, event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwidget.c:4675 #27 0x00002ad20ce2e1ab in IA__gtk_window_propagate_key_event (window=0x7c61f0, event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwindow.c:4935 #28 0x00002ad20ce30ffb in gtk_window_key_press_event (widget=0x7c61f0, event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwindow.c:4965 #29 0x00002ad20cd1915d in _gtk_marshal_BOOLEAN__BOXED (closure=0x7bace0, ---Type <return> to continue, or q <return> to quit--- return_value=0x7fff9e1070e0, n_param_values=<value optimized out>, param_values=0x7fff9e1071d0, invocation_hint=<value optimized out>, marshal_data=0x2ad20ce30fc0) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmarshalers.c:84 #30 0x00002ad20df5299a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #31 0x00002ad20df62cc8 in ?? () from /usr/lib/libgobject-2.0.so.0 #32 0x00002ad20df638c7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #33 0x00002ad20df63cc3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #34 0x00002ad20ce1f0ae in gtk_widget_event_internal (widget=0x7c61f0, event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwidget.c:4675 #35 0x00002ad20cd125f9 in IA__gtk_propagate_event (widget=0x7c61f0, event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmain.c:2291 #36 0x00002ad20cd13504 in IA__gtk_main_do_event (event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmain.c:1537 #37 0x00002ad20d1e81dc in gdk_event_dispatch (source=<value optimized out>,
callback=<value optimized out>, user_data=<value optimized out>) at /build/buildd/gtk+2.0-2.12.0/gdk/x11/gdkevents-x11.c:2351 #38 0x00002ad20e3bdfd3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #39 0x00002ad20e3c12dd in ?? () from /usr/lib/libglib-2.0.so.0 #40 0x00002ad20e3c15ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #41 0x00002ad20cd13883 in IA__gtk_main () ---Type <return> to continue, or q <return> to quit--- at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmain.c:1144 #42 0x000000000046ac26 in ?? () #43 0x00002ad20ee13b44 in __libc_start_main () from /lib/libc.so.6 #44 0x0000000000418549 in ?? () #45 0x00007fff9e1078a8 in ?? () #46 0x0000000000000000 in ?? () (gdb)
Hi,
On Fri, 26 Sep 2008 16:26:19 +0200 Harold Aling geany@sait.nl wrote:
When editing a .php document and typing {} in a document, geany crashes...
I can confirm this issue. I reproduced this by using a php document and typing <?php foobaa{}
(gdb) bt #0 0x0000000000498cb9 in scintilla_send_message () #1 0x000000000042f038 in lexer_has_braces (sci=0xf701e0830fe8c148) at ../src/editor.c:847 #2 0x000000000042f59c in close_block (editor=0x27bcba0, pos=13) at ../src/editor.c:1058 #3 0x000000000042e4d3 in on_char_added (editor=0x27bcba0, nt=0x7ffff3fc2ba0) at ../src/editor.c:456 #4 0x000000000042ebe1 in on_editor_notification (widget=0x2930410, scn=0, lscn=0x7ffff3fc2ba0, user_data=0x29e03d0) at ../src/editor.c:650 #5 0x000000000049cd46 in scintilla_marshal_VOID__INT_POINTER (closure=0x32c4920, return_value=0x0, n_param_values=3, param_values=0x7ffff3fc2840, invocation_hint=0x7ffff3fc2740, marshal_data=0x0) at ../scintilla/scintilla-marshal.c:81 #6 0x00007fe0ea804ebd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #7 0x00007fe0ea817c2d in ?? () from /usr/lib/libgobject-2.0.so.0 #8 0x00007fe0ea819116 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #9 0x00007fe0ea819623 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #10 0x000000000049aec3 in ScintillaGTK::NotifyParent () #11 0x00000000004a4eb3 in Editor::NotifyChar () #12 0x00000000004b017d in Editor::AddCharUTF () #13 0x00000000004dc343 in ScintillaBase::AddCharUTF () #14 0x0000000000499e6a in ScintillaGTK::CommitThis () #15 0x00007fe0ea804ebd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #16 0x00007fe0ea817c2d in ?? () from /usr/lib/libgobject-2.0.so.0 #17 0x00007fe0ea819116 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #18 0x00007fe0ea819482 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 #19 0x00007fe0ea804ebd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #20 0x00007fe0ea817c2d in ?? () from /usr/lib/libgobject-2.0.so.0 #21 0x00007fe0ea819116 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #22 0x00007fe0ea819482 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 #23 0x00007fe0eb90848a in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #24 0x00007fe0eb908c8a in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #25 0x0000000000499550 in ScintillaGTK::KeyThis () #26 0x00007fe0eb92a688 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #27 0x00007fe0ea804e0f in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #28 0x00007fe0ea8178fc in ?? () from /usr/lib/libgobject-2.0.so.0 #29 0x00007fe0ea818f99 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #30 0x00007fe0ea819623 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #31 0x00007fe0eba3f19e in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #32 0x00007fe0eba4f9eb in gtk_window_propagate_key_event () from /usr/lib/libgtk-x11-2.0.so.0 #33 0x00007fe0eba5292b in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #34 0x00007fe0eb92a688 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #35 0x00007fe0ea804ebd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #36 0x00007fe0ea8178fc in ?? () from /usr/lib/libgobject-2.0.so.0 #37 0x00007fe0ea818f99 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #38 0x00007fe0ea819623 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #39 0x00007fe0eba3f19e in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #40 0x00007fe0eb9232dd in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #41 0x00007fe0eb92424b in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #42 0x00007fe0eb585f8c in ?? () from /usr/lib/libgdk-x11-2.0.so.0 ---Type <return> to continue, or q <return> to quit--- #43 0x00007fe0ea168892 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #44 0x00007fe0ea16c01d in ?? () from /usr/lib/libglib-2.0.so.0 #45 0x00007fe0ea16c54d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #46 0x00007fe0eb924667 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #47 0x0000000000470167 in main (argc=1, argv=0x7ffff3fc4a68) at ../src/main.c:900
On Fri, 26 Sep 2008 16:25:10 +0200 Frank Lanitz frank@frank.uvena.de wrote:
(gdb) bt #0 0x0000000000498cb9 in scintilla_send_message () #1 0x000000000042f038 in lexer_has_braces (sci=0xf701e0830fe8c148)
[...] Forget to add: bt is from r3007
Patch fixes the crash. With GDB, the problem was very obvious. Introduced in r2998 (whoops!)
http://geany.svn.sourceforge.net/viewvc/geany/trunk/src/editor.c?r1=2996&...
Frank Lanitz wrote:
Hi,
On Fri, 26 Sep 2008 16:26:19 +0200 Harold Aling geany@sait.nl wrote:
When editing a .php document and typing {} in a document, geany crashes...
I can confirm this issue. I reproduced this by using a php document and typing <?php foobaa{}
(gdb) bt #0 0x0000000000498cb9 in scintilla_send_message () #1 0x000000000042f038 in lexer_has_braces (sci=0xf701e0830fe8c148) at ../src/editor.c:847 #2 0x000000000042f59c in close_block (editor=0x27bcba0, pos=13) at ../src/editor.c:1058 #3 0x000000000042e4d3 in on_char_added (editor=0x27bcba0, nt=0x7ffff3fc2ba0) at ../src/editor.c:456 #4 0x000000000042ebe1 in on_editor_notification (widget=0x2930410, scn=0, lscn=0x7ffff3fc2ba0, user_data=0x29e03d0) at ../src/editor.c:650 #5 0x000000000049cd46 in scintilla_marshal_VOID__INT_POINTER (closure=0x32c4920, return_value=0x0, n_param_values=3, param_values=0x7ffff3fc2840, invocation_hint=0x7ffff3fc2740, marshal_data=0x0) at ../scintilla/scintilla-marshal.c:81 #6 0x00007fe0ea804ebd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #7 0x00007fe0ea817c2d in ?? () from /usr/lib/libgobject-2.0.so.0 #8 0x00007fe0ea819116 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #9 0x00007fe0ea819623 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #10 0x000000000049aec3 in ScintillaGTK::NotifyParent () #11 0x00000000004a4eb3 in Editor::NotifyChar () #12 0x00000000004b017d in Editor::AddCharUTF () #13 0x00000000004dc343 in ScintillaBase::AddCharUTF () #14 0x0000000000499e6a in ScintillaGTK::CommitThis () #15 0x00007fe0ea804ebd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #16 0x00007fe0ea817c2d in ?? () from /usr/lib/libgobject-2.0.so.0 #17 0x00007fe0ea819116 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #18 0x00007fe0ea819482 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 #19 0x00007fe0ea804ebd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #20 0x00007fe0ea817c2d in ?? () from /usr/lib/libgobject-2.0.so.0 #21 0x00007fe0ea819116 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #22 0x00007fe0ea819482 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 #23 0x00007fe0eb90848a in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #24 0x00007fe0eb908c8a in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #25 0x0000000000499550 in ScintillaGTK::KeyThis () #26 0x00007fe0eb92a688 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #27 0x00007fe0ea804e0f in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #28 0x00007fe0ea8178fc in ?? () from /usr/lib/libgobject-2.0.so.0 #29 0x00007fe0ea818f99 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #30 0x00007fe0ea819623 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #31 0x00007fe0eba3f19e in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #32 0x00007fe0eba4f9eb in gtk_window_propagate_key_event () from /usr/lib/libgtk-x11-2.0.so.0 #33 0x00007fe0eba5292b in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #34 0x00007fe0eb92a688 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #35 0x00007fe0ea804ebd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #36 0x00007fe0ea8178fc in ?? () from /usr/lib/libgobject-2.0.so.0 #37 0x00007fe0ea818f99 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #38 0x00007fe0ea819623 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #39 0x00007fe0eba3f19e in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #40 0x00007fe0eb9232dd in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #41 0x00007fe0eb92424b in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #42 0x00007fe0eb585f8c in ?? () from /usr/lib/libgdk-x11-2.0.so.0 ---Type <return> to continue, or q <return> to quit--- #43 0x00007fe0ea168892 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #44 0x00007fe0ea16c01d in ?? () from /usr/lib/libglib-2.0.so.0 #45 0x00007fe0ea16c54d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #46 0x00007fe0eb924667 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #47 0x0000000000470167 in main (argc=1, argv=0x7ffff3fc4a68) at ../src/main.c:900
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Fri, 26 Sep 2008 07:44:41 -0700, Jason Oster parasytic@gmail.com wrote:
Patch fixes the crash. With GDB, the problem was very obvious. Introduced in r2998 (whoops!)
http://geany.svn.sourceforge.net/viewvc/geany/trunk/src/editor.c?r1=2996&...
Fixed in r3009. Sorry for the inconvenience.
@Jay: thanks for the patch.
Regards, Enrico
On Fri, 26 Sep 2008 16:25:10 +0200 Frank Lanitz frank@frank.uvena.de wrote:
When editing a .php document and typing {} in a document, geany crashes...
I can confirm this issue. I reproduced this by using a php document and typing <?php foobaa{}
This is almost certainly caused by r2998: http://geany.svn.sourceforge.net/viewvc/geany?view=rev&revision=2998
For now you can: svn up -r 2997
Harold Aling: Thanks for reporting.
Regards, Nick