Author Topic: Revision 1995 (and 1996) crashes if compiler plugin is not activated.  (Read 4025 times)

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
I tried to open a project with Code::Blocks revision 1995 (Linux, gcc 3.4.5, wxWGTK 2.6.2, unicode) but I had the compiler plugin disabled. Code::Blocks crashes, here is the backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 14378)]
CompilerFactory::GetCompiler (index=0) at compilerfactory.h:9
9       WX_DEFINE_ARRAY(Compiler*, CompilersArray);
(gdb) bt
#0  CompilerFactory::GetCompiler (index=0) at compilerfactory.h:9
#1  0xb7e3eaee in ProjectLoader::GetValidCompilerID (this=0x3, proposal=@0xbfffe890, scope=@0x0) at projectloader.cpp:1061
#2  0xb7e40909 in ProjectLoader::DoProjectOptions (this=0xbfffeac0, parentNode=0x888f5e0) at string.h:325
#3  0xb7e40cd9 in ProjectLoader::Open (this=0xbfffeac0, filename=@0x0) at projectloader.cpp:107
#4  0xb7d92b93 in cbProject::Open (this=0x88a16c8) at cbproject.cpp:283
#5  0xb7d93b4d in cbProject (this=0x88a16c8, filename=@0xbfffed80) at cbproject.cpp:82
#6  0xb7e4f6d5 in ProjectManager::LoadProject (this=0x8459808, filename=@0xbfffed80, activateIt=true) at projectmanager.cpp:637
#7  0x0807f1b9 in MainFrame::DoOpenProject (this=0x0, filename=@0xbfffed80, addToHistory=true) at main.cpp:1153
#8  0x0807f705 in MainFrame::OpenGeneric (this=0x82e20a8, filename=@0xbfffed80, addToHistory=true) at main.cpp:1120
#9  0x08089cdc in MainFrame::OnStartHereLink (this=0x82e20a8, event=@0x0) at main.cpp:1377
#10 0xb74bacab in wxAppConsole::HandleEvent () from /usr/lib/
#11 0xb756017b in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/
#12 0xb7560514 in wxEventHashTable::HandleEvent () from /usr/lib/
#13 0xb756116e in wxEvtHandler::ProcessEvent () from /usr/lib/
#14 0xb7560e99 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/
#15 0xb74bac4f in wxAppConsole::ProcessPendingEvents () from /usr/lib/
#16 0xb76e9140 in wxPaletteBase::GetColoursCount () from /usr/lib/
#17 0xb6dd7ed3 in g_child_watch_add () from /usr/lib/
#18 0xb6dd33cd in g_source_remove_poll () from /usr/lib/
#19 0xb6dd5c4c in g_main_context_acquire () from /usr/lib/
#20 0xb6dd5fb0 in g_main_loop_run () from /usr/lib/
#21 0xb70646cb in gtk_main () from /usr/lib/
#22 0xb7706126 in wxEventLoop::Run () from /usr/lib/
#23 0xb7792e29 in wxAppBase::MainLoop () from /usr/lib/
#24 0xb7792f66 in wxAppBase::OnRun () from /usr/lib/
#25 0x08061985 in CodeBlocksApp::OnRun (this=0x0) at app.cpp:479
#26 0xb74ff07a in wxEntry () from /usr/lib/
#27 0xb74ff3ee in wxEntry () from /usr/lib/
#28 0x0806112a in main (argc=1, argv=0x0) at app.cpp:89
If I enable the compiler plugin and try again (after restarting Code::Blocks) it works fine. Disabling this plugin again reproduces this crash.
This did not happen with the revision I compiled a few days ago - but I can't say what revision it exactly was...

Even if there is not much sense in using Code::Blocks without a compiler I think this crash should be fixed.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.