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
eval STRING compilation failure breaks overloading #10733
Comments
From hdp@glaive.weftsoar.netCreated by hdp@glaive.weftsoar.netUsing eval STRING inside an overload method causes stack corruption when STRING Commenting out the eval makes it work; or changing it to just eval "require Foo::Bar" use overload (q{""} => 'str'); main->new() . ""; Perl Info
|
From hdp@pobox.comI tested this with all of 5.12.2, 5.10.1, and 5.8.9, and it breaks in |
From @raflFor me, it fails slightly differently. "Can't return outside a subroutine at" from the return in the overloaded This is probably the same problem you're seeing, but with a different Also, I can't produce this on blead. I can't see any recent changes to A bisect run, anyone? |
The RT System itself - Status changed from 'new' to 'open' |
From hdp@pobox.comOn Sat Oct 16 02:08:25 2010, rafl wrote:
Sorry, I forgot to say what the actual error is. :) That's what I get too. The segfault/abort is only if I try to localize |
From @raflApparently this is already fixed in 5.13.0. Here's the bisect result. git bisect start 27e9045 is the first bad commit fix RT 23810: eval and tied methods Something like the following ended up corrupted: It turns out that the run-time parts of pp_entereval were protected with :100644 100644 80c7b221d7e967a6f3380d70917bd73700b16852 So I'm closing this. Tests for this particular issue in combination with |
@rafl - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#78398 (status was 'resolved')
Searchable as RT78398$
The text was updated successfully, but these errors were encountered: