niner/Inline-Perl5 — pull request #7 by carbin (2014-09-29 17:34:38+00:00)
Title: Fix segv calling Perl_sys_init3 on some platforms

Not sure if this is the Right Way to fix this, but it stops OpenBSD segfaulting when calling Perl_sys_init3. Still lots of test failures but it's a slight improvement from immediately segfaulting.

Before:

perl6 -MInline::Perl5 -e 'Inline::Perl5.new; say "still alive"'
Segmentation fault (core dumped)

t/call.t .................. Failed 12/12 subtests
t/call_back.t ............. No subtests run
t/callables.t ............. Failed 3/3 subtests
t/eval.t .................. Failed 3/3 subtests
t/eval_return_values.t .... Failed 2/2 subtests
t/exceptions.t ............ Failed 16/16 subtests
t/inherit.t ............... Failed 5/5 subtests
t/p5_to_p6.t .............. No subtests run
t/p6_object_destructor.t .. Failed 1/1 subtests
t/p6_to_p5.t .............. Failed 11/11 subtests
t/precomp.t ............... ok
t/use.t ................... No subtests run

After:

perl6 -MInline::Perl5 -e 'Inline::Perl5.new; say "still alive"'
still alive

t/call.t .................. Failed 11/12 subtests
t/call_back.t ............. moar in free(): error: bogus pointer (double free?) 0x19a18300cf10
t/call_back.t ............. No subtests run
t/callables.t ............. ok
t/eval.t .................. ok
t/eval_return_values.t .... ok
t/exceptions.t ............ 1/16 moar in free(): error: bogus pointer (double free?) 0x12582b80c980
t/exceptions.t ............ Failed 4/16 subtests
t/inherit.t ............... ok
t/p5_to_p6.t .............. ok
t/p6_object_destructor.t .. Failed 1/1 subtests
t/p6_to_p5.t .............. ok
t/precomp.t ............... ok
t/use.t ................... ok