From owner-FreeBSD-users-jp@jp.FreeBSD.org Mon May 16 13:28:11 2005
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id j4G4SBp21591;
	Mon, 16 May 2005 13:28:11 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from mail530.nifty.com (mail530.nifty.com [202.248.37.252])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id j4G4SBX21586
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Mon, 16 May 2005 13:28:11 +0900 (JST)
	(envelope-from sakatuba@nifty.com)
Received: from smtp.nifty.com ([203.180.59.5]) (authenticated)
	by mail530.nifty.com with ESMTP id j4G4Rxst007183
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Mon, 16 May 2005 13:28:00 +0900
Authentication-Results: mail530.nifty.com from=sakatuba@nifty.com; sender-id=neutral; spf=neutral
Message-Id: <200505160428.j4G4Rxst007183@mail530.nifty.com>
From: Tsubasa Sakamoto <sakatuba@nifty.com>
X-Mailer: EdMax Ver2.85.5F
MIME-Version: 1.0
To: FreeBSD-users-jp@jp.FreeBSD.org
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
In-Reply-To: <050516113726.M0197231@shimako.imasy.or.jp>
References: <050516113726.M0197231@shimako.imasy.or.jp>
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 16 May 2005 13:27:56 +0900
X-Sequence: FreeBSD-users-jp 84531
Subject: [FreeBSD-users-jp 84531] Re: =?ISO-2022-JP?B?GyRCQTRCThsoQg==?=
 =?ISO-2022-JP?B?GyRCRSobKEI=?= make
 =?ISO-2022-JP?B?GyRCJCwkIiRkJDckJD51NjcbKEI=?= 
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: sakatuba@nifty.com
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+050320

$B$I$&$b!#:dK\!w2#IM$G$9!#(B

$B$4=u8@$"$j$,$H$&$4$6$$$^$9!#(B

$BAaB.;n$7$F$_$^$7$?!#(B

> sed -e 's/[	]\+/	/g' < /usr/src/contrib/ncurses/include/Caps > /dev/null
>            
> $B$O$G$-$^$9$+!)(B []$B$N$J$+$O6uGr$H%?%V!"8e$m$N(B //$B$N$J$+$O%?%V$G$9!#(B

$B%3%T%Z$G$ODL$i$J$$$N$G!"(B
sed -e 's/[ \t]\+/\t/g' < /usr/src/contrib/ncurses/include/Caps
$B$H$d$C$F$_$^$7$?!#(B

$B$3$l$ODL$j$^$9!#(B
core$B$b$G$-$^$;$s!#(B



> $B4X78$J$$$H$O;W$$$^$9$,!"(B/usr/bin/sed $B0J30$K(B sed $B$OF~$C$F$$$^$9$+!)(B

xx#find / -name sed -print
/usr/src/usr.bin/sed
/usr/src/tools/regression/usr.bin/sed
/usr/bin/sed
/usr/ports/japanese/sed
/usr/obj/usr/src/usr.bin/sed
/stand/sed
/tmp/install.PC0OVhJw/sed
/tmp/install.W7l2BjzK/sed
/tmp/install-oldk.LTc/sed

xx# find / -name sed -print -exec ls -l {} \;
/usr/src/usr.bin/sed
total 94
-rw-r--r--  1 root  wheel    189  6 17  2002 Makefile
-rw-r--r--  1 root  wheel   8076  5 27  1994 POSIX
drwxr-xr-x  2 root  wheel    512  5 15 02:13 TEST
-rw-r--r--  1 root  wheel  22299  8 10  2004 compile.c
-rw-r--r--  1 root  wheel   4281  8 10  2004 defs.h
-rw-r--r--  1 root  wheel   2479  8 10  2004 extern.h
-rw-r--r--  1 root  wheel  10494  8 10  2004 main.c
-rw-r--r--  1 root  wheel   2573  8 10  2004 misc.c
-rw-r--r--  1 root  wheel  17101  8 10  2004 process.c
-rw-r--r--  1 root  wheel  15332  2 26 22:44 sed.1
/usr/src/tools/regression/usr.bin/sed
total 24
-rw-r--r--  1 root  wheel  180  6 24  2002 Makefile
-rw-r--r--  1 root  wheel   40  4 21  2002 regress.G.out
-rw-r--r--  1 root  wheel   72  4 21  2002 regress.P.out
-rw-r--r--  1 root  wheel   36  6 28  2002 regress.bcb.out
-rw-r--r--  1 root  wheel   36  4 21  2002 regress.in
-rw-r--r--  1 root  wheel   13  6 28  2002 regress.psl.out
-rw-r--r--  1 root  wheel    5  6  5  2003 regress.s3.out
-rw-r--r--  1 root  wheel    5  6  5  2003 regress.s4.out
-rw-r--r--  1 root  wheel    4  6  5  2003 regress.s5.out
-rw-r--r--  1 root  wheel    8  6  5  2003 regress.sg.out
-rw-r--r--  1 root  wheel  598  6  5  2003 regress.sh
-rw-r--r--  1 root  wheel    3  6 28  2002 regress.y.out
/usr/bin/sed
-r-xr-xr-x  1 root  wheel  27220  5 15 13:33 /usr/bin/sed
/usr/ports/japanese/sed
total 8
-rw-r--r--  1 root  wheel  839  2  4  2004 Makefile
-rw-r--r--  1 root  wheel  179  1 29  2004 distinfo
-rw-r--r--  1 root  wheel  287  9  7  1999 pkg-descr
-rw-r--r--  1 root  wheel  244  3  7  2001 pkg-plist
/usr/obj/usr/src/usr.bin/sed
total 0
/stand/sed
-r-xr-xr-x  30 root  wheel  2059876  5  8 19:24 /stand/sed
/tmp/install.PC0OVhJw/sed
-r-xr-xr-x  1 root  wheel  27220  1 19 12:17 /tmp/install.PC0OVhJw/sed
/tmp/install.W7l2BjzK/sed
-r-xr-xr-x  1 root  wheel  27220  5 12 18:44 /tmp/install.W7l2BjzK/sed
/tmp/install-oldk.LTc/sed
-r-xr-xr-x  1 root  wheel  27220  5  8 16:04 /tmp/install-oldk.LTc/sed
xx#

$B$&!<$s!"<B9T2DG=$J$N$O(B/usr/bin/sed$B$7$+$J$$$_$?$$$G$9!#(B
which sed$B$b(B/usr/bin/sed$B$r;X$7$^$9!#(B


> 
> 
> core $B$,$"$k$h$&$G$7$?$i!"(B
> 
> gdb /usr/bin/sed sed.core
> (gdb) bt
> 
> $B$9$k$H$I$NJU$GMn$A$F$$$^$9$+!#(B

xx# cd usr/src/lib/libncurses
xx# ls
MKterm.h.awk    codeftr         init_keytry.h   nameftr         nomacros.h      sed.core        term.h
boolcodes       curses.h        keys.list       namehdr         numcodes        strcodes        termcap.h
boolfnames      curses.head     make_hash       names.c         numfnames       strfnames       unctrl.h
boolnames       hashsize.h      make_keys       ncurses_def.h   numnames        strnames
xx# gdb /usr/bin/sed sed.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `sed'.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x280a685c in clearerr () from /lib/libc.so.5
(gdb) bt
#0  0x280a685c in clearerr () from /lib/libc.so.5
#1  0x280a51b2 in clearerr () from /lib/libc.so.5
#2  0x280a912f in regexec () from /lib/libc.so.5
#3  0x0804cced in ?? ()
#4  0x08053040 in ?? ()
#5  0x08056800 in ?? ()
#6  0x00000004 in ?? ()
#7  0x08052040 in ?? ()
#8  0x00000004 in ?? ()
#9  0x0000000b in ?? ()
#10 0x00000800 in ?? ()
#11 0x08056800 in ?? ()
#12 0x00000206 in ?? ()
#13 0x08052034 in ?? ()
#14 0xbfbfe848 in ?? ()
#15 0x0804c1a0 in ?? ()
#16 0x08053040 in ?? ()
#17 0x08056800 in ?? ()
#18 0x00000000 in ?? ()
#19 0x00000000 in ?? ()
#20 0x00000028 in ?? ()
#21 0x08050a98 in __isthreaded ()
#22 0xbfbfe848 in ?? ()
#23 0x0804b705 in ?? ()
#24 0x08050a98 in __isthreaded ()
#25 0x08057000 in ?? ()
#26 0x00000028 in ?? ()
#27 0x00000001 in ?? ()
#28 0x08057000 in ?? ()
#29 0x0000000a in ?? ()
#30 0x28056cba in rlock_release () from /libexec/ld-elf.so.1
Previous frame inner to this frame (corrupt stack?)
(gdb)



$B!D!D$3$l$NFI$_J}$,NI$/$o$+$i$J$$$N$G62=L$G$9$,!"(Blib/libc.so.5$B$NCf$GMn$A$F$$$k$H$$$&;v$G$7$g$&$+!)!)(B


-----
$B:dK\!w2#IM(B
