nayakgi / perl-compiler

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

global destruction -O3: new refcnt: fd -1 < 0 #302

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pcc -S -O3 t/CORE/op/lex_assign.t

=>refcnt: fd -1 < 0
+ error_code 9

t/C-COMPILED/CORE--io--openpid.t, and t/C-COMPILED/CORE--op--utf8cache.t 
produce similar results
since 1.45_04

Original issue reported on code.google.com by reini.urban on 19 Feb 2014 at 3:38

GoogleCodeExporter commented 9 years ago
Fixed with commit c186386f62d619c134f54bb8727f0962e5ed23bd
Author: Reini Urban <rurban@cpanel.net>
Date:   Wed Feb 19 12:48:58 2014 -0600

    C: revert 205fbbca Special-case io_close, move PerlIO_cleanup after sv_clean_objs

    the cause for the io_close problem was that PerlIO_cleanup was called before sv_clean_objs.
    global destruction -O3 looks better now
    Fixes #302 CORE--op--utf8cache.t, CORE--op--lex_assign.t, CORE--io--openpid.t

Original comment by reini.urban on 19 Feb 2014 at 8:41