Bug #18676 2012-07-24 05:18
mortenmacfly
Race condition at shutdown with debugger
http://forums.codeblocks.org/index.php/topic,8809.msg112884.html#msg112884
- Category
- Debugger
- Group
- Platform:All
- Status
- Open
- Close date
- Assigned to
- tpetrov
History
For the sake of completeness, here the content of the page:
Task:
- Fix a race condition at shutdown with debugger.
To reproduce:
create a console project[/tt])
compile in debug mode
set a BP and run the debugger
when the debugger has stopped at the BP, close C::B
--> Crash. The reason is that several steps DebuggerGDB::OnGDBTerminated(wxCommandEvent& event) unsafe/unwise/unimportant to do at shutdown, like "SwitchToPreviousLayout()". The latter also causes the crash.
BTW: in debuggergdb.{h/cpp} there is a currently dead variable named "m_NoDebugInfo" that used to trigger a message to the user if (s)he tried to debug an executable w/o debugging symbols. The code to detect that and set the flag accordingly seems missing.
Morten: Is this bug still present? I can't reproduce it on linux. And as far as I can see OnGDBTerminated is no called at all.