1

multi-threaded process crash with gdb hitting breakpoint

view story
linux-howto

http://stackoverflow.com – I am trying to debug a multi threaded program using gdb. I have attached the process to the gdb and set a breakpoint in interested thread with an intention of step over when the breakpoint is hit. But the program crashes at the moment when the breakpoint is hit. It looks like the trap handler is not getting set for the other thread other than the current active one. I have used gdb before on multi threaded processes and never faced this issue earlier. (HowTos)