Reputation: 30385
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 !
Upvotes: 1
Views: 1575
Reputation:
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.
Upvotes: 2