PaulHowarth/Blog/2012-04-14

Saturday 14th April 2012

Local Packages

  • Updated perl-Coro to 6.08:

    • Be more aggressive about exiting like perl does - formerly, exiting from the non-main thread would not execute END blocks

  • I found that test t/12_exit.t would fail sub-test 5 on perl 5.10.0 on x86_64 (but not any other perl version, or on i386), which turned out to be a segfault in perl_free(), called just before exit() in State.xs; as a work-around, I just removed the call to perl_free():

  • Coro 6.08 segfaults in perl_free with perl 5.10.0 (only) on x86_64 (only)
    
    --- Coro/State.xs
    +++ Coro/State.xs
    @@ -1420,9 +1420,7 @@
     static void ecb_noinline ecb_cold
     perlish_exit (pTHX)
     {
    -  int exitstatus = perl_destruct (PL_curinterp);
    -  perl_free (PL_curinterp);
    -  exit (exitstatus);
    +  exit (perl_destruct (PL_curinterp));
     }
     
     /*


Recent