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
crash on binary-or lvalue operation on qr// #9353
Comments
From @ntyniThis is a bug report for perl from Niko Tyni <ntyni@debian.org>, As seen in <http://bugs.debian.org/483150>, this one-liner crashes 5.10.0 # ./miniperl -e 'my $re = qr/x/; $re |= "y"' #0 0x00002b358c697165 in raise () from /lib/libc.so.6 On 5.10.0 without -DDEBUGGING this results in 'double free or corruption'. Bisecting shows it was broken by change 27859: commit a39e44f1b8a997f82f02847b565d62c2cd84111f dooop.c: the strong asserts in Sv* macros could cause memory leakage -- move the macro calls earlier (Coverity CID 84) Flags: Site configuration information for perl 5.10.0: Configured by Debian Project at Thu May 8 11:57:24 UTC 2008. Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Locally applied patches: @INC for perl 5.10.0: Environment for perl 5.10.0: |
From @smpetersOn Tue May 27 23:17:19 2008, ntyni@debian.org wrote:
Yep, running with a debugging Perl gives me... Assertion ((svtype)((sv)->sv_flags & 0xff)) >= SVt_PV failed: file |
The RT System itself - Status changed from 'new' to 'open' |
From @smpetersOn Wed, May 28, 2008 at 8:35 AM, Steve Peters via RT
OK, after coffee and a think, a couple of things came up. First, &= steve@picard:~/perl-current$ ./perl -e 'my $re = qr/x/; $re &= "y"' Second, the failures only occur with debugging Perls. Without debugging... [steve@kirk perl-current]$ ./perl -Ilib -E'my $re = qr/x/; $re |= "y"; say $re' is same as what I get under Perl 5.8.8. Finally, the problem isn't qr//. Its references in general. For example... steve@picard:~/perl-current$ ./perl -e ' my $sploosh = "aiieee"; steve@picard:~/perl-current$ ./perl -e ' my $sploosh = bless {}, steve@picard:~/perl-current$ ./perl -e ' my $sploosh = 1; $powie = ...although, if we have a reference to a number and a number on the steve@picard:~/perl-current$ ./perl -e ' my $sploosh = 1; $powie = it works. Obviously, then, we don't have test cases for bitwise & and Steve Peters |
From module@renee-baecker.defixed with |
module@renee-baecker.de - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#54956 (status was 'resolved')
Searchable as RT54956$
The text was updated successfully, but these errors were encountered: