User forums > Using Code::Blocks
Memleak fixed in code completion plugin
CleverFool:
:oops: Could it be that I tried to exit program after it hanged... Now in the same place I'm receiving dumb errors without any usable information. I suppose I'll tjust ry to debug it step by step...
--- Code: ---Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1224710464 (LWP 15137)]
0xb770f3bf in free () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb770f3bf in free () from /lib/tls/libc.so.6
#1 0xb7710c4c in malloc () from /lib/tls/libc.so.6
#2 0xb72302ea in g_malloc () from /usr/lib/libglib-2.0.so.0
#3 0xb72dbc50 in pango_attr_list_new () from /usr/lib/libpango-1.0.so.0
#4 0xb72e5ccc in pango_layout_get_pixel_size () from /usr/lib/libpango-1.0.so.0
#5 0xb72e5e58 in pango_layout_get_pixel_size () from /usr/lib/libpango-1.0.so.0
#6 0xb72e7d6e in pango_layout_get_iter () from /usr/lib/libpango-1.0.so.0
#7 0xb72eab4f in pango_renderer_draw_layout () from /usr/lib/libpango-1.0.so.0
#8 0xb738aa65 in gdk_draw_layout_with_colors () from /usr/lib/libgdk-x11-2.0.so.0
#9 0xb738abc5 in gdk_draw_layout () from /usr/lib/libgdk-x11-2.0.so.0
#10 0xb7d4e694 in wxWindowDC::DoDrawText () from /usr/lib/libwx_gtk2-2.4.so
#11 0xb792f0d7 in SurfaceImpl::DrawTextTransparent () from /usr/lib/libwx_gtk2_stc-2.4.so
#12 0xb794e801 in Editor::DrawLine () from /usr/lib/libwx_gtk2_stc-2.4.so
#13 0xb79590dd in Editor::Paint () from /usr/lib/libwx_gtk2_stc-2.4.so
#14 0xb7934147 in ScintillaWX::DoPaint () from /usr/lib/libwx_gtk2_stc-2.4.so
#15 0xb793bec2 in wxStyledTextCtrl::OnPaint () from /usr/lib/libwx_gtk2_stc-2.4.so
#16 0xb7dbbf05 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk2-2.4.so
#17 0xb7dbbcfc in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk2-2.4.so
#18 0xb7d88cba in wxWindow::GtkSendPaintEvents () from /usr/lib/libwx_gtk2-2.4.so
#19 0xb7d88e53 in gtk_window_expose_callback () from /usr/lib/libwx_gtk2-2.4.so
#20 0xb74fdc7a in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0
#21 0xb729ccce in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#22 0xb72ac15d in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#23 0xb72ad3a5 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#24 0xb72ad99e in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#25 0xb75db4d8 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#26 0xb74fc821 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#27 0xb7399b1c in gdk_window_clear_area_e () from /usr/lib/libgdk-x11-2.0.so.0
#28 0xb7399c1c in gdk_window_process_all_updates () from /usr/lib/libgdk-x11-2.0.so.0
#29 0xb7399cc4 in gdk_window_process_all_updates () from /usr/lib/libgdk-x11-2.0.so.0
#30 0xb722bf61 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#31 0xb7229a21 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb722cc77 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#33 0xb722d1c8 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#34 0xb74fb849 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb7d35896 in wxApp::MainLoop () from /usr/lib/libwx_gtk2-2.4.so
#36 0xb7d89ecf in wxAppBase::OnRun () from /usr/lib/libwx_gtk2-2.4.so
#37 0xb7d36240 in wxEntry () from /usr/lib/libwx_gtk2-2.4.so
#38 0x08057c32 in ?? ()
#39 0xb76bcec0 in __libc_start_main () from /lib/tls/libc.so.6
#40 0x08057af1 in ?? ()
--- End code ---
rickg22:
It hanged? :( noooooooooo
Those errors are nearly impossible to trace! :'(
OK. Let's do this. Get rid of the codecompletion plugin :P and, try to report all crashes, hangs etc.
When we fix them, and no "non-codecompletion" bug is found, we can be sure that all the other bugs are codecomplete's fault! :D
CleverFool:
This hanging was my fault:) I havent found any non-codecomplete bugs yet, but I'm very interested in codecomplete one:) Now trying to localize it - when I comment this line "m_Parser.ParseBuffer(g_SampleClasses, true);" in ccoptionsdlg.cpp - plugin options dialog works. Ok... I'm finished with flooding here for now:) Sorry for disturbance:)
Navigation
[0] Message Index
[*] Previous page
Go to full version