[Bug 258360] race between setlocale() and iconv_open() causes segfault
Date: Wed, 08 Sep 2021 13:39:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258360 --- Comment #3 from Mark Johnston <markj@FreeBSD.org> --- Created attachment 227762 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227762&action=edit patch This fixes the segfaults for me. I suspect there are other similar races lurking, but I don't know this code well enough to spot them. This should probably also be using C11 atomics, for now I just used sys/atomic.h. -- You are receiving this mail because: You are the assignee for the bug.