On Okt 29 2026, Robert Elz wrote:

>     Date:        Wed, 28 Oct 2026 17:35:39 +0100
>     From:        =?UTF-8?Q?Jakub_Boche=C5=84ski?= <[email protected]>
>     Message-ID:  
> <CAGiELgqdhNdRa+Y4m1ZH2Kik2L93=Jq=msz7n_bg5m_hcpr...@mail.gmail.com>
>
>   | On restore, sv_locale calls libintl's setlocale, which on macOS asks
>   | CoreFoundation for the preferred languages; CoreFoundation is not usable 
> in
>   | the child of a multi-threaded process after fork, and the process crashes.
>   | macOS's crash report says so explicitly:
>
> That looks like a macOS bug to me, there's nothing I see in POSIX that
> restricts when setlocale() can be called.

In the forked child of a multi-threaded process only async-signal-safe
function can be called, which setlocale isn't required to be.

-- 
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to