Author Topic: Weird freeze  (Read 5427 times)

connyosis

  • Guest
Weird freeze
« on: December 15, 2005, 08:54:15 am »
This weird error has started to occur for me. When trying to create a new file, code:.blocks freezes on me. It works well apart from that, but it's a little annoying not being able to create new files from within code::blocks.

I started code::blocks in gdb, and when it froze I killed it with ctrl-c and got this backtrace:

(gdb) run
Starting program: /usr/bin/codeblocks
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1229642048 (LWP 29350)]

Program received signal SIGINT, Interrupt.
[Switching to Thread -1229642048 (LWP 29350)]
0xb75942fa in wxStringBase::ConcatSelf () from /usr/lib/libwx_baseu-2.6.so.0
(gdb) bt
#0  0xb75942fa in wxStringBase::ConcatSelf ()
   from /usr/lib/libwx_baseu-2.6.so.0
#1  0xb7d835e2 in EditorBase::CreateUniqueFilename ()
   from /usr/lib/libcodeblocks.so.0
#2  0xb7d83217 in EditorBase::InitFilename () from /usr/lib/libcodeblocks.so.0
#3  0xb7d4c6fc in cbEditor::cbEditor () from /usr/lib/libcodeblocks.so.0
#4  0xb7da2487 in EditorManager::New () from /usr/lib/libcodeblocks.so.0
#5  0x080772ec in MainFrame::OnFileNewEmpty ()
#6  0xb753fd53 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb75d09c4 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb75d0c93 in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#9  0xb75d17ee in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#10 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#11 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb75d178e in wxEvtHandler::ProcessEvent ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libwx_baseu-2.6.so.0
#14 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#16 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#17 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#18 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#19 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#20 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#21 0xb75d178e in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#22 0xb786843d in wxWindowBase::TryParent ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#23 0xb75d17a3 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#24 0xb786843d in wxWindowBase::TryParent ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
---Type <return> to continue, or q <return> to quit---
#25 0xb75d17a3 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#26 0xb786843d in wxWindowBase::TryParent ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#27 0xb75d17a3 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#28 0xb785a802 in wxToolBarBase::OnLeftClick ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#29 0xb77e6afb in wxToolBar::wxCreateObject ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#30 0xb6f82f76 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#31 0xb6f6b8dd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#32 0xb6f816b0 in g_signal_has_handler_pending ()
   from /usr/lib/libgobject-2.0.so.0
#33 0xb6f825b6 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#34 0xb6f82976 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#35 0xb70e9133 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#36 0xb70eb2ae in gtk_button_get_alignment () from /usr/lib/libgtk-x11-2.0.so.0
#37 0xb6f82f76 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#38 0xb6f6bc09 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#39 0xb6f6b8dd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#40 0xb6f80fe6 in g_signal_has_handler_pending ()
   from /usr/lib/libgobject-2.0.so.0
#41 0xb6f825b6 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#42 0xb6f82976 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#43 0xb70e9093 in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#44 0xb70ea5d2 in gtk_button_set_relief () from /usr/lib/libgtk-x11-2.0.so.0
#45 0xb71d3781 in gtk_marshal_VOID__UINT_STRING ()
   from /usr/lib/libgtk-x11-2.0.so.0
#46 0xb6f6bc09 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#47 0xb6f6b8dd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#48 0xb6f81250 in g_signal_has_handler_pending ()
   from /usr/lib/libgobject-2.0.so.0
#49 0xb6f823db in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#50 0xb6f82976 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#51 0xb72e46c9 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#52 0xb71d0320 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#53 0xb71d18bd in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#54 0xb70485a2 in gdk_event_get_graphics_expose ()
   from /usr/lib/libgdk-x11-2.0.so.0
#55 0xb6efd66c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#56 0xb6efefc7 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#57 0xb6eff2ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#58 0xb71d0ca3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#59 0xb7769468 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#60 0xb77f0c03 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#61 0xb77f0d72 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#62 0x08061af5 in wxCreateApp ()
#63 0xb7576882 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#64 0xb7576966 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#65 0x08060d5a in wxCreateApp ()
#66 0xb73dbf31 in __libc_start_main () from /lib/tls/libc.so.6
#67 0x08060b71 in ?? ()
(gdb)

Hope this helps in some way. Let me know if there is anything more I can do.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Weird freeze
« Reply #1 on: December 15, 2005, 11:29:28 am »
This weird error has started to occur for me. When trying to create a new file, code:.blocks freezes on me. It works well apart from that, but it's a little annoying not being able to create new files from within code::blocks.

Which version of C::B do you use? If RC2, try a SVN C::B version instead.

Michael

connyosis

  • Guest
Re: Weird freeze
« Reply #2 on: December 15, 2005, 02:46:20 pm »
It is the svn version I'm trying. I noticed that the previous backtrace was created from a stripped code::blocks binary. Here is one from a non-stripped one:

(gdb) bt
#0  0xb76100cc in wxStringBase::find () from /usr/lib/libwx_baseu-2.6.so.0
#1  0xb761022a in wxStringBase::find () from /usr/lib/libwx_baseu-2.6.so.0
#2  0xb7611e9e in wxString::Replace () from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb7e2e26d in UnixFilename (filename=@0x12) at globals.cpp:93
#4  0xb7e14ecb in EditorManager::IsOpen (this=0x84b5f80, filename=@0x12)
    at editormanager.cpp:498
#5  0xb7dfe715 in EditorBase::CreateUniqueFilename (this=0x88bf810)
    at editormanager.h:60
#6  0xb7dfe2a7 in EditorBase::InitFilename (this=0x88bf810, filename=@0x0)
    at string.h:916
#7  0xb7dc778c in cbEditor (this=0x88bf810, parent=0x12, filename=@0xbfaaab70,
    theme=0x12) at cbeditor.cpp:324
#8  0xb7e1d517 in EditorManager::New (this=0x84b5f80) at string.h:325
#9  0x080772ec in MainFrame::OnFileNewEmpty (this=0x82a7150, event=@0xbfaaaf50)
    at main.cpp:1368
#10 0xb75bad53 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#11 0xb764b9c4 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb764bc93 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb764c7ee in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#14 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#16 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#17 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#18 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#19 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#20 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#21 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#22 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#23 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#24 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#25 0xb764c78e in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
---Type <return> to continue, or q <return> to quit---
#26 0xb78e343d in wxWindowBase::TryParent () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#27 0xb764c7a3 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#28 0xb78e343d in wxWindowBase::TryParent () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#29 0xb764c7a3 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#30 0xb78e343d in wxWindowBase::TryParent () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#31 0xb764c7a3 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#32 0xb78d5802 in wxToolBarBase::OnLeftClick ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#33 0xb7861afb in wxToolBar::wxCreateObject ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#34 0xb6ffdf76 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#35 0xb6fe68dd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#36 0xb6ffc6b0 in g_signal_has_handler_pending () from /usr/lib/libgobject-2.0.so.0
#37 0xb6ffd5b6 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#38 0xb6ffd976 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#39 0xb7164133 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#40 0xb71662ae in gtk_button_get_alignment () from /usr/lib/libgtk-x11-2.0.so.0
#41 0xb6ffdf76 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#42 0xb6fe6c09 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#43 0xb6fe68dd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#44 0xb6ffbfe6 in g_signal_has_handler_pending () from /usr/lib/libgobject-2.0.so.0
#45 0xb6ffd5b6 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#46 0xb6ffd976 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#47 0xb7164093 in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#48 0xb71655d2 in gtk_button_set_relief () from /usr/lib/libgtk-x11-2.0.so.0
#49 0xb724e781 in gtk_marshal_VOID__UINT_STRING () from /usr/lib/libgtk-x11-2.0.so.0
#50 0xb6fe6c09 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#51 0xb6fe68dd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#52 0xb6ffc250 in g_signal_has_handler_pending () from /usr/lib/libgobject-2.0.so.0
#53 0xb6ffd3db in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#54 0xb6ffd976 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#55 0xb735f6c9 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#56 0xb724b320 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#57 0xb724c8bd in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#58 0xb70c35a2 in gdk_event_get_graphics_expose () from /usr/lib/libgdk-x11-2.0.so.0
#59 0xb6f7866c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#60 0xb6f79fc7 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#61 0xb6f7a2ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#62 0xb724bca3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#63 0xb77e4468 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#64 0xb786bc03 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#65 0xb786bd72 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#66 0x08061af5 in CodeBlocksApp::OnRun (this=0x12) at app.cpp:431
#67 0xb75f1882 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#68 0xb75f1966 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#69 0x08060d5a in main (argc=1, argv=0x12) at app.cpp:84
(gdb)

connyosis

  • Guest
Re: Weird freeze
« Reply #3 on: December 17, 2005, 05:25:03 pm »
Am I really the only one with this problem? Clicking the 'New file' icon makes code::blocks freeze, and a killall codeblocks is needed to shut it down.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2808
Re: Weird freeze
« Reply #4 on: December 17, 2005, 05:36:16 pm »
I used to get this problem in a different way.
C::B didnt freeze, it crashed.

I was told that it was a known issue. Guess
that means it's on the list.

Amazingly enough, the problem went away. Don't
know what I did though

pecan

EDIT: I'm a WinXP user though.
« Last Edit: December 17, 2005, 05:38:08 pm by Pecan »

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Weird freeze
« Reply #5 on: December 18, 2005, 06:35:38 am »
Yes, it was fixed on SVN.