User forums > Help
C::B hangs at Start, seg fault at Quit
mandrav:
Based on my reply in this other topic of yours, I suggest rebuilding C::B once you have done what I propose in that other link.
stardust:
In SVN 3811, I still observe this problem (hang on startup) over the last weeks.
Seems that the problem occurs in several places, all of them involving some kind of yield():
--- Code: ---#0 0x08066de8 in ?? ()
#1 0x4130c2df in wxYield () from /usr/lib/libwx_baseu-2.6.so.0
#2 0x40fecdf9 in wxGUIAppTraits::WaitForChild () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#3 0x4130ee70 in wxExecute () from /usr/lib/libwx_baseu-2.6.so.0
#4 0x4130f524 in wxExecute () from /usr/lib/libwx_baseu-2.6.so.0
#5 0x4130d058 in wxGetDataDir () from /usr/lib/libwx_baseu-2.6.so.0
#6 0x43cb7174 in NativeParser::GetGCCCompilerDirs (this=0x8938590, cpp_compiler=@0x88d37a0, base=@0xbfeb25c8) at nativeparser.cpp:439
#7 0x43cb7df3 in NativeParser::AddCompilerDirs (this=0x8938590, parser=0x89385b8, project=0x868fec8) at nativeparser.cpp:406
#8 0x43cb8a0a in NativeParser::AddParser (this=0x8938590, project=0x868fec8, useCache=true) at nativeparser.cpp:502
#9 0x43c9ed03 in CodeCompletion::OnStartParsingProjects (this=0x8938540, event=@0xbfeb2784) at codecompletion.cpp:977
#10 0x41277ee5 in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#11 0x41309ad3 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
#12 0x41309cdf in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#13 0x41309ebf in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#14 0x4112095b in wxTimerBase::Notify () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#15 0x41019cb5 in wxTimer::Start () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#16 0x404ed106 in g_main_context_wakeup () from /opt/gnome/lib/libglib-2.0.so.0
#17 0x404eb35c in g_main_context_dispatch () from /opt/gnome/lib/libglib-2.0.so.0
#18 0x404ee7cb in g_main_context_check () from /opt/gnome/lib/libglib-2.0.so.0
#19 0x404eece7 in g_main_context_iteration () from /opt/gnome/lib/libglib-2.0.so.0
#20 0x4015df75 in gtk_main_iteration () from /opt/gnome/lib/libgtk-x11-2.0.so.0
#21 0x40ff4175 in wxApp::Yield () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#22 0x4130c332 in wxYieldIfNeeded () from /usr/lib/libwx_baseu-2.6.so.0
#23 0x4115a6db in wxGenericTreeCtrl::ScrollTo () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#24 0x41160408 in wxGenericTreeCtrl::EnsureVisible () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#25 0x41160651 in wxGenericTreeCtrl::DoSelectItem () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#26 0x41160a3b in wxGenericTreeCtrl::SelectItem () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#27 0x4090009c in EditorManager::RebuildOpenedFilesTree (this=0x8a4f118, tree=0x835fbd8) at editormanager.cpp:2699
#28 0x409961e9 in ProjectManager::LoadProject (this=0x8b33448, filename=@0xbfeb2ce8, activateIt=true) at projectmanager.cpp:820
#29 0x409d263f in WorkspaceLoader::Open (this=0x868ee00, filename=@0xbfeb2d54, Title=@0xbfeb2d50) at workspaceloader.cpp:116
#30 0x408a67fd in cbWorkspace::Load (this=0x87d8d18) at cbworkspace.cpp:104
#31 0x408a705b in cbWorkspace (this=0x87d8d18, filename=@0x40c473f4) at cbworkspace.cpp:66
#32 0x40997937 in ProjectManager::LoadWorkspace (this=0x8b33448, filename=@0x40c473f4) at projectmanager.cpp:1102
#33 0x0806aa4e in CodeBlocksApp::InitFrame (this=0x812c128) at app.cpp:357
#34 0x0806b4e4 in CodeBlocksApp::OnInit (this=0x812c128) at app.cpp:496
#35 0x0806cd4f in wxAppConsole::CallOnInit (this=0x80ecba8) at app.h:87
#36 0x412aec60 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#37 0x412aed36 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#38 0x08067834 in main (argc=1, argv=0xbfeb30b4) at app.cpp:199
(gdb)
--- End code ---
hollingsworthd:
I would like to add that on some earlier revisions I too noticed this problem. But with Rev 3816, I experience _no_ hangs at the start. Thanks mandrav!
I'm using:
Code::Blocks Rev 3816
Kubuntu 6.06
KDE 3.5.2
Linux 2.6.15-28-686
Intel Core 2 Duo
Merlinlblack:
I'm having a similar problem.
SVN 3862 17th April 2007
Compiling only works without --enable-contrib, otherwise it errors on wxNotepad or something.
I get the hanging behavior described by the original poster. I.e. it hangs after compiler detection, before the tips dialog closes.
Using SuSE 10.2
--- Quote ---merlin@SupraLap:~/CodeBlocks> wx-config --list
Default config is gtk2-unicode-release-2.8
Default config will be used for output
merlin@SupraLap:~/CodeBlocks> gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)
--- End quote ---
Navigation
[0] Message Index
[*] Previous page
Go to full version