Skip Menu |
 

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 113994
Status: open
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: HMNIELSEN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 2.78
  • 2.84
Fixed in: (no value)



Subject: fork after encoding(utf8) causes crash
Download (untitled) / with headers
text/plain 484b
I have been directed here so I hope it is the right place to report this. If not, I apologize. Using Strawberry Perl 5.22 on Windows, Encode v. 2.78, I have noticed that calling fork() after STDOUT has been set to encoding(utf8) causes a crash. See attached sample which will run through the first part, including the fork, but not the other which is after the binmode STDOUT, ":encoding(utf8)"; (also, when submitting this, I upgraded to v. 2.84, but that did not change anything)
Subject: perl-crash.pl
Download perl-crash.pl
text/x-perl 625b
# This is perl 5, version 22, subversion 1 (v5.22.1) built for MSWin32-x64-multi-thread # Encode.pm,v 2.78 2015/09/24 02:18:32 print "Trying once, åh ja\n"; my $pid = fork(); print "Got $pid\n"; if (defined $pid && $pid == 0) { print "And I am the child\n"; close STDIN; close STDOUT; exit(0); } else { print "And I am the parent\n"; } binmode STDOUT, ":encoding(utf8)"; print "Trying again, åh nej\n"; my $pid = fork(); print "Got $pid\n"; if (defined $pid && $pid == 0) { print "And I am the child\n"; close STDIN; close STDOUT; exit(0); } else { print "And I am the parent\n"; }
From: twata_1 [...] yahoo.co.jp
Download (untitled) / with headers
text/plain 751b
Hi, For your information. (CSS::Sass-3.4.9)does not work 'psass -w' under Strawberry Perl 5.22.2(32bit) on Windows 7. https://github.com/sass/perl-libsass/issues/33 Thank you, -- twata On 2016-4月-26 火 05:18:56, HMNIELSEN wrote: Show quoted text
> I have been directed here so I hope it is the right place to report > this. If not, I apologize. > > Using Strawberry Perl 5.22 on Windows, Encode v. 2.78, I have noticed > that calling fork() after STDOUT has been set to encoding(utf8) causes > a crash. > > See attached sample which will run through the first part, including > the fork, but not the other which is after the binmode STDOUT, > ":encoding(utf8)"; > > (also, when submitting this, I upgraded to v. 2.84, but that did not > change anything)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.