NetBSD Problem Report #40411

From htodd@amttest.i8u.org  Fri Jan 16 05:57:37 2009
Return-Path: <htodd@amttest.i8u.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 8016F63BA6E
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 16 Jan 2009 05:57:37 +0000 (UTC)
Message-Id: <200901160556.n0G5uIjm012971@amttest.i8u.org>
Date: Thu, 15 Jan 2009 21:56:18 -0800 (PST)
From: htodd@twofifty.com
Reply-To: htodd@twofifty.com
To: gnats-bugs@gnats.NetBSD.org
Subject: standalone-tcsh dumps core when tab completing some filenames
X-Send-Pr-Version: 3.95

>Number:         40411
>Category:       lib
>Synopsis:       standalone-tcsh dumps core when tab completing some filenames
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 16 06:00:00 +0000 2009
>Closed-Date:    Tue Feb 15 16:36:22 +0000 2011
>Last-Modified:  Tue Feb 15 16:36:23 +0000 2011
>Originator:     H. Todd Fujinaka
>Release:        NetBSD 5.99.7
>Organization:
None
>Environment:


System: NetBSD amttest.i8u.org 5.99.7 NetBSD 5.99.7 (AMTTEST64) #54: Thu Jan 15 15:41:20 PST 2009 htodd@amttest.i8u.org:/var/obj/sys/arch/amd64/compile.amd64/AMTTEST64 amd64
Architecture: x86_64
Machine: amd64
>Description:
Since updating to christos' time_t in amd64-current, standalone-tcsh dumps core when tab completing some filenames

>How-To-Repeat:
Type part of a filename and <tab>

>Fix:


>Release-Note:

>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org, 
	pkgsrc-bugs@netbsd.org
Cc: 
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Fri, 16 Jan 2009 09:03:54 -0500

 On Jan 16,  6:00am, htodd@twofifty.com (htodd@twofifty.com) wrote:
 -- Subject: pkg/40411: standalone-tcsh dumps core when tab completing some fi

 | >Number:         40411
 | >Category:       pkg
 | >Synopsis:       standalone-tcsh dumps core when tab completing some filenames
 | >Confidential:   no
 | >Severity:       serious
 | >Priority:       high
 | >Responsible:    pkg-manager
 | >State:          open
 | >Class:          sw-bug
 | >Submitter-Id:   net
 | >Arrival-Date:   Fri Jan 16 06:00:00 +0000 2009
 | >Originator:     H. Todd Fujinaka
 | >Release:        NetBSD 5.99.7
 | >Organization:
 | None
 | >Environment:
 | 	
 | 	
 | System: NetBSD amttest.i8u.org 5.99.7 NetBSD 5.99.7 (AMTTEST64) #54: Thu Jan 15 15:41:20 PST 2009 htodd@amttest.i8u.org:/var/obj/sys/arch/amd64/compile.amd64/AMTTEST64 amd64
 | Architecture: x86_64
 | Machine: amd64
 | >Description:
 | Since updating to christos' time_t in amd64-current, standalone-tcsh dumps core when tab completing some filenames
 | 	
 | >How-To-Repeat:
 | Type part of a filename and <tab>

 Is that old-binary, new-kernel or new-binary,new-kernel?
 Can you gdb and print a stacktrace?

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 06:27:59 -0800 (PST)

 New kernel, new binary. Can you tell me how to enable the debugging
 symbols in pkgsrc? I've never tried to do that yet.

From: christos@zoulas.com (Christos Zoulas)
To: Hisashi T Fujinaka <htodd@twofifty.com>, gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Fri, 16 Jan 2009 09:59:15 -0500

 On Jan 16,  6:27am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 | New kernel, new binary. Can you tell me how to enable the debugging
 | symbols in pkgsrc? I've never tried to do that yet.

 cd to the work/tcsh-x.y.z directory edit the Makefile and add it by hand.
 Then make clean and make.

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 07:55:56 -0800 (PST)

 htodd@amttest:~ > sudo gdb /bin/tcsh tcsh.core
 GNU gdb 6.5
 Copyright (C) 2006 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "x86_64--netbsd"...
 Core was generated by `tcsh'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x0000000000457fb7 in _wctrans_init ()
 (gdb) bt
 #0  0x0000000000457fb7 in _wctrans_init ()
 #1  0x0000000000457faa in _towctrans_priv ()
 #2  0x000000000042a2ab in is_prefixmatch (check=0x791028, template=0x699a08, igncase=0) at tw.parse.c:699
 #3  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffd550, exp_name=0x7f7fffffd510,
      target=0x791028, pat=0x5e4654, flags=0) at tw.parse.c:1061
 #4  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffd550, exp_name=0x7f7fffffd510,
      target=0x791028, pat=0x5e4654, flags=64, dir_fd=0x790a88) at tw.parse.c:1323
 #5  0x000000000042c0bc in t_search (word=0x7f7fffffd610, command=RECOGNIZE, looking=4, list_max=1, pat=0x5e4654, suf=0)
      at tw.parse.c:1725
 #6  0x0000000000428ff7 in tenematch (inputline=0x5f4c00, num_read=5, command=RECOGNIZE) at tw.parse.c:301
 #7  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 #8  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 #9  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 #10 0x0000000000417088 in lex (hp=0x5fccd0) at sh.lex.c:162
 #11 0x00000000004032c5 in process (catch=1) at sh.c:1925
 #12 0x000000000040217b in main (argc=0, argv=0x7f7fffffdd58) at sh.c:1297
 (gdb)

From: christos@zoulas.com (Christos Zoulas)
To: Hisashi T Fujinaka <htodd@twofifty.com>, gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Fri, 16 Jan 2009 11:05:56 -0500

 On Jan 16,  7:55am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 | htodd@amttest:~ > sudo gdb /bin/tcsh tcsh.core
 | GNU gdb 6.5
 | Copyright (C) 2006 Free Software Foundation, Inc.
 | GDB is free software, covered by the GNU General Public License, and you are
 | welcome to change it and/or distribute copies of it under certain conditions.
 | Type "show copying" to see the conditions.
 | There is absolutely no warranty for GDB.  Type "show warranty" for details.
 | This GDB was configured as "x86_64--netbsd"...
 | Core was generated by `tcsh'.
 | Program terminated with signal 11, Segmentation fault.
 | #0  0x0000000000457fb7 in _wctrans_init ()
 | (gdb) bt
 | #0  0x0000000000457fb7 in _wctrans_init ()
 | #1  0x0000000000457faa in _towctrans_priv ()
 | #2  0x000000000042a2ab in is_prefixmatch (check=0x791028, template=0x699a08, igncase=0) at tw.parse.c:699
 | #3  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffd550, exp_name=0x7f7fffffd510,
 |      target=0x791028, pat=0x5e4654, flags=0) at tw.parse.c:1061
 | #4  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffd550, exp_name=0x7f7fffffd510,
 |      target=0x791028, pat=0x5e4654, flags=64, dir_fd=0x790a88) at tw.parse.c:1323
 | #5  0x000000000042c0bc in t_search (word=0x7f7fffffd610, command=RECOGNIZE, looking=4, list_max=1, pat=0x5e4654, suf=0)
 |      at tw.parse.c:1725
 | #6  0x0000000000428ff7 in tenematch (inputline=0x5f4c00, num_read=5, command=RECOGNIZE) at tw.parse.c:301
 | #7  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 | #8  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 | #9  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 | #10 0x0000000000417088 in lex (hp=0x5fccd0) at sh.lex.c:162
 | #11 0x00000000004032c5 in process (catch=1) at sh.c:1925
 | #12 0x000000000040217b in main (argc=0, argv=0x7f7fffffdd58) at sh.c:1297
 | (gdb)


 Ok, this looks like the new locale code issue. Can you build a debugging libc
 make MKDEBUGLIB=yes install in libc, and then add -lc_g to your link line,
 and do the gdb trace again? What are your locale settings? Is what you are
 trying to expand 7-bit ascii?

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 08:19:48 -0800 (PST)

 On Fri, 16 Jan 2009, Christos Zoulas wrote:

 > Ok, this looks like the new locale code issue. Can you build a debugging libc
 > make MKDEBUGLIB=yes install in libc, and then add -lc_g to your link line,
 > and do the gdb trace again? What are your locale settings? Is what you are
 > trying to expand 7-bit ascii?

 echo $LOCALE shows it to be unset. Trying to compile with -lc_g gives
 me:

 ld: cannot find -lc_g

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 08:33:43 -0800 (PST)

 On Fri, 16 Jan 2009, Christos Zoulas wrote:

 > On Jan 16,  7:55am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 > -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som
 >
 > | htodd@amttest:~ > sudo gdb /bin/tcsh tcsh.core
 > | GNU gdb 6.5
 > | Copyright (C) 2006 Free Software Foundation, Inc.
 > | GDB is free software, covered by the GNU General Public License, and you are
 > | welcome to change it and/or distribute copies of it under certain conditions.
 > | Type "show copying" to see the conditions.
 > | There is absolutely no warranty for GDB.  Type "show warranty" for details.
 > | This GDB was configured as "x86_64--netbsd"...
 > | Core was generated by `tcsh'.
 > | Program terminated with signal 11, Segmentation fault.
 > | #0  0x0000000000457fb7 in _wctrans_init ()
 > | (gdb) bt
 > | #0  0x0000000000457fb7 in _wctrans_init ()
 > | #1  0x0000000000457faa in _towctrans_priv ()
 > | #2  0x000000000042a2ab in is_prefixmatch (check=0x791028, template=0x699a08, igncase=0) at tw.parse.c:699
 > | #3  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffd550, exp_name=0x7f7fffffd510,
 > |      target=0x791028, pat=0x5e4654, flags=0) at tw.parse.c:1061
 > | #4  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffd550, exp_name=0x7f7fffffd510,
 > |      target=0x791028, pat=0x5e4654, flags=64, dir_fd=0x790a88) at tw.parse.c:1323
 > | #5  0x000000000042c0bc in t_search (word=0x7f7fffffd610, command=RECOGNIZE, looking=4, list_max=1, pat=0x5e4654, suf=0)
 > |      at tw.parse.c:1725
 > | #6  0x0000000000428ff7 in tenematch (inputline=0x5f4c00, num_read=5, command=RECOGNIZE) at tw.parse.c:301
 > | #7  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 > | #8  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 > | #9  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 > | #10 0x0000000000417088 in lex (hp=0x5fccd0) at sh.lex.c:162
 > | #11 0x00000000004032c5 in process (catch=1) at sh.c:1925
 > | #12 0x000000000040217b in main (argc=0, argv=0x7f7fffffdd58) at sh.c:1297
 > | (gdb)
 >
 >
 > Ok, this looks like the new locale code issue. Can you build a debugging libc
 > make MKDEBUGLIB=yes install in libc, and then add -lc_g to your link line,
 > and do the gdb trace again? What are your locale settings? Is what you are
 > trying to expand 7-bit ascii?

 Program terminated with signal 11, Segmentation fault.
 #0  _wctrans_init (rl=0x4bf960) at /usr/src/lib/libc/locale/_wctrans.c:82
 82              rl->rl_wctrans[_WCTRANS_INDEX_LOWER].te_name = "tolower";
 (gdb) bt
 #0  _wctrans_init (rl=0x4bf960) at /usr/src/lib/libc/locale/_wctrans.c:82
 #1  0x0000000000457faa in _towctrans_priv (rl=0x4bf960, wc=77, te=0x4c05e0) at /usr/src/lib/libc/locale/_wctype.c:130
 #2  0x000000000042a2ab in is_prefixmatch (check=0x69ff28, template=0x69c808, igncase=0) at tw.parse.c:699
 #3  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffce50, exp_name=0x7f7fffffce10,
      target=0x69ff28, pat=0x5e4b14, flags=0) at tw.parse.c:1061
 #4  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffce50, exp_name=0x7f7fffffce10,
      target=0x69ff28, pat=0x5e4b14, flags=64, dir_fd=0x69fa08) at tw.parse.c:1323
 #5  0x000000000042c0bc in t_search (word=0x7f7fffffcf10, command=RECOGNIZE, looking=4, list_max=1, pat=0x5e4b14, suf=0)
      at tw.parse.c:1725
 #6  0x0000000000428ff7 in tenematch (inputline=0x5f50a0, num_read=4, command=RECOGNIZE) at tw.parse.c:301
 #7  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 #8  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 #9  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 #10 0x0000000000417088 in lex (hp=0x5fd170) at sh.lex.c:162
 #11 0x00000000004032c5 in process (catch=1) at sh.c:1925
 #12 0x000000000040217b in main (argc=0, argv=0x7f7fffffd650) at sh.c:1297

From: christos@zoulas.com (Christos Zoulas)
To: Hisashi T Fujinaka <htodd@twofifty.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, 
	pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Fri, 16 Jan 2009 12:14:09 -0500

 On Jan 16,  8:19am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 | On Fri, 16 Jan 2009, Christos Zoulas wrote:
 | 
 | > Ok, this looks like the new locale code issue. Can you build a debugging libc
 | > make MKDEBUGLIB=yes install in libc, and then add -lc_g to your link line,
 | > and do the gdb trace again? What are your locale settings? Is what you are
 | > trying to expand 7-bit ascii?
 | 
 | echo $LOCALE shows it to be unset. Trying to compile with -lc_g gives
 | me:
 | 
 | ld: cannot find -lc_g

 Did you build it as described above? ls -l /usr/lib/libc_g.a

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 09:16:16 -0800 (PST)

 On Fri, 16 Jan 2009, Christos Zoulas wrote:

 > On Jan 16,  8:19am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 > -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som
 >
 > | On Fri, 16 Jan 2009, Christos Zoulas wrote:
 > |
 > | > Ok, this looks like the new locale code issue. Can you build a debugging libc
 > | > make MKDEBUGLIB=yes install in libc, and then add -lc_g to your link line,
 > | > and do the gdb trace again? What are your locale settings? Is what you are
 > | > trying to expand 7-bit ascii?
 > |
 > | echo $LOCALE shows it to be unset. Trying to compile with -lc_g gives
 > | me:
 > |
 > | ld: cannot find -lc_g
 >
 > Did you build it as described above? ls -l /usr/lib/libc_g.a

 You saw my later reply, right? It was an installation error and I posted
 another stack trace with -lc_g.

From: christos@zoulas.com (Christos Zoulas)
To: Hisashi T Fujinaka <htodd@twofifty.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, 
	pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Fri, 16 Jan 2009 12:23:29 -0500

 On Jan 16,  9:16am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 | On Fri, 16 Jan 2009, Christos Zoulas wrote:
 | 
 | > On Jan 16,  8:19am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 | > -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som
 | >
 | > | On Fri, 16 Jan 2009, Christos Zoulas wrote:
 | > |
 | > | > Ok, this looks like the new locale code issue. Can you build a debugging libc
 | > | > make MKDEBUGLIB=yes install in libc, and then add -lc_g to your link line,
 | > | > and do the gdb trace again? What are your locale settings? Is what you are
 | > | > trying to expand 7-bit ascii?
 | > |
 | > | echo $LOCALE shows it to be unset. Trying to compile with -lc_g gives
 | > | me:
 | > |
 | > | ld: cannot find -lc_g
 | >
 | > Did you build it as described above? ls -l /usr/lib/libc_g.a
 | 
 | You saw my later reply, right? It was an installation error and I posted
 | another stack trace with -lc_g.

 print *rl

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 09:44:26 -0800 (PST)

 On Fri, 16 Jan 2009, Christos Zoulas wrote:

 > print *rl

 Program terminated with signal 11, Segmentation fault.
 #0  _wctrans_init (rl=0x4bf960) at /usr/src/lib/libc/locale/_wctrans.c:82
 82              rl->rl_wctrans[_WCTRANS_INDEX_LOWER].te_name = "tolower";
 (gdb) bt
 #0  _wctrans_init (rl=0x4bf960) at /usr/src/lib/libc/locale/_wctrans.c:82
 #1  0x0000000000457faa in _towctrans_priv (rl=0x4bf960, wc=77, te=0x4c05e0) at /usr/src/lib/libc/locale/_wctype.c:130
 #2  0x000000000042a2ab in is_prefixmatch (check=0x6f65c8, template=0x69a208, igncase=0) at tw.parse.c:699
 #3  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffd550, exp_name=0x7f7fffffd510,
      target=0x6f65c8, pat=0x5e4b14, flags=0) at tw.parse.c:1061
 #4  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffd550, exp_name=0x7f7fffffd510,
      target=0x6f65c8, pat=0x5e4b14, flags=64, dir_fd=0x6f7208) at tw.parse.c:1323
 #5  0x000000000042c0bc in t_search (word=0x7f7fffffd610, command=RECOGNIZE, looking=4, list_max=1, pat=0x5e4b14, suf=0)
      at tw.parse.c:1725
 #6  0x0000000000428ff7 in tenematch (inputline=0x5f50a0, num_read=5, command=RECOGNIZE) at tw.parse.c:301
 #7  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 #8  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 #9  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 #10 0x0000000000417088 in lex (hp=0x5fd170) at sh.lex.c:162
 #11 0x00000000004032c5 in process (catch=1) at sh.c:1925
 #12 0x000000000040217b in main (argc=0, argv=0x7f7fffffdd58) at sh.c:1297
 (gdb) print *rl
 $1 = {rl_magic = "RuneCT10", rl_encoding = "NONE", '\0' <repeats 27 times>, rl_invalid_rune = 4294967293, rl_runetype = {512, 512,
      512, 512, 512, 512, 512, 512, 512, 147968, 16896, 16896, 16896, 16896, 512 <repeats 18 times>, 1074151424,
      1074014208 <repeats 15 times>, 1074072576, 1074072577, 1074072578, 1074072579, 1074072580, 1074072581, 1074072582, 1074072583,
      1074072584, 1074072585, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074104586,
      1074104587, 1074104588, 1074104589, 1074104590, 1074104591, 1074039040 <repeats 20 times>, 1074014208, 1074014208, 1074014208,
      1074014208, 1074014208, 1074014208, 1074075914, 1074075915, 1074075916, 1074075917, 1074075918, 1074075919,
      1074010368 <repeats 20 times>, 1074014208, 1074014208, 1074014208, 1074014208, 512, 0 <repeats 128 times>}, rl_maplower = {0,
      1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
      35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 97,
      98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 91,
      92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
      119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
      144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
      169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
      194, 195, 196, 197, 198, 199...}, rl_mapupper = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
      22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
      53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
      84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
      83, 84, 85, 86, 87, 88, 89, 90, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
      142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
      167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
      192, 193, 194, 195, 196, 197, 198, 199...}, rl_runetype_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_maplower_ext = {
      rr_nranges = 0, rr_rune_ranges = 0x0}, rl_mapupper_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_variable = 0x0,
    rl_variable_len = 0, rl_codeset = 0x4be71f "646", rl_citrus_ctype = 0x5e1930, rl_wctrans = {{te_name = 0x0, te_cached = 0x0,
        te_extmap = 0x0}, {te_name = 0x0, te_cached = 0x0, te_extmap = 0x0}}, rl_wctype = {{te_name = 0x4bf927 "alnum",
        te_mask = 1280}, {te_name = 0x4bf92d "alpha", te_mask = 256}, {te_name = 0x4bf933 "blank", te_mask = 131072}, {
        te_name = 0x4bf939 "cntrl", te_mask = 512}, {te_name = 0x4bf952 "digit", te_mask = 1024}, {te_name = 0x4bf93f "graph",
        te_mask = 2048}, {te_name = 0x4beac0 "lower", te_mask = 4096}, {te_name = 0x4c28fc "print", te_mask = 262144}, {
        te_name = 0x4bf945 "punct", te_mask = 8192}, {te_name = 0x4bf94b "space", te_mask = 16384}, {te_name = 0x4beac8 "upper",
        te_mask = 32768}, {te_name = 0x4bf951 "xdigit", te_mask = 65536}}, rl_ctype_tab = 0x4c6e40 "", rl_tolower_tab = 0x4c5860,
    rl_toupper_tab = 0x4c31df}

From: christos@zoulas.com (Christos Zoulas)
To: Hisashi T Fujinaka <htodd@twofifty.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, 
	pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Fri, 16 Jan 2009 13:07:15 -0500

 On Jan 16,  9:44am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 | On Fri, 16 Jan 2009, Christos Zoulas wrote:
 | 
 | > print *rl

 print rl
 print _DefaultRuneLocale
 print &_DefaultRuneLocale

 I cannot reproduce it here, do you have a sequence of commands to reproduce it?

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 10:31:16 -0800 (PST)

 On Fri, 16 Jan 2009, Christos Zoulas wrote:

 > On Jan 16,  9:44am, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 > -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som
 >
 > | On Fri, 16 Jan 2009, Christos Zoulas wrote:
 > |
 > | > print *rl
 >
 > print rl
 > print _DefaultRuneLocale
 > print &_DefaultRuneLocale

 (gdb) print rl
 $2 = (_NBRuneLocale *) 0x4bf960
 (gdb) print _DefaultRuneLocale
 $3 = {rl_magic = "RuneCT10", rl_encoding = "NONE", '\0' <repeats 27 times>, rl_invalid_rune = 4294967293, rl_runetype = {512, 512,
      512, 512, 512, 512, 512, 512, 512, 147968, 16896, 16896, 16896, 16896, 512 <repeats 18 times>, 1074151424,
      1074014208 <repeats 15 times>, 1074072576, 1074072577, 1074072578, 1074072579, 1074072580, 1074072581, 1074072582, 1074072583,
      1074072584, 1074072585, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074104586,
      1074104587, 1074104588, 1074104589, 1074104590, 1074104591, 1074039040 <repeats 20 times>, 1074014208, 1074014208, 1074014208,
      1074014208, 1074014208, 1074014208, 1074075914, 1074075915, 1074075916, 1074075917, 1074075918, 1074075919,
      1074010368 <repeats 20 times>, 1074014208, 1074014208, 1074014208, 1074014208, 512, 0 <repeats 128 times>}, rl_maplower = {0,
      1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
      35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 97,
      98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 91,
      92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
      119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
      144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
      169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
      194, 195, 196, 197, 198, 199...}, rl_mapupper = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
      22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
      53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
      84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
      83, 84, 85, 86, 87, 88, 89, 90, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
      142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
      167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
      192, 193, 194, 195, 196, 197, 198, 199...}, rl_runetype_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_maplower_ext = {
      rr_nranges = 0, rr_rune_ranges = 0x0}, rl_mapupper_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_variable = 0x0,
    rl_variable_len = 0, rl_codeset = 0x4be71f "646", rl_citrus_ctype = 0x5e1930, rl_wctrans = {{te_name = 0x0, te_cached = 0x0,
        te_extmap = 0x0}, {te_name = 0x0, te_cached = 0x0, te_extmap = 0x0}}, rl_wctype = {{te_name = 0x4bf927 "alnum",
        te_mask = 1280}, {te_name = 0x4bf92d "alpha", te_mask = 256}, {te_name = 0x4bf933 "blank", te_mask = 131072}, {
        te_name = 0x4bf939 "cntrl", te_mask = 512}, {te_name = 0x4bf952 "digit", te_mask = 1024}, {te_name = 0x4bf93f "graph",
        te_mask = 2048}, {te_name = 0x4beac0 "lower", te_mask = 4096}, {te_name = 0x4c28fc "print", te_mask = 262144}, {
        te_name = 0x4bf945 "punct", te_mask = 8192}, {te_name = 0x4bf94b "space", te_mask = 16384}, {te_name = 0x4beac8 "upper",
        te_mask = 32768}, {te_name = 0x4bf951 "xdigit", te_mask = 65536}}, rl_ctype_tab = 0x4c6e40 "", rl_tolower_tab = 0x4c5860,
    rl_toupper_tab = 0x4c31e0}
 $4 = (const _NBRuneLocale *) 0x4bf960

 > I cannot reproduce it here, do you have a sequence of commands to reproduce it?

 It's probably the .tcshrc I have that I downloaded off the web
 somewhere. All I have to do is "ls Ma<tab>" and I know there's no
 Makefile in the current directory.

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 10:36:34 -0800 (PST)

 Forgot one.

 (gdb) print &_DefaultRuneLocale
 $4 = (const _NBRuneLocale *) 0x4bf960

From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40411 CVS commit: src/lib/libc/locale
Date: Fri, 16 Jan 2009 21:12:11 +0000 (UTC)

 Module Name:	src
 Committed By:	christos
 Date:		Fri Jan 16 21:12:11 UTC 2009

 Modified Files:
 	src/lib/libc/locale: _wctrans.c _wctrans_local.h _wctype.c
 	    iswctype_mb.c

 Log Message:
 PR/40411: Hisashi T Fujinaka: standalone-tcsh dumps core when tab completing

 The new rune code abuses __UNCONST to lazily initialize _RuneLocale. If
 that happens to be the _DefaultRuneLocale which is const, the program will
 core-dump because it will attempt to write to read-only memory. Catch this
 and clone a copy of the locale and return it. The reason we don't see
 everything core-dumping is because our shared library code probably loads
 the text segment COW so it works (Is there an mprotect missing somewhere?).
 But on statically linked binaries this is not the case and we die.

 XXX[1]: Vet the code so that we are sure that there is no more of that
         happening trying to get rid of much of the __UNCONST'ing.
 XXX[2]: This needs to be fixed for 5.0 and all related fixes.
 XXX[3]: There is one place in the code where _DefaultRuneLocale is treated
 	specially, does the patch break things?


 To generate a diff of this commit:
 cvs rdiff -r1.8 -r1.9 src/lib/libc/locale/_wctrans.c
 cvs rdiff -r1.4 -r1.5 src/lib/libc/locale/_wctrans_local.h
 cvs rdiff -r1.2 -r1.3 src/lib/libc/locale/_wctype.c \
     src/lib/libc/locale/iswctype_mb.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/40411 CVS commit: src/lib/libc/locale
Date: Fri, 16 Jan 2009 13:23:06 -0800 (PST)

 Thanks again for your help! This was driving me nuts, as I'm now too
 lazy to type out whole filenames and I hit the tab completion by habit.

 -- 
 Hisashi T Fujinaka - htodd@twofifty.com
 BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Fri, 16 Jan 2009 20:39:23 -0800 (PST)

 Still dumping core:
 (gdb) bt
 #0  0x0000000000457f9b in _towctrans_priv ()
 #1  0x000000000042a2f7 in is_prefixmatch (check=0x69e148, template=0x69c408, igncase=0) at tw.parse.c:700
 #2  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=1, exp_dir=0x7f7fffffce50, exp_name=0x7f7fffffce10,
      target=0x69e148, pat=0x5e4654, flags=16) at tw.parse.c:1061
 #3  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=1, exp_dir=0x7f7fffffce50, exp_name=0x7f7fffffce10,
      target=0x69e148, pat=0x5e4654, flags=64, dir_fd=0x0) at tw.parse.c:1323
 #4  0x000000000042c0bc in t_search (word=0x7f7fffffcf10, command=RECOGNIZE, looking=1, list_max=1, pat=0x5e4654, suf=0)
      at tw.parse.c:1725
 #5  0x0000000000428ff7 in tenematch (inputline=0x5f4c00, num_read=6, command=RECOGNIZE) at tw.parse.c:301
 #6  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 #7  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 #8  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 #9  0x0000000000417088 in lex (hp=0x5fccd0) at sh.lex.c:162
 #10 0x00000000004032c5 in process (catch=1) at sh.c:1925
 #11 0x000000000040217b in main (argc=0, argv=0x7f7fffffd650) at sh.c:1297
 (gdb) print *rl
 No symbol "rl" in current context.
 (gdb) print rl
 No symbol "rl" in current context.
 (gdb) print _DefaultRuneLocale
 $1 = 1701737810
 (gdb) print &_DefaultRuneLocale
 $2 = (<data variable, no debug info> *) 0x4c5060
 (gdb)


 -- 
 Hisashi T Fujinaka - htodd@twofifty.com
 BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

Responsible-Changed-From-To: pkg-manager->lib-bug-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sat, 17 Jan 2009 05:15:20 +0000
Responsible-Changed-Why:
Not a pkgsrc problem.


From: christos@zoulas.com (Christos Zoulas)
To: Hisashi T Fujinaka <htodd@twofifty.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, 
	pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Sat, 17 Jan 2009 10:09:27 -0500

 On Jan 16,  8:39pm, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 | Still dumping core:
 | (gdb) bt
 | #0  0x0000000000457f9b in _towctrans_priv ()
 | #1  0x000000000042a2f7 in is_prefixmatch (check=0x69e148, template=0x69c408, igncase=0) at tw.parse.c:700
 | #2  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=1, exp_dir=0x7f7fffffce50, exp_name=0x7f7fffffce10,
 |      target=0x69e148, pat=0x5e4654, flags=16) at tw.parse.c:1061
 | #3  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=1, exp_dir=0x7f7fffffce50, exp_name=0x7f7fffffce10,
 |      target=0x69e148, pat=0x5e4654, flags=64, dir_fd=0x0) at tw.parse.c:1323
 | #4  0x000000000042c0bc in t_search (word=0x7f7fffffcf10, command=RECOGNIZE, looking=1, list_max=1, pat=0x5e4654, suf=0)
 |      at tw.parse.c:1725
 | #5  0x0000000000428ff7 in tenematch (inputline=0x5f4c00, num_read=6, command=RECOGNIZE) at tw.parse.c:301
 | #6  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 | #7  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 | #8  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 | #9  0x0000000000417088 in lex (hp=0x5fccd0) at sh.lex.c:162
 | #10 0x00000000004032c5 in process (catch=1) at sh.c:1925
 | #11 0x000000000040217b in main (argc=0, argv=0x7f7fffffd650) at sh.c:1297
 | (gdb) print *rl
 | No symbol "rl" in current context.
 | (gdb) print rl
 | No symbol "rl" in current context.
 | (gdb) print _DefaultRuneLocale
 | $1 = 1701737810
 | (gdb) print &_DefaultRuneLocale
 | $2 = (<data variable, no debug info> *) 0x4c5060
 | (gdb)
 | 

 In a different place, now we need again libc_g. and the real trace.

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Sat, 17 Jan 2009 09:20:25 -0800 (PST)

 On Sat, 17 Jan 2009, Christos Zoulas wrote:

 > In a different place, now we need again libc_g. and the real trace.

 I forgot the linking step. D'oh.

 (gdb) bt
 #0  0x0000000000457f9b in _towctrans_priv (rl=0x669d90, wc=77, te=0x4c5ce0) at /usr/src/lib/libc/locale/_wctype.c:132
 #1  0x000000000042a2ab in is_prefixmatch (check=0x6d1348, template=0x69c808, igncase=0) at tw.parse.c:699
 #2  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffce10, exp_name=0x7f7fffffcdd0,
      target=0x6d1348, pat=0x5e4654, flags=0) at tw.parse.c:1061
 #3  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=4, exp_dir=0x7f7fffffce10, exp_name=0x7f7fffffcdd0,
      target=0x6d1348, pat=0x5e4654, flags=64, dir_fd=0x618388) at tw.parse.c:1323
 #4  0x000000000042c0bc in t_search (word=0x7f7fffffced0, command=RECOGNIZE, looking=4, list_max=1, pat=0x5e4654, suf=0)
      at tw.parse.c:1725
 #5  0x0000000000428ff7 in tenematch (inputline=0x5f4c00, num_read=4, command=RECOGNIZE) at tw.parse.c:301
 #6  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 #7  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 #8  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 #9  0x0000000000417088 in lex (hp=0x5fccd0) at sh.lex.c:162
 #10 0x00000000004032c5 in process (catch=1) at sh.c:1925
 #11 0x000000000040217b in main (argc=0, argv=0x7f7fffffd618) at sh.c:1297
 (gdb) print *rl
 $1 = {rl_magic = "\000\000\000\000UUUU",
    rl_encoding = "a\000\000\000p\000\000\000_\000\000\000m\000\000\000k\000\000\000d\000\000\000b\000\000\000\000\000\000",
    rl_invalid_rune = 0, rl_runetype = {99, 100, 112, 108, 97, 121, 0, 0, 99, 104, 102, 108, 97, 103, 115, 0, 0, 99, 104, 112, 97,
      115, 115, 0, 0, 115, 117, 109, 0, 0, 109, 100, 50, 0, 0, 99, 107, 115, 117, 109, 0, 0, 109, 100, 52, 0, 0, 109, 100, 53, 0, 0,
      115, 104, 97, 49, 0, 0, 114, 109, 100, 49, 54, 48, 0, 0, 99, 111, 108, 99, 114, 116, 0, 0, 0, 0, 0, 0, 1431655765,
      0 <repeats 66 times>, 6721024, 0 <repeats 82 times>, 1431655765, 0 <repeats 27 times>}, rl_maplower = {0 <repeats 17 times>,
      6725632, 0 <repeats 82 times>, 1431655765, 0 <repeats 44 times>, 6726144, 0 <repeats 82 times>, 1431655765,
      0 <repeats 27 times>}, rl_mapupper = {0 <repeats 17 times>, 6726656, 0 <repeats 82 times>, 1431655765, 0 <repeats 44 times>,
      6727168, 0 <repeats 82 times>, 1431655765, 0 <repeats 27 times>}, rl_runetype_ext = {rr_nranges = 0, rr_rune_ranges = 0x0},
    rl_maplower_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_mapupper_ext = {rr_nranges = 0, rr_rune_ranges = 0x0},
    rl_variable = 0x0, rl_variable_len = 0, rl_codeset = 0x66a800 "", rl_citrus_ctype = 0x0, rl_wctrans = {{te_name = 0x0,
        te_cached = 0x0, te_extmap = 0x0}, {te_name = 0x0, te_cached = 0x0, te_extmap = 0x0}}, rl_wctype = {{te_name = 0x0,
        te_mask = 0} <repeats 12 times>}, rl_ctype_tab = 0x0, rl_tolower_tab = 0x0, rl_toupper_tab = 0x0}
 (gdb) print rl
 $2 = (const _NBRuneLocale *) 0x669d90
 (gdb) print _DefaultRuneLocale
 $3 = {rl_magic = "RuneCT10", rl_encoding = "NONE", '\0' <repeats 27 times>, rl_invalid_rune = 4294967293, rl_runetype = {512, 512,
      512, 512, 512, 512, 512, 512, 512, 147968, 16896, 16896, 16896, 16896, 512 <repeats 18 times>, 1074151424,
      1074014208 <repeats 15 times>, 1074072576, 1074072577, 1074072578, 1074072579, 1074072580, 1074072581, 1074072582, 1074072583,
      1074072584, 1074072585, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074104586,
      1074104587, 1074104588, 1074104589, 1074104590, 1074104591, 1074039040 <repeats 20 times>, 1074014208, 1074014208, 1074014208,
      1074014208, 1074014208, 1074014208, 1074075914, 1074075915, 1074075916, 1074075917, 1074075918, 1074075919,
      1074010368 <repeats 20 times>, 1074014208, 1074014208, 1074014208, 1074014208, 512, 0 <repeats 128 times>}, rl_maplower = {0,
      1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
      35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 97,
      98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 91,
      92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
      119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
      144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
      169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
      194, 195, 196, 197, 198, 199...}, rl_mapupper = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
      22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
      53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
      84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
      83, 84, 85, 86, 87, 88, 89, 90, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
      142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
      167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
      192, 193, 194, 195, 196, 197, 198, 199...}, rl_runetype_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_maplower_ext = {
      rr_nranges = 0, rr_rune_ranges = 0x0}, rl_mapupper_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_variable = 0x0,
    rl_variable_len = 0, rl_codeset = 0x4be75f "646", rl_citrus_ctype = 0x5e1970, rl_wctrans = {{te_name = 0x0, te_cached = 0x0,
        te_extmap = 0x0}, {te_name = 0x0, te_cached = 0x0, te_extmap = 0x0}}, rl_wctype = {{te_name = 0x4bf967 "alnum",
        te_mask = 1280}, {te_name = 0x4bf96d "alpha", te_mask = 256}, {te_name = 0x4bf973 "blank", te_mask = 131072}, {
        te_name = 0x4bf979 "cntrl", te_mask = 512}, {te_name = 0x4bf992 "digit", te_mask = 1024}, {te_name = 0x4bf97f "graph",
        te_mask = 2048}, {te_name = 0x4beb00 "lower", te_mask = 4096}, {te_name = 0x4c293c "print", te_mask = 262144}, {
        te_name = 0x4bf985 "punct", te_mask = 8192}, {te_name = 0x4bf98b "space", te_mask = 16384}, {te_name = 0x4beb08 "upper",
        te_mask = 32768}, {te_name = 0x4bf991 "xdigit", te_mask = 65536}}, rl_ctype_tab = 0x4c6e80 "", rl_tolower_tab = 0x4c58a0,
    rl_toupper_tab = 0x4c3220}
 (gdb) print &_DefaultRuneLocale
 $4 = (const _NBRuneLocale *) 0x4bf9a0

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, lib-bug-people@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, htodd@twofifty.com
Cc: 
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Sat, 17 Jan 2009 12:56:23 -0500

 On Jan 17,  5:25pm, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 cvs update libc...

 christos

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, lib-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Sun, 18 Jan 2009 08:56:42 -0800 (PST)

 On Sat, 17 Jan 2009, Christos Zoulas wrote:

 > cvs update libc...

 (gdb) bt
 #0  0x0000000000457f9b in _towctrans_priv (rl=0x668990, wc=77, te=0x4c0640) at /usr/src/lib/libc/locale/_wctype.c:132
 #1  0x000000000042a2ab in is_prefixmatch (check=0x69c168, template=0x69ac08, igncase=0) at tw.parse.c:699
 #2  0x000000000042ae1a in tw_collect_items (command=RECOGNIZE, looking=1, exp_dir=0x7f7fffffd4e0, exp_name=0x7f7fffffd4a0,
      target=0x69c168, pat=0x5e4b74, flags=16) at tw.parse.c:1061
 #3  0x000000000042b5a5 in tw_collect (command=RECOGNIZE, looking=1, exp_dir=0x7f7fffffd4e0, exp_name=0x7f7fffffd4a0,
      target=0x69c168, pat=0x5e4b74, flags=64, dir_fd=0x0) at tw.parse.c:1323
 #4  0x000000000042c0bc in t_search (word=0x7f7fffffd5a0, command=RECOGNIZE, looking=1, list_max=1, pat=0x5e4b74, suf=0)
      at tw.parse.c:1725
 #5  0x0000000000428ff7 in tenematch (inputline=0x5f5100, num_read=1, command=RECOGNIZE) at tw.parse.c:301
 #6  0x000000000043d6ff in Inputl () at ed.inputl.c:407
 #7  0x000000000041a8b0 in bgetc () at sh.lex.c:1653
 #8  0x000000000041a179 in readc (wanteof=0) at sh.lex.c:1414
 #9  0x0000000000417088 in lex (hp=0x5fd1d0) at sh.lex.c:162
 #10 0x00000000004032c5 in process (catch=1) at sh.c:1925
 #11 0x000000000040217b in main (argc=0, argv=0x7f7fffffdce8) at sh.c:1297
 (gdb) print *rl
 $1 = {rl_magic = "\000\000\000\000UUUU",
    rl_encoding = "a\000\000\000p\000\000\000_\000\000\000m\000\000\000k\000\000\000d\000\000\000b\000\000\000\000\000\000",
    rl_invalid_rune = 0, rl_runetype = {99, 100, 112, 108, 97, 121, 0, 0, 99, 104, 102, 108, 97, 103, 115, 0, 0, 99, 104, 112, 97,
      115, 115, 0, 0, 115, 117, 109, 0, 0, 109, 100, 50, 0, 0, 99, 107, 115, 117, 109, 0, 0, 109, 100, 52, 0, 0, 109, 100, 53, 0, 0,
      115, 104, 97, 49, 0, 0, 114, 109, 100, 49, 54, 48, 0, 0, 99, 111, 108, 99, 114, 116, 0, 0, 0, 0, 0, 0, 1431655765,
      0 <repeats 66 times>, 6715904, 0 <repeats 82 times>, 1431655765, 0 <repeats 27 times>}, rl_maplower = {0 <repeats 17 times>,
      6720512, 0 <repeats 82 times>, 1431655765, 0 <repeats 44 times>, 6721024, 0 <repeats 82 times>, 1431655765,
      0 <repeats 27 times>}, rl_mapupper = {0 <repeats 17 times>, 6721536, 0 <repeats 82 times>, 1431655765, 0 <repeats 44 times>,
      6722048, 0 <repeats 82 times>, 1431655765, 0 <repeats 27 times>}, rl_runetype_ext = {rr_nranges = 0, rr_rune_ranges = 0x0},
    rl_maplower_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_mapupper_ext = {rr_nranges = 0, rr_rune_ranges = 0x0},
    rl_variable = 0x0, rl_variable_len = 0, rl_codeset = 0x669400 "", rl_citrus_ctype = 0x0, rl_wctrans = {{te_name = 0x0,
        te_cached = 0x0, te_extmap = 0x0}, {te_name = 0x0, te_cached = 0x0, te_extmap = 0x0}}, rl_wctype = {{te_name = 0x0,
        te_mask = 0} <repeats 12 times>}, rl_ctype_tab = 0x0, rl_tolower_tab = 0x0, rl_toupper_tab = 0x0}
 (gdb) print _DefaultRuneLocale
 $3 = {rl_magic = "RuneCT10", rl_encoding = "NONE", '\0' <repeats 27 times>, rl_invalid_rune = 4294967293, rl_runetype = {512, 512,
      512, 512, 512, 512, 512, 512, 512, 147968, 16896, 16896, 16896, 16896, 512 <repeats 18 times>, 1074151424,
      1074014208 <repeats 15 times>, 1074072576, 1074072577, 1074072578, 1074072579, 1074072580, 1074072581, 1074072582, 1074072583,
      1074072584, 1074072585, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074014208, 1074104586,
      1074104587, 1074104588, 1074104589, 1074104590, 1074104591, 1074039040 <repeats 20 times>, 1074014208, 1074014208, 1074014208,
      1074014208, 1074014208, 1074014208, 1074075914, 1074075915, 1074075916, 1074075917, 1074075918, 1074075919,
      1074010368 <repeats 20 times>, 1074014208, 1074014208, 1074014208, 1074014208, 512, 0 <repeats 128 times>}, rl_maplower = {0,
      1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
      35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 97,
      98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 91,
      92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
      119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
      144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
      169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
      194, 195, 196, 197, 198, 199...}, rl_mapupper = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
      22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
      53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
      84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
      83, 84, 85, 86, 87, 88, 89, 90, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
      142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
      167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
      192, 193, 194, 195, 196, 197, 198, 199...}, rl_runetype_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_maplower_ext = {
      rr_nranges = 0, rr_rune_ranges = 0x0}, rl_mapupper_ext = {rr_nranges = 0, rr_rune_ranges = 0x0}, rl_variable = 0x0,
    rl_variable_len = 0, rl_codeset = 0x4be77f "646", rl_citrus_ctype = 0x5e1990, rl_wctrans = {{te_name = 0x0, te_cached = 0x0,
        te_extmap = 0x0}, {te_name = 0x0, te_cached = 0x0, te_extmap = 0x0}}, rl_wctype = {{te_name = 0x4bf987 "alnum",
        te_mask = 1280}, {te_name = 0x4bf98d "alpha", te_mask = 256}, {te_name = 0x4bf993 "blank", te_mask = 131072}, {
        te_name = 0x4bf999 "cntrl", te_mask = 512}, {te_name = 0x4bf9b2 "digit", te_mask = 1024}, {te_name = 0x4bf99f "graph",
        te_mask = 2048}, {te_name = 0x4beb20 "lower", te_mask = 4096}, {te_name = 0x4c295c "print", te_mask = 262144}, {
        te_name = 0x4bf9a5 "punct", te_mask = 8192}, {te_name = 0x4bf9ab "space", te_mask = 16384}, {te_name = 0x4beb28 "upper",
        te_mask = 32768}, {te_name = 0x4bf9b1 "xdigit", te_mask = 65536}}, rl_ctype_tab = 0x4c6ea0 "", rl_tolower_tab = 0x4c58c0,
    rl_toupper_tab = 0x4c3240}
 (gdb) print &_DefaultRuneLocale
 $4 = (const _NBRuneLocale *) 0x4bf9c0

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, lib-bug-people@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, htodd@twofifty.com
Cc: 
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Sun, 18 Jan 2009 14:54:02 -0500

 On Jan 18,  5:00pm, htodd@twofifty.com (Hisashi T Fujinaka) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 How about now? I wish I could replicate your problem here.

 christos

From: Takehiko NOZAKI <tnozaki@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40411 CVS commit: src/lib/libc
Date: Sun, 18 Jan 2009 22:03:19 +0000 (UTC)

 Module Name:	src
 Committed By:	tnozaki
 Date:		Sun Jan 18 22:03:19 UTC 2009

 Modified Files:
 	src/lib/libc/citrus: citrus_lc_ctype.c
 	src/lib/libc/locale: _wctrans.c _wctrans_local.h _wctype.c
 	    global_locale.c iswctype_mb.c rune.h runetable.c

 Log Message:
 PR lib/40411, nuke wctrans_init(). lazy initialization is not good idea.
 statically initialized _DefaultRuneLocale.rl_wctrans field.
 so we can re-const-ify _DefaultRuneLocale.

 pkgsrc/shells/standalone-tcsh should be rebuild,
 because it's staticaly linked binary.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 src/lib/libc/citrus/citrus_lc_ctype.c
 cvs rdiff -r1.12 -r1.13 src/lib/libc/locale/_wctrans.c
 cvs rdiff -r1.6 -r1.7 src/lib/libc/locale/_wctrans_local.h
 cvs rdiff -r1.4 -r1.5 src/lib/libc/locale/_wctype.c \
     src/lib/libc/locale/iswctype_mb.c
 cvs rdiff -r1.2 -r1.3 src/lib/libc/locale/global_locale.c
 cvs rdiff -r1.16 -r1.17 src/lib/libc/locale/rune.h
 cvs rdiff -r1.20 -r1.21 src/lib/libc/locale/runetable.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Takehiko NOZAKI <takehiko.nozaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
	htodd@twofifty.com
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some 
	filenames
Date: Mon, 19 Jan 2009 07:13:55 +0900

 hi, all.

 i nuked wctrans_init(), because it's not good idea(make tow* func
 little bit slower).
 we can statically initialize _DefaultRuneLocale.rl_wctrans field
 and dynamically allocated _RuneLocale also can do it
 at their constructor_citrus_LC_CTYPE_create_impl().

 pkgsrc/shells/standalone-tcsh must be rebuilded,
 because it is statically linked binary.


 very truly yours.
 -- 
 Takehiko NOZAKI<takehiko.nozaki@gmail.com>

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: Takehiko NOZAKI <takehiko.nozaki@gmail.com>
Cc: gnats-bugs@netbsd.org, lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
        netbsd-bugs@netbsd.org
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some
 filenames
Date: Sun, 18 Jan 2009 16:16:56 -0800 (PST)

 On Mon, 19 Jan 2009, Takehiko NOZAKI wrote:

 > i nuked wctrans_init(), because it's not good idea(make tow* func
 > little bit slower).
 > we can statically initialize _DefaultRuneLocale.rl_wctrans field
 > and dynamically allocated _RuneLocale also can do it
 > at their constructor_citrus_LC_CTYPE_create_impl().
 >
 > pkgsrc/shells/standalone-tcsh must be rebuilded,
 > because it is statically linked binary.

 So far, it works fine.

From: christos@zoulas.com (Christos Zoulas)
To: Takehiko NOZAKI <takehiko.nozaki@gmail.com>, gnats-bugs@netbsd.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org, 
	netbsd-bugs@netbsd.org, htodd@twofifty.com
Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
Date: Sun, 18 Jan 2009 19:45:43 -0500

 On Jan 19,  7:13am, takehiko.nozaki@gmail.com (Takehiko NOZAKI) wrote:
 -- Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing som

 | hi, all.
 | 
 | i nuked wctrans_init(), because it's not good idea(make tow* func
 | little bit slower).
 | we can statically initialize _DefaultRuneLocale.rl_wctrans field
 | and dynamically allocated _RuneLocale also can do it
 | at their constructor_citrus_LC_CTYPE_create_impl().
 | 
 | pkgsrc/shells/standalone-tcsh must be rebuilded,
 | because it is statically linked binary.
 | 

 Thanks for looking into it. 

 christos

From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40411 CVS commit: [netbsd-5] src/lib/libc
Date: Thu, 22 Jan 2009 22:04:29 +0000 (UTC)

 Module Name:	src
 Committed By:	snj
 Date:		Thu Jan 22 22:04:29 UTC 2009

 Modified Files:
 	src/lib/libc/citrus [netbsd-5]: citrus_lc_ctype.c
 	src/lib/libc/locale [netbsd-5]: _wctrans.c _wctrans_local.h _wctype.c
 	    global_locale.c iswctype_mb.c runetable.c

 Log Message:
 Pull up following revision(s) (requested by christos in ticket #299):
 	lib/libc/citrus/citrus_lc_ctype.c: revision 1.3
 	lib/libc/locale/_wctrans.c: revision 1.13
 	lib/libc/locale/_wctrans_local.h: revision 1.7 via patch
 	lib/libc/locale/_wctype.c: revision 1.5
 	lib/libc/locale/iswctype_mb.c: revision 1.5
 	lib/libc/locale/global_locale.c: revision 1.3
 	lib/libc/locale/runetable.c: revision 1.21 via patch
 PR lib/40411, nuke wctrans_init(). lazy initialization is not good idea.
 statically initialized _DefaultRuneLocale.rl_wctrans field.
 so we can re-const-ify _DefaultRuneLocale.
 pkgsrc/shells/standalone-tcsh should be rebuild,
 because it's staticaly linked binary.


 To generate a diff of this commit:
 cvs rdiff -r1.2.2.2 -r1.2.2.3 src/lib/libc/citrus/citrus_lc_ctype.c
 cvs rdiff -r1.6.32.1 -r1.6.32.2 src/lib/libc/locale/_wctrans.c
 cvs rdiff -r1.2.38.1 -r1.2.38.2 src/lib/libc/locale/_wctrans_local.h
 cvs rdiff -r1.2.2.2 -r1.2.2.3 src/lib/libc/locale/_wctype.c \
     src/lib/libc/locale/global_locale.c src/lib/libc/locale/iswctype_mb.c
 cvs rdiff -r1.17.4.1 -r1.17.4.2 src/lib/libc/locale/runetable.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: re: lib/40411
Date: Tue, 15 Feb 2011 08:20:16 -0800 (PST)

 Please close. I think this was fixed a year ago.

 -- 
 Hisashi T Fujinaka - htodd@twofifty.com
 BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 15 Feb 2011 16:36:22 +0000
State-Changed-Why:
fixed a year ago.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.