pkgsrc-Bugs archive

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

pkg/46781: Under NetBSD 6.0 bash will crash when LC_ALL=en_US.UTF-8 (and possibly any UTF-8 locale)

>Number:         46781
>Category:       pkg
>Synopsis:       Under NetBSD 6.0 bash will crash when LC_ALL=en_US.UTF-8 (and 
>possibly any UTF-8 locale)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 07 19:20:00 +0000 2012
>Originator:     Christopher M. Fuhrman
>Release:        NetBSD 6.0 BETA2
NetBSD 6.0_BETA2 NetBSD 6.0_BETA2 (GENERIC) #0: Wed Jul 
18 11:10:14 PDT 2012 
Setting LC_ALL to en_US.UTF-8 will cause bash to crash with the following 

-bash-4.2$ export LC_ALL=en_US.UTF-8 

malloc: unknown:0: assertion botched
free: start and end chunk sizes differ
last command: export LC_ALL=en_US.UTF-8
Aborting...Connection to w.x.y.z closed.

I see the same effect using the following sampled locales:

 - en_CA.UTF-8
 - en_GB.UTF-8
 - zh_TW.UTF-8

Note this *DOES NOT* happen under NetBSD 5.1.2.  This is specific to NetBSD 6.0 

Under NetBSD 6.0_BETA2:

 - Set bash options to static in /etc/mk.conf


 - Create a user account using bash for the shell
 - Log in as this user
 - set LC_ALL to en_US.UTF-8 (or any unicode locale)

   export LC_ALL=en_US.UTF-8 

 - watch bash crash

Setting the locale to en_US.ISO8859-1 seems to work okay.

Home | Main Index | Thread Index | Old Index