home ... me ... pictures ... email ... rss feed ... delicious ... flickr

February 07, 2007

gdb trick

gdb -batch -x commandfile command

How to debug a process that only crashes inside of cron and
has arguments. (commandfile contains: run -a -b\n where)
Cron will then helpfully mail the stack trace to you.

music: Felix da Housecat: Silver screen shower scene

candice at February 7, 2007 12:47 AM

Comments

Good tip. Which Linux/Unix distro do you use?

Posted by: apseek at February 10, 2007 10:49 AM

Whichever ones I need to. (Usually it's a matter of what the customer already has.) I'm fairly platform neutral. This blog runs on FreeBSD.

Posted by: candice at February 10, 2007 01:22 PM

Post a comment




Remember Me?


(Note that the spam filter is a bit on the mean side, if your comment doesn't work after a refresh, feel free to drop me an email.)

« barricade surfing ... Current ... cute attack »