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 625465 - Anjuta crashed when input code with function hint enabled
Anjuta crashed when input code with function hint enabled
Status: RESOLVED INCOMPLETE
Product: anjuta
Classification: Applications
Component: plugins: editor: gtksourceview
2.30.x
Other Linux
: Urgent critical
: Anjuta 2.32
Assigned To: Johannes Schmid
Anjuta maintainers
: 610394 626812 634791 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-07-28 06:57 UTC by Tao Wang
Modified: 2011-01-20 03:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tao Wang 2010-07-28 06:57:27 UTC
When I coding in Anjuta, it crashed at certain place.

I'm working on an gtkmm program, and every time I try to input following code,

add_accel_group (ui_manager->get_accel_group());

The Anjuta will crashed after I input "->".

Following is the gdb information with the call stack:

GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/anjuta...Reading symbols from /usr/lib/debug/usr/bin/anjuta...done.
done.
(gdb) r
Starting program: /usr/bin/anjuta 
[Thread debugging using libthread_db enabled]
[New Thread 0xb6a60b70 (LWP 5169)]
[New Thread 0xb625fb70 (LWP 5170)]
[New Thread 0xb5a5eb70 (LWP 5172)]
[Thread 0xb5a5eb70 (LWP 5172) exited]
[Thread 0xb625fb70 (LWP 5170) exited]
[New Thread 0xb625fb70 (LWP 5175)]
[New Thread 0xb5a5eb70 (LWP 5193)]
[New Thread 0xb41e4b70 (LWP 5194)]
[New Thread 0xb3579b70 (LWP 5198)]
[New Thread 0xb2d78b70 (LWP 5199)]
[Thread 0xb2d78b70 (LWP 5199) exited]
[Thread 0xb6a60b70 (LWP 5169) exited]
GladeUI-Message: No displayable values for property GtkScaleButton::size
GladeUI-Message: No displayable values for property GtkImage::icon-size

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-sizegroup' was found for object class 'GtkSizeGroup'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-accelgroup' was found for object class 'GtkAccelGroup'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-adjustment' was found for object class 'GtkAdjustment'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-uimanager' was found for object class 'GtkUIManager'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-treemodelfilter' was found for object class 'GtkTreeModelFilter'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-treemodelsort' was found for object class 'GtkTreeModelSort'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-treeselection' was found for object class 'GtkTreeSelection'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-statusicon' was found for object class 'GtkStatusIcon'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-textbuffer' was found for object class 'GtkTextBuffer'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-texttag' was found for object class 'GtkTextTag'.
GladeUI-Message: No displayable values for property GtkTextTag::direction

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-texttagtable' was found for object class 'GtkTextTagTable'.

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtk-filefilter' was found for object class 'GtkFileFilter'.

(anjuta:5166): GladeUI-CRITICAL **: Unable to load module 'gtksourceview-2.0' from any search paths

(anjuta:5166): GladeUI-WARNING **: Failed to load external library 'gtksourceview-2.0'

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-gtksourceview-gtksourceview' was found for object class 'GtkSourceView'.

(anjuta:5166): GladeUI-CRITICAL **: Unable to load module 'vte' from any search paths

(anjuta:5166): GladeUI-WARNING **: Failed to load external library 'vte'
GladeUI-Message: No displayable values for property VteTerminal::backspace-binding
GladeUI-Message: No displayable values for property VteTerminal::cursor-blink-mode
GladeUI-Message: No displayable values for property VteTerminal::cursor-shape
GladeUI-Message: No displayable values for property VteTerminal::delete-binding

(anjuta:5166): GladeUI-WARNING **: No icon named 'widget-anjuta-vcsstatus' was found for object class 'AnjutaVcsStatusTreeView'.

(anjuta:5166): GladeUI-WARNING **: Cannot find symble“gm_audio_profile_edit_get_type”

(anjuta:5166): GladeUI-WARNING **: Cannot get type from“\xb8	\u0015\u0008udio_profile_edit_get_type”

(anjuta:5166): GladeUI-WARNING **: Failed to load the GType for 'GMAudioProfileEdit'

(anjuta:5166): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:2273: signal `delete' is invalid for instance `0xa03da10'
[New Thread 0xb6a60b70 (LWP 5235)]
[Thread 0xb6a60b70 (LWP 5235) exited]
[New Thread 0xb6a60b70 (LWP 5236)]
[New Thread 0xb2d78b70 (LWP 5237)]
[New Thread 0xb18f2b70 (LWP 5238)]
[Thread 0xb3579b70 (LWP 5198) exited]
[Thread 0xb2d78b70 (LWP 5237) exited]
[Thread 0xb6a60b70 (LWP 5236) exited]
[New Thread 0xb6a60b70 (LWP 5239)]
[Thread 0xb6a60b70 (LWP 5239) exited]
[New Thread 0xb6a60b70 (LWP 5240)]
[Thread 0xb6a60b70 (LWP 5240) exited]
[Thread 0xb18f2b70 (LWP 5238) exited]
[New Thread 0xb18f2b70 (LWP 5241)]
[New Thread 0xb6a60b70 (LWP 5242)]
[Thread 0xb6a60b70 (LWP 5242) exited]
[New Thread 0xb6a60b70 (LWP 5244)]
[New Thread 0xb2d78b70 (LWP 5245)]
[New Thread 0xb3579b70 (LWP 5246)]
[Thread 0xb6a60b70 (LWP 5244) exited]
[Thread 0xb2d78b70 (LWP 5245) exited]
[Thread 0xb3579b70 (LWP 5246) exited]
[New Thread 0xb3579b70 (LWP 5247)]
[New Thread 0xb2d78b70 (LWP 5248)]
[New Thread 0xb6a60b70 (LWP 5249)]
[Thread 0xb2d78b70 (LWP 5248) exited]
[Thread 0xb3579b70 (LWP 5247) exited]
[Thread 0xb6a60b70 (LWP 5249) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00a471fd in g_list_insert_before () from /lib/libglib-2.0.so.0
(gdb) bt
  • #0 g_list_insert_before
    from /lib/libglib-2.0.so.0
  • #1 ??
    from /usr/lib/libgtksourceview-2.0.so.0
  • #2 gtk_source_completion_model_append
    from /usr/lib/libgtksourceview-2.0.so.0
  • #3 ??
    from /usr/lib/libgtksourceview-2.0.so.0
  • #4 gtk_source_completion_context_add_proposals
    from /usr/lib/libgtksourceview-2.0.so.0
  • #5 iassist_proposals
    at sourceview.c line 2187
  • #6 ianjuta_editor_assist_proposals
    at ianjuta-editor-assist.c line 112
  • #7 cpp_java_assist_populate_real
    at cpp-java-assist.c line 533
  • #8 cpp_java_assist_populate
    at cpp-java-assist.c line 1247
  • #9 ianjuta_provider_populate
    at ianjuta-provider.c line 129
  • #10 sourceview_provider_populate
    at sourceview-provider.c line 54
  • #11 gtk_source_completion_provider_populate
    from /usr/lib/libgtksourceview-2.0.so.0
  • #12 ??
    from /usr/lib/libgtksourceview-2.0.so.0
  • #13 ??
    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_text_buffer_insert_interactive
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 gtk_text_buffer_insert_interactive_at_cursor
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #22 g_cclosure_marshal_VOID__STRING
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #24 ??
    from /usr/lib/libgobject-2.0.so.0
  • #25 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #26 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #27 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 g_cclosure_marshal_VOID__STRING
    from /usr/lib/libgobject-2.0.so.0
  • #29 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #30 ??
    from /usr/lib/libgobject-2.0.so.0
  • #31 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #32 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #33 ??
    from /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
  • #34 g_cclosure_marshal_VOID__STRING
    from /usr/lib/libgobject-2.0.so.0
  • #35 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #36 ??
    from /usr/lib/libgobject-2.0.so.0
  • #37 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #38 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #39 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #40 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #41 gtk_im_context_filter_keypress
    from /usr/lib/libgtk-x11-2.0.so.0
  • #42 ??
    from /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
  • #43 gtk_im_context_filter_keypress
    from /usr/lib/libgtk-x11-2.0.so.0
  • #44 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #45 gtk_im_context_filter_keypress
    from /usr/lib/libgtk-x11-2.0.so.0
  • #46 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #47 ??
    from /usr/lib/libgtksourceview-2.0.so.0
  • #48 anjuta_view_key_press_event
    at anjuta-view.c line 702
  • #49 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #50 ??
    from /usr/lib/libgobject-2.0.so.0
  • #51 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #52 ??
    from /usr/lib/libgobject-2.0.so.0
  • #53 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #54 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #55 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #56 gtk_window_propagate_key_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #57 anjuta_app_key_press_event
    at anjuta-app.c line 593
  • #58 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #59 ??
    from /usr/lib/libgobject-2.0.so.0
  • #60 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #61 ??
    from /usr/lib/libgobject-2.0.so.0
  • #62 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #63 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #64 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #65 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #66 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #67 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #68 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #69 ??
    from /lib/libglib-2.0.so.0
  • #70 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #71 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #72 main
    at main.c line 266

Comment 1 Johannes Schmid 2010-07-28 07:52:35 UTC
Is that reproducable for you? And if yes, could you provide steps?

We have another report about something like this happening but it's difficult to fix as nobody can reliable reproduce it.

Thanks!
Comment 2 Tao Wang 2010-07-29 17:22:19 UTC
It was able to reproducable on my ubuntu. The step is very simple, just open anjuta, which will open my last project automatically, and open the .cpp file, and enter the above line, then anjuta crashed. It happened every time.

Anjuta did not crash on other place of "->" with hint. I think it might be a bug in the searching function for hint. So, this perticular place may trigger the bug.

I switched to Eclipse to pass those lines caused crash, and continue my development. After a while, then I'm back to anjuta, everything is fine again. Even I remove the line caused the crash and re-enter it again, it will not crash anymore.

Yesterday, I reached another point caused the crash with exactly same symptom, then I use Eclipse or gedit to continue the development for a while, then I back to anjuta, the bug disappeared again.

Currently, I cannot reproduce the bug since they are disappeared. But, I provided the stack trace and core dump last time, are they not enough? I'm not sure the bug can be easily reproduced, so could you tell me, what else should I provide to help you locate the bug?
Comment 3 Johannes Schmid 2010-07-31 07:27:00 UTC
Thanks for your additional information. Your report is perfectly OK, I was just interested if there would be more info to fix that. As we still have this problem in git master sometimes we will definitly work on that.
Comment 4 Johannes Schmid 2010-08-08 10:23:01 UTC
I made some additional changes in git master that should catch that bug. I would very much appreciate if you could try if that problems still remains for you there.

Thanks!
Comment 5 Johannes Schmid 2010-08-13 11:57:35 UTC
*** Bug 626812 has been marked as a duplicate of this bug. ***
Comment 6 Johannes Schmid 2010-08-13 14:11:41 UTC
*** Bug 610394 has been marked as a duplicate of this bug. ***
Comment 7 Gary Lucas 2010-11-14 02:35:00 UTC
*** Bug 634791 has been marked as a duplicate of this bug. ***
Comment 8 Fabio Durán Verdugo 2011-01-20 03:35:36 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!