Amokrane Chentir
Amokrane Chentir

Reputation: 30385

C++ - Why am i getting SIGTRAP during the execution?

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

Answers (1)

ultraman
ultraman

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

Related Questions