develooper Front page | perl.perl5.porters | Postings from November 2013

[perl #46415] Segmentation fault when using encoding ':locale' and creating a new thread

From:
James E Keenan via RT
Date:
November 28, 2013 00:45
Subject:
[perl #46415] Segmentation fault when using encoding ':locale' and creating a new thread
Message ID:
rt-4.0.18-31478-1385599542-1018.46415-15-0@perl.org
On Sat Nov 23 08:52:02 2013, khw wrote:
> On Fri Jun 21 13:36:16 2013, khw wrote:
> > On Sun Oct 14 09:17:55 2007, jdhedden@cpan.org wrote:
> > > Florent Bayle wrote:
> > > > The following code segfault on my system
> > > > perl -Mthreads -e "use encoding ':locale'; threads->create(sub {});"
> > > 
> > > Bo Lindbergh wrote:
> > > > Yet another symptom of PerlIO::encoding not being thread safe.
> > > > See <http://rt.perl.org/rt3/Public/Bug/Display.html?id=31923> for
> > > > the full story.
> > > 
> > > Gee, shouldn't this be documented in the POD.  Patch attached.
> > 
> > I just ran this on blead, and got a segfault.  Is there a reason not to
> > apply his warning patch, or a variant thereof?
> 


Following discussion with khw, I'm marking this ticket as resolved.  We have documented this limitation in encoding.pm.  Moreover, as of Perl 5.17, "Use of the encoding pragma is deprecated."

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=46415



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About