nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

Fix Byteloader input filter for 5.18, -H broken #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

perl5.18 -MO=Bytecode,-H,-ohi.plc -e 'print "hi!\n"'
perl5.18 hi.plc

=> SEGV

works fine without -H.

Most likely caused by the binmode to textmode change in input filters for 
windows. [perl #86186]

Disabling PerlIO_binmode(aTHX_ PL_RSFP, IoTYPE_RDONLY, O_BINARY, 0);
fixes this issue.

Original issue reported on code.google.com by reini.urban on 14 May 2014 at 9:15

GoogleCodeExporter commented 9 years ago
Partially fixed by commit 67433d79c43b59ee18070b9ae2fb705c9c7edf0b
Author: Reini Urban <rurban@cpanel.net>
Date:   Wed May 14 16:25:37 2014 -0500

    ByteLoader 0.11: disable binmode for the -H filter for 5.18

    Disabling the PerlIO_binmode(PL_RSFP, IoTYPE_RDONLY, O_BINARY, 0);
    hack for [perl #86186] "Changing filters to be textmode, not binary"
    fixed the Bytecode problems since 5.18
    See issue 339

    Do not use -H with 5.18 in t/bytecode.t non-threaded still.

Original comment by reini.urban on 14 May 2014 at 9:26

GoogleCodeExporter commented 9 years ago
Issue 137 has been merged into this issue.

Original comment by reini.urban on 4 Jun 2014 at 9:28

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 11 Jun 2014 at 11:24

GoogleCodeExporter commented 9 years ago
Fixed another problem with Bytecode (1.16) not to store an empty main_cv->START 
optree, which led to bytecode corruption.

Original comment by reini.urban on 7 Jul 2014 at 5:38

GoogleCodeExporter commented 9 years ago
fixed with commit a8288e8568254a28f560436dcbe2e8d39d703b0b
Author: Reini Urban <rurban@cpanel.net>
Date:   Mon Jul 7 22:06:52 2014 -0500

    Bytecode: fix 5.18 and 5.20, empty main_cv->START optree since 5.18

Original comment by reini.urban on 8 Jul 2014 at 3:53