Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the devel-nytprof CPAN distribution.

Report information
The Basics
Id: 38706
Status: resolved
Priority: 0/
Queue: devel-nytprof

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.03_1
Fixed in: (no value)



Subject: Please catch division by zero error
Download (untitled) / with headers
text/plain 962b
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!
And now I remember that I had trace=2 enabled too.
Fixed (or rather papered over) in r451. Thanks!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.