netbsd-bugs@netbsd.org
[Top] [All Lists]

Re: pkg/40411: standalone-tcsh dumps core when tab completing some filen

Subject: Re: pkg/40411: standalone-tcsh dumps core when tab completing some filenames
From: Hisashi T Fujinaka
Date: Sun, 18 Jan 2009 17:00:08 +0000 UTC
The following reply was made to PR lib/40411; it has been noted by GNATS.

From: Hisashi T Fujinaka <htodd@xxxxxxxxxxxx>
To: Christos Zoulas <christos@xxxxxxxxxx>
Cc: gnats-bugs@xxxxxxxxxx, lib-bug-people@xxxxxxxxxx, gnats-admin@xxxxxxxxxx,
        netbsd-bugs@xxxxxxxxxx
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
 

<Prev in Thread] Current Thread [Next in Thread>