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

[perl #48248] perl thread Segmentation fault

Thread Next
From:
James E Keenan via RT
Date:
December 16, 2013 02:52
Subject:
[perl #48248] perl thread Segmentation fault
Message ID:
rt-4.0.18-16376-1387162358-901.48248-15-0@perl.org
On Thu Dec 06 06:15:50 2007, jdhedden@cpan.org wrote:
> Vikulin Vitaly reported:
> >
> > perl Segmentation fault.
> >
> > test:
> > #!/usr/bin/perl -w
> >
> > use strict;
> > use threads;
> >
> > use utf8;
> > use encoding "utf8", STDIN => "utf8", STDOUT => "utf8";
> >
> > threads->create(sub {});
> >
> > while( 1 ) {
> >   sleep 1;
> > }
> >
> > execute:
> > ./test.pl
> > Segmentation fault
> 
> This is a known problem with the Encode module: It is not
> thread safe.  I will file this as a bug against the Encode
> module.
> 
> Change 32146 to blead added the following to the KNOWN
> PROBLEMS section of the 'encoding' POD:
> 
>     Thread safety
>         "use encoding ..." is not thread-safe (i.e., do not
>         use in threaded applications).
> 

Given that the encoding module is deprecated in Perl 5.18, what should we do with this ticket?

Thank you very much.
Jim Keenan


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

Thread Next


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