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
die($object) in thread reblesses $object into main and breaks stringification #12023
Comments
From lasse.makholm@gmail.comThis is a bug report for perl from lasse.makholm@gmail.com, When passing an object to die() in a thread, the object gets $ perl -e 'use threads; $t = threads->create(sub { die bless {}, "Foo" The exception is cloned correctly into the main thread though: $ perl -e 'use threads; $t = threads->create(sub { die bless {}, "Foo" I haven't been able to find any mentioning of this issue anywhere The culprit is in threads.xs: /* If ERRSV is an object, remember the classname and then ...but that was added for a reason it seems. I'm not sure what Flags: Site configuration information for perl 5.15.9: Configured by lasse at Wed Mar 28 17:57:13 CEST 2012. Summary of my perl5 (revision 5 version 15 subversion 9) configuration: Locally applied patches: @INC for perl 5.15.9: Environment for perl 5.15.9: |
From @cpansproutOn Thu Mar 29 02:52:26 2012, lasse.makholm@gmail.com wrote:
This appears to be a 5.8.9 regression: $ perl5.8.8 -e 'use threads; $t = threads->create(sub { die bless {}, "Foo" -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @nwc10On Thu, Mar 29, 2012 at 04:06:00PM -0700, Father Chrysostomos via RT wrote:
I don't know either, but the idea of reblessing as implemented in that code However, this may start to touch on a deeper fundamental unsolvable problem
Well, as implied by commit hash referenced in the bug report, it's a commit 955c272 threads 1.54 - Adds ->error() method Nicholas Clark |
From zefram@fysh.orgLasse Makholm wrote:
The "bugs and limitations" section of the threads.pm documentation has a This ticket should be closed. -zefram |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#112104 (status was 'resolved')
Searchable as RT112104$
The text was updated successfully, but these errors were encountered: