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
dprofpp array subscript error #8112
Comments
From scott@perlcode.orgCreated by scott@perlcode.orgThe dprofpp that comes with perl 5.8.6 and 5.8.4 (haven't tried I create a profile like this: dprofpp -Q -p program.pl and I get this tmon.out (gz): <http://perlcode.org/dprofpp_bug/tmon.out.gz> I try to profile it like this: dprofpp -I -g main::do_loop and receive this error: Modification of non-creatable array value attempted, subscript -1 at This happens on FreeBSD and Mac OSX under the above Perl versions. This patch helps (I'm not sure if something is not being counted, <patch> Inline Patch--- /usr/bin/dprofpp 2005-03-20 17:42:00.000000000 -0700
+++ dprofpp 2005-09-13 12:52:32.000000000 -0600
@@ -659,7 +659,7 @@
my $ot = $t;
if ( $dir eq '/' ) {
- $syst = $stack[-1][0];
+ $syst = $stack[-1][0] if scalar @stack;
$usert = '&';
$dir = '-';
#warn("Inserted exit for $stack[-1][0].\n")
</patch> Perl Info
|
From @rgsscott@perlcode.org (via RT) wrote:
Thanks, applied as change #25413 to bleadperl. |
@rgs - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#37163 (status was 'resolved')
Searchable as RT37163$
The text was updated successfully, but these errors were encountered: