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
PerlIO::via isn't thread safe #8713
Comments
From blgl@hagernas.comCreated by blgl@hagernas.comThis outputs "Hello=3DWorld!" as expected but then crashes. ### begin example program use strict; open(my $foo,'>&:via(QuotedPrint)',*STDOUT) ### begin debugger log Perl Info
|
From blgl@hagernas.comIt turns out that PerlIO::via and PerlIO::encoding are both thread PerlIOBase_dup The least ugly solution I can think of involves adding a helper Any better ideas? /Bo Lindbergh |
From @dcollinsndcollins@nightshade64:~/toolchain$ perl5.8.8-thread-multi 41106.pl -- |
From @jkeenanOn Mon, 18 Dec 2006 17:59:12 GMT, blgl@hagernas.com wrote:
The way perl handles this appears to have been mitigated over the years since perl-5.9.5. I added a one-line 'print' statement to your original program (see attachment). I built threaded perls at several tags and ran your program at each. ##### [v5.16.3] $ ./bin/perl -Ilib ~/learn/perl/p5p/41106-threads-quoted-print.pl [v5.20.3] $ ./bin/perl -Ilib ~/learn/perl/p5p/41106-threads-quoted-print.pl [blead: commit 8df0224] same results as v5.20.3 So the segfault disappeared somewhere between 5.12.5 and 5.16.3. From some point between 5.16.3 and 5.20.3, we start to get fairly sane warnings. Is there any reason to keep this ticket open? Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Sat, Dec 31, 2016 at 06:56:05AM -0800, James E Keenan via RT wrote:
The 'Unbalanced string table refcount' error indicates that there is still at -- |
Migrated from rt.perl.org#41106 (status was 'open')
Searchable as RT41106$
The text was updated successfully, but these errors were encountered: