Question

While running, my program often stops because of a SIGTRAP. I know, that a SIGTRAP is happening when the compiler finds a breakpoint in the program. But i don't have any breakpoint in my code. (To be sure about it, before the execution, i cleared all the breakpoints..).

I'm using Code::Blocks..

Thanks !

Was it helpful?

Solution

Are you running the program from the debugger?

It is possible when your binary built with debugging in not up-to-date in regard to source code.

Rebuild everything and try again.

It happened to me many times.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top