Bug #18397 2011-10-15 05:22

kaptainkruton

Debugger hangs on abort

I am currently using Code::Blocks 10.05 with the MinGW compiler on Windows 7. I did find a reported bug that was similar to this, but it was over 3 and a half years old and it was on a nightly build of an older version, not an 'official' release.

The abort button on the debugger has a problem. When my program program is running, if I click the abort button, the program window disappears, but if I check the Windows task manager, I can see that my program, conhost.exe, and cb_console_runner.exe are all still running. Clicking the abort button multiple times does not do anything to stop this. Until I manually terminate my program with the task manager, the IDE stays in the 'debug' state with the build and run buttons greyed-out.

This problem does not occur when I close the program window (using the X in the the top corner of the window), nor does it occur when I terminate the program with a ctrl-c. It only occurs when using the Abort button in the Code::Blocks IDE.

Here is a very basic sample program you can use to test:

#include <iostream>

using namespace std;

int main() {

int i = 0;

while(1)

i++;

return 0;

}

Category
Debugger
Group
Platform:Windows
Status
Closed
Close date
2011-11-19 20:29
Assigned to
tpetrov
tpetrov 2011-11-19 20:29

This problem should have been fixed in the debuggers branch, please try a nightly build for the branch and reopen the issue if the bug is still present.