Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nytprofmerge: uninit $srclines_array when merged [ #75916] #60

timbunce opened this Issue Feb 22, 2015 · 0 comments


None yet
1 participant
Copy link

commented Feb 22, 2015

Migrated from (status was 'stalled')


From on 2012-03-20 15:06:03:

After merging a small group of nytprof.out files using nytprofmerge,
reading the merged file using Devel::NYTProf::Data generates many warnings
that I didn't get from any of the individual files:

    $ perl -MDevel::NYTProf::Data -lwe '$|=1; Devel::NYTProf::Data->new({filename=>"nytprof-t6.out"})' 2>&1 | uniq -c
          1 Reading nytprof-t6.out
          1 Processing nytprof-t6.out data
       6300 Use of uninitialized value $srclines_array in join or string at /opt/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux-ld/Devel/NYTProf/ line 491.

Looking at the code, I believe the warning is incorrectly identifying
the uninitialised value; it must be elements of @$srclines_array, not
$srclines_array itself, that are undef.


From on 2012-12-26 16:50:03:

I'd appreciate a test case for this.

@timbunce timbunce added the stalled label Feb 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.