[Bug 258360] race between setlocale() and iconv_open() causes segfault

[email protected]
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258360

--- Comment #3 from Mark Johnston <[email protected]> ---
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.