#41248: bash @4.2.45_2 - Segmentation Fault when executing undefined command ---------------------------+---------------------- Reporter: onitsuka42@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: bash | ---------------------------+---------------------- Comment (by emanuele.giaquinta@…): This is the same bug as http://article.gmane.org/gmane.os.macosx.fink.devel/21882 bash calls 'gettext' in the child process to print the 'command not found' error, and 'gettext' may call the function 'CFPreferencesCopyAppValue', which is not async-signal-safe. In particular, the bug happens if LC_ALL, LC_MESSAGES and LANG are all not set and 'gettext' is called for the first time in a child process (because otherwise CFPreferencesCopyAppValue is not called as the result is cached). See http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext- runtime/intl/langprefs.c#n234 http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext- runtime/intl/dcigettext.c#n1534 A minimal test case to reproduce the bug http://dpaste.com/3HYD0KN.txt (If you uncomment the printf before the fork it works fine) -- Ticket URL: <https://trac.macports.org/ticket/41248#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X