develooper Front page | perl.perl5.porters | Postings from March 2022

Should build using -DPERL_USE_SAFE_PUTENV on Linux?

Thread Next
Paul "LeoNerd" Evans
March 10, 2022 13:31
Should build using -DPERL_USE_SAFE_PUTENV on Linux?
Message ID:
I raised this question as a github issue:

The upshot is simple: If we build with that flag, all is fine.

If we don't, then any XS code or C library binding to a program that
uses the C `putenv()` function will crash with assertion errors at
global destruction time:

t/30tickit.t .............. 1/? panic: free from wrong pool, 1!=55bca53652a0 during global destruction.
t/30tickit.t .............. Dubious, test returned 22 (wstat 5632, 0x1600)
All 8 subtests passed 

Can we just turn this on now?

Furthermore, can we get this in in time to test it on 5.35.10 so it's
part of 5.36?

Paul "LeoNerd" Evans      |  |

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