pkgsrc-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



On Fri, 16 Jan 2009, Christos Zoulas wrote:

On Jan 16,  7:55am, htodd%twofifty.com@localhost (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


Home | Main Index | Thread Index | Old Index