-
Notifications
You must be signed in to change notification settings - Fork 567
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
segfault involving Data::Dumper, anonymous sub, and scalar ref #15251
Comments
From frederik@ofb.netCreated by frederik@ofb.netI found Perl segfaulting on a personal project and was able to get a Although the test case uses Data::Dumper, I have The Perl version is v5.22.1. I get a segfault on a x86_64 system with On a Debian system with Perl v5.14.2, there is no segfault. (This Here is the test case: #!/usr/bin/perl use warnings; ## This block mostly copied from my personal helper/utility package: use Data::Dumper; # "Print value": display an expression, and then its value. ################################################################ my $s = "hi"; Here's the output: $ ./perl-dumper-ref-bug Thank you! Perl Info
|
From frederik@ofb.netA friend came up with a smaller test case: perl -e '{package DB;sub x {eval "\\\$s"} } my $s="hi";my $foo=sub {print $s;DB::x};&$foo;' Thanks! Frederick On Fri, Mar 25, 2016 at 11:11:35PM -0700, frederik@ofb.net wrote:
|
From @arcvia RT <perlbug-followup@perl.org> wrote:
In the interests of further reducing it: it turns out that neither the $ perl -e'package DB{sub f{eval q/\$s/}} my $s; sub{$s;DB::f}->()' Under -DEBUGGING, we get an assertion failure instead (including under $ ./miniperl -e'package DB{sub f{eval q/\$s/}} my $s; sub{$s;DB::f}->()' This is a part of the core I know essentially nothing about, though, -- |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Sat, Mar 26, 2016 at 08:11:49PM +0000, Aaron Crane wrote:
Fixed by commit aea0412 RT #127786: assertion failure with eval in DB pkg. -- |
@iabyn - Status changed from 'open' to 'pending release' |
@tonycoz - Status changed from 'new' to 'pending release' |
From @khwilliamsonThank you for submitting this report. You have helped make Perl better. Perl 5.24.0 may be downloaded via https://metacpan.org/release/RJBS/perl-5.24.0 |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#127786 (status was 'resolved')
Searchable as RT127786$
The text was updated successfully, but these errors were encountered: