[MacPorts] #68638: bash @5.2.15: When a "command not found" situation happens, Bash prints errors and ends with "Abort Trap: 6" instead of printing "Command not found"
MacPorts
noreply at macports.org
Sun Apr 28 15:54:34 UTC 2024
#68638: bash @5.2.15: When a "command not found" situation happens, Bash prints
errors and ends with "Abort Trap: 6" instead of printing "Command not
found"
----------------------+----------------------
Reporter: some1so | Owner: raimue
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: bash |
----------------------+----------------------
Comment (by bradleyCPA):
I suppose the problem lies at the intersection of gettext() usage after
fork() and before exec() in bash [execute_cmd.c in bash source] in
combination with setlocale() function replacement [libintl.h, "define
setlocale libintl_setlocale", gettext-runtime/intl/setlocale.c in gettext
source]. It seems that there must be some scenario or scenarios where
calling into Apple's APIs in the gettext-provided setlocale() replacement
spawns a thread so that after the fork() [in bash] calling back into
Apple's APIs using CFLocaleCopyPreferredLanguages (or similar) in the
gettext() call results in the forked process terminating.
--
Ticket URL: <https://trac.macports.org/ticket/68638#comment:22>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list