Bug #12054 2007-09-22 20:50

darthdespotism

Crash accessing Compiler related Data (Ubuntu)

After upgrading to rev4484 (using dpkg-buildpackage and gdebi) Codeblocks asks at startup to select an Compiler (Didn't do that on this box after first run) (all compilers are reported "user defined" if it matters)

and Crashes on any Compilerrelated(?) Action as loading a project or accessing advanced options in the Compilersettings.

I could reproduce it afer moving ~/codeblocks somewhere else.

Category
Application::Crash
Group
 
Status
Closed
Close date
2007-11-30 08:49
Assigned to
 
darthdespotism 2007-09-22 20:50
<stack>
<frame level="0" function="wxFatalSignalHandler" offset="00000026"/>
<frame level="1"/>
<frame level="2" function="cbProject::AddFile(int, wxString const&, bool, bool, unsigned short)" offset="00000416"/>
<frame level="3" function="ProjectLoader::DoUnits(TiXmlElement*)" offset="000000ee"/>
<frame level="4" function="ProjectLoader::Open(wxString const&, TiXmlElement**)" offset="00000367"/>
<frame level="5" function="cbProject::Open()" offset="0000032d"/>
<frame level="6" function="cbProject::cbProject(wxString const&)" offset="00000291"/>
<frame level="7" function="ProjectManager::LoadProject(wxString const&, bool)" offset="000000b4"/>
<frame level="8" function="MainFrame::OnFileSaveWorkspace(wxCommandEvent&)" offset="00000000"/>
<frame level="9" function="MainFrame::OnFileSaveWorkspace(wxCommandEvent&)" offset="00000000"/>
<frame level="10" function="MainFrame::OnStartHereLink(wxCommandEvent&)" offset="00000000"/>
<frame level="11" function="wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const" offset="00000035"/>
<frame level="12" function="wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)" offset="0000008f"/>
<frame level="13" function="wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)" offset="0000007d"/>
<frame level="14" function="wxEvtHandler::ProcessEvent(wxEvent&)" offset="000000c6"/>
<frame level="15" function="wxEvtHandler::ProcessPendingEvents()" offset="00000070"/>
<frame level="16" function="wxAppConsole::ProcessPendingEvents()" offset="0000005f"/>
<frame level="17" function="wxAppBase::OnIdle(wxIdleEvent&)" offset="00000022"/>
<frame level="18" function="wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const" offset="00000035"/>
<frame level="19" function="wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)" offset="0000008f"/>
<frame level="20" function="wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)" offset="0000007d"/>
<frame level="21" function="wxEvtHandler::ProcessEvent(wxEvent&)" offset="000000c6"/>
<frame level="22" function="wxAppBase::ProcessIdle()" offset="0000009e"/>
<frame level="23"/>
<frame level="24"/>
<frame level="25" function="g_main_context_dispatch" offset="00000182"/>
<frame level="26"/>
<frame level="27" function="g_main_loop_run" offset="000001a9"/>
<frame level="28" function="gtk_main" offset="000000b4"/>
<frame level="29" function="wxEventLoop::Run()" offset="0000005c"/>
<frame level="30" function="wxAppBase::MainLoop()" offset="0000004e"/>
<frame level="31" function="wxAppBase::OnRun()" offset="00000021"/>
<frame level="32" function="CodeBlocksApp::OnBatchBuildDone(CodeBlocksEvent&)" offset="00000000"/>
</stack>
darthdespotism 2007-09-22 20:57

sory, the revision is 4486, not 4484

mandrav 2007-09-24 09:34

Try a clean rebuild.

byo 2007-09-29 21:50

This may be related to auto-generated files.

In cbProject::AddFile (cbproject.cpp, line 590);

compiler->GetCompilerTool(...)

When compilerId is invalid, it will be called for compiler==NULL (that was strange in my case because my compiler id was "gcc" which should be available)

I also got crashes on other compiler-related things (like changing used compiler for project's file)

mortenmacfly 2007-11-26 09:28

Does this bug still persist?

darthdespotism 2007-11-26 18:02

No it is no longer an issue for me

biplab 2007-11-30 08:49

Closed on user feedback.