How to debug Perl program sudden exits?
Posted
by taw
on Stack Overflow
See other posts from Stack Overflow
or by taw
Published on 2010-06-09T06:11:04Z
Indexed on
2010/06/09
6:12 UTC
Read the original article
Hit count: 226
perl
I have Perl program based on io::async, and it sometimes just exits after a few hours/days without printing any error message whatsoever. There's nothing in dmesg
or /var/log
either. STDOUT
/STDERR
are both autoflush(1)
so data shouldn't be lost in buffers. It doesn't actually exit from IO::Async::Loop->loop_forever
- print I put there just to make sure of that never gets triggered.
Now one way would be to keep peppering the program with more and more prints and hope one of them gives me some clue. Is there better way to get information what was going on in a program that made it exit/silently crash?
© Stack Overflow or respective owner