Subject: lib/37290: setlocale(LC_ALL, "ja_JP.ISO2022-JP2") triggers abort()
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <M.Drochner@fz-juelich.de>
List: netbsd-bugs
Date: 11/06/2007 16:45:00
>Number:         37290
>Category:       lib
>Synopsis:       setlocale(LC_ALL, "ja_JP.ISO2022-JP2") triggers abort()
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 06 16:45:00 +0000 2007
>Originator:     Matthias Drochner
>Release:        current/i386
>Organization:
KFA Juelich
>Environment:
NetBSD zelz27 4.99.34
>Description:
see above, the stacktrace is
#1  0xbbbc6ae8 in abort () from /usr/lib/libc.so.12
#2  0xbb9fc413 in _citrus_ISO2022_ctype_getops () from /usr/lib/i18n/libISO2022.so.4.4
#3  0xbb9fc99c in _citrus_ISO2022_ctype_getops () from /usr/lib/i18n/libISO2022.so.4.4
#4  0xbb9fdc78 in _citrus_ISO2022_ctype_getops () from /usr/lib/i18n/libISO2022.so.4.4
#5  0xbbb7985a in __runetable_to_netbsd_ctype () from /usr/lib/libc.so.12
#6  0xbbb79539 in _newrunelocale () from /usr/lib/libc.so.12
#7  0xbbb7971a in _xpg4_setrunelocale () from /usr/lib/libc.so.12
#8  0xbbb78345 in __setlocale_mb_len_max_32 () from /usr/lib/libc.so.12
#9  0xbbb78443 in __setlocale_mb_len_max_32 () from /usr/lib/libc.so.12
#10 0xbbb78647 in __setlocale () from /usr/lib/libc.so.12
#11 0xbbb78046 in __setlocale_mb_len_max_32 () from /usr/lib/libc.so.12

This source file might be relevant:
$NetBSD: citrus_iso2022.c,v 1.17 2007/09/18 15:12:08 tnozaki Exp $

>How-To-Repeat:

>Fix:
execute the perl-5.8.8 selftest, or try that call
in a one-liner test program