develooper Front page | perl.perl5.porters | Postings from September 2023

Calling Perl subs from XS under PERL_RC_STACK

Thread Next
Lukas Mai
September 12, 2023 17:10
Calling Perl subs from XS under PERL_RC_STACK
Message ID:
I built perl 5.39.2 with PERL_RC_STACK. One of my modules, 
Function::Parameters, started failing:
| Attempt to free unreferenced scalar: SV 0x5556d4a0cbd8 at 
t/01-compiles.t line 10.
| perl5.39.2: Parameters.xs:1367: register_info: Assertion 
`!rpp_stack_is_rc()' failed.

Is this the expected behavior?

I got things to work again by manually patching all the 
PUSHMARK/EXTEND/PUSH sites with lots of #ifdef PERL_RC_STACK gates:

Is there a better way to do this? Should perlcall.pod be amended? Or am 
I doing it wrong?

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About