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

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

From:
Karl Williamson via RT
Date:
November 23, 2013 16:52
Subject:
[perl #46415] Segmentation fault when using encoding ':locale' and creating a new thread
Message ID:
rt-4.0.18-19813-1385225522-1437.46415-15-0@perl.org
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?


-- 
Karl Williamson

For the record, it turns out that there is a reason not to apply the patch:  it has already been applied

---
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