Subject: | Please catch division by zero error |
This is a report about a bug that I cannot reproduce at the moment. Just
wanted to let you know because you probably know immediately how it may
happen.
In Devel/NYTProf/Reader.pm line 354 I find in the latest release 2.03_1:
$self->{filestats}->{$filestr}->{'time/call'} =
$runningTotalTime / $runningTotalCalls;
You see that there is a division and nobody protects the code from a
division by zero error. I know that I got this exception due to an
uninitialized $runningTotalCalls but I do not know what I did exactly to
trigger it. It was a mod_perl process and I had start=no and I had other
complaints about not being able to load "(eval 631)". Lots of things
that may have caused the primary error of not initializing
$runningTotalCalls.
I hope somebody can post a followup when this happens again. Or maybe
you know how it may happen and can protect the code. Whatever happens
first, I apologize for sending such a vague report.
Thanks!