Program received signal SIGTRAP, Trace/breakpoint trap

The other possibility i can think of is:

1.Your process is running more than one thread.

For eg – 2 say x & y.

2.Thread y hits the break point but you have attached gdb to thread x.

This case is a Trace/breakpoint trap.

Leave a Comment