tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Is -fsanitize=address working?



On Tue, 30 Sep 2025, Thomas Klausner wrote:

[...]
   test
   ==7321==Failed spawning a tracer thread (errno 22).
   ==7321==LeakSanitizer has encountered a fatal error.
[...]
Does anyone know what the problem here is?


It's the recent changes for O_CLOFORK. Specifically this new test in kern_fork.c:

https://github.com/NetBSD/src/commit/60619b499672007eb37fe9705bb029758c41b4c0#diff-53fa54c22c2d2517d75acab3d1bd240a149638fbdaca8b264fe555b009fde5d2

This causes __clone(2) to fail, if the program has a FD opened with O_CLOFORK
set; and, with the last update to tzcode, it now opens /etc/localtime with that
flag set.

Thomas, can you try again after commenting out that test in kern_fork.c (r1.232)?

-RVP


Home | Main Index | Thread Index | Old Index