bug-bash
[Top][All Lists]
Advanced

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

Re: Segfault in command substitution child: dispose_temporary_env -> sv_


From: Robert Elz
Subject: Re: Segfault in command substitution child: dispose_temporary_env -> sv_locale -> libintl_setlocale -> CoreFoundation after fork (macOS)
Date: Thu, 29 Oct 2026 13:24:44 +0700

    Date:        Wed, 28 Oct 2026 17:35:39 +0100
    From:        =?UTF-8?Q?Jakub_Boche=C5=84ski?= <kuba.bochenski@gmail.com>
    Message-ID:  
<CAGiELgqdhNdRa+Y4m1ZH2Kik2L93=Jq=mSz7n_bg5m_hcPR6JQ@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.   If macOS can't handle that,
fix macOS.

kre



reply via email to

[Prev in Thread] Current Thread [Next in Thread]