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 on &DB::sub declared but not defined #7866
Comments
From ambrus@math.bme.huCreated by ambrus@math.bme.huThe following code segfaults my perl: perl -we 'sub DB::sub; sub foo { } BEGIN { $^P |= 1; } foo();' I belive that pure perl should never segfault without a reason, so unless Here, the BEGIN { $^P |= 1 } part should make perl call &DB::sub on entry I was able to reproduce this bug on various versions of perl (from 5.8.2 Here's a quick backtrace of perl 5.8.6 in case you cannot reproduce the (gdb) r -we 'sub DB::sub; sub foo { } BEGIN { $^P |= 1; } foo();' Program received signal SIGSEGV, Segmentation fault. Now AvREAL(av) calls AvFLAGS(av) which tries to dereference SvANY(av) Thanks, ambrus Perl Info
|
From @rgsZsban Ambrus wrote:
Thanks for this report; I've fixed this bug in the development version |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#34892 (status was 'resolved')
Searchable as RT34892$
The text was updated successfully, but these errors were encountered: