[Bug 267527] bash crashes with segfault if LC_CTYPE or LC_ALL not set
Date: Wed, 09 Nov 2022 15:07:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267527 Michal <michal.berger@intel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michal.berger@intel.com --- Comment #2 from Michal <michal.berger@intel.com> --- Hit that as well. Logging in via serial (tty{,S}* or through getty in general) may be indeed troublesome, for ssh there's still a silly workaround, e.g. ssh -t foo@bar sh $ LC_CTYPE= bash -l though interestingly this affects bash only in interactive|login mode (so any potential bash scripts that are doing some work shouldn't be affected) but what seems to be indicative of what was mentioned on the forum (i.e. issue coming from the readline). As: $ bash -c 'read -rp 'oops: ' # this works $ bash -c 'read -erp 'oops: ' # this doesn't so, actually, scripts can be affected when they do use readline (but outside of the interactive context it would be quite uncommon I think). (In reply to ralph from comment #0) -- You are receiving this mail because: You are the assignee for the bug.