Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 8f705f9fd94ff9c6665966c5e6044852b4c82967 https://github.com/Perl/perl5/commit/8f705f9fd94ff9c6665966c5e6044852b4c82967 Author: Robin Ragged <robin.rag...@paranoici.org> Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths: M AUTHORS M perl.c Log Message: ----------- Clean up PL_strtab hash with NULL in perl_destruct As it's not required to pre-allocate PL_strtab hash before perl_construct() and PL_strtab is not initialized with NULL by default, SIGSEGV could happen in certain circumstances. Particularly, when application links libperl and runs perl several times. After the first run PL_strtab remains unitialized in perl_construct() as it was not cleared in perl_destruct() and it contains garbage and the next initialization in perl_construct() is skipped because !PL_strtab check is skipped. See also: c82f4881ef (Allow custom PL_strtab hash in perl_construct.) To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications