Skip Menu |
Report information
Id: 133959
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: jkeenan [at]

Operating System: freebsd
PatchStatus: (no value)
Severity: medium
Perl Version: 5.29.10
Fixed In: (no value)

To: perlbug [...]
Date: Tue, 26 Mar 2019 00:05:27 -0400
From: James E Keenan <jkeenan [...]>
Subject: 70bd6bc82b breaks multiple tests on threaded FreeBSD-13
Download (untitled) / with headers
text/plain 15.5k

Message body is not shown because it is too large.

RT-Send-CC: perl5-porters [...]
Download (untitled) / with headers
text/plain 16.9k

Message body is not shown because it is too large.

RT-Send-CC: perl5-porters [...]
Fixed by commit e72200e71a601e2c7882a03502d6a68aaa59985c Author: Karl Williamson <> Date: Wed Mar 27 10:28:21 2019 -0600 PATCH: [perl #133959] Free BSD broken tests Commit 70bd6bc82ba64c1d197d3ec823f43c4a454b2920 fixed a leak (likely due to a bug in glibc) by not duplicating the C locale object. However, that meant that there's only one copy running around. And freeing that will cause havoc, as its supposed to be there until destruction. What appears to be happening is that the current locale object is freed upon thread destruction, and that could be this global one. But I don't understand why it's only happening on Free BSD and only on this version. But this commit fixes the problem there, and makes sense. Simply don't free this global object upon thread destruction. This commit also changes it so it doesn't get destroyed at destruction time, leaving it to the final PERL_SYS_TERM to free. I'm not sure, but I think this fixes any issues with embedded perls. -- Karl Williamson

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at