NetBSD-Bugs archive

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

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



The following reply was made to PR lib/40411; it has been noted by GNATS.

From: Hisashi T Fujinaka <htodd%twofifty.com@localhost>
To: Christos Zoulas <christos%zoulas.com@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, pkg-manager%NetBSD.org@localhost, 
gnats-admin%NetBSD.org@localhost,
        pkgsrc-bugs%NetBSD.org@localhost
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
 


Home | Main Index | Thread Index | Old Index