Win32 fork and encoding simultaneous usage error #11171
This is a bug report for perl from firstname.lastname@example.org,
Perl crashes if script simultaneously uses encoding pragma and fork.
I think it crashes on macro
However, it doesn't crash if i close STDIN and STDOUT before calling fork.
Site configuration information for perl v5.8.9:
Configured by sshd_server at Wed Jan 27 16:09:40 2010.
Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
Locally applied patches:
@INC for perl v5.8.9:
Environment for perl v5.8.9:
I am removing the link to the encoding.pm ticket, since it is not related to encoding.pm per se. The same bug can be triggered this way:
binmode STDOUT, ":encoding(utf8)";
I think this may have been fixed already, but I don’t have a threaded blead handy right now.
Le 15/07/2016 à 13:02, Dan Collins via RT a écrit :
This is a duplicate of #31923, which has been fixed in 5.24.
On Fri Jul 15 09:02:15 2016, email@example.com wrote:
This was fixed by the same commit as 41121.
Properly duplicate PerlIO::encoding objects
PerlIO::encoding objects are usually initialized by calling Perl methods,
The proper way to duplicate the PerlIO::encoding object is to call sv_dup()
This fixes [RT #31923].
:100644 100644 f79df008098f4df1f97f7f104171b89c31049a90 34c2e2436a2a14e776725ca5c40a74c8f0a4bdb7 M MANIFEST
Thank you for filing this report. You have helped make Perl better.
With the release today of Perl 5.26.0, this and 210 other issues have been
Perl 5.26.0 may be downloaded via:
If you find that the problem persists, feel free to reopen this ticket.