home ... me ... pictures ... email ... feed ... rust chronicles... twitter...

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


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

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