Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GDB SIGALRM, Alarm clock termination

I am facing a small problem that I haven't seen before. I am trying to debug a software package and running through GDB (on Ubuntu Linux). After few seconds/minutes, I get this message:

Program terminated with signal SIGALRM, Alarm clock.
The program no longer exists

Then, I quit GDB, restart and continue debugging...This is really annoying because I have to quit it like a 1000 times. I am wondering if anyone faced this issue before?!

I am assuming 'SIGALRM' is programmed in the source files somewhere, is there a way to run GDB without being affected as mentioned?

Thank you.

like image 487
Nikhil Gupta Avatar asked Oct 01 '14 16:10

Nikhil Gupta


1 Answers

Tell gdb to ignore the signal:

(gdb) handle SIGALRM ignore
like image 184
nos Avatar answered Oct 17 '22 17:10

nos