From owner-FreeBSD-users-jp@jp.FreeBSD.org Sun Jan 21 18:36:22 2007
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id l0L9aML75236;
	Sun, 21 Jan 2007 18:36:22 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from d4407.kankyo-u.ac.jp ([2001:3e0:a84:2::2])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet6 id l0L9aLw75231
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 21 Jan 2007 18:36:21 +0900 (JST)
	(envelope-from nakaji@jp.freebsd.org)
Received: from roddy.4407.kankyo-u.ac.jp.kankyo-u.ac.jp (localhost [IPv6:::1])
	by d4407.kankyo-u.ac.jp (8.13.8/8.13.8) with ESMTP id l0L9aBt4064612
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 21 Jan 2007 18:36:11 +0900 (JST)
	(envelope-from nakaji@jp.freebsd.org)
From: NAKAJI Hiroyuki <nakaji@jp.FreeBSD.org>
To: FreeBSD-users-jp@jp.FreeBSD.org
Organization: Tomonokai
References: <200701210424.NAA13962@uketsuke.aji-oh.net>
In-Reply-To: <200701210424.NAA13962@uketsuke.aji-oh.net> (AJI Tanaka's message
	of "Sun\, 21 Jan 2007 13\:24\:31 +0900")
Message-ID: <87ps983eno.fsf@roddy.4407.kankyo-u.ac.jp>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
X-Virus-Scanned: by amavisd-new
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Sun, 21 Jan 2007 18:36:11 +0900
X-Sequence: FreeBSD-users-jp 90285
Subject: [FreeBSD-users-jp 90285] Re: Mudflap w/ pthreads on FreeBSD6.1R doesn't work (gcc41)
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: nakaji@jp.freebsd.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+060209

$BCf<#!wD;<h$G$9!#(B

>>>>> In <200701210424.NAA13962@uketsuke.aji-oh.net> 
>>>>>	aji@aji-oh.net (AJI Tanaka) wrote:

> $B!V(Bcurrent$B$J$iF0$/$h!W$J>pJs$G$b$$$$$N$G(B, $B65$($F$$$?$@$1$l$P9,$$$G$9(B.

$B;DG0$J$*CN$i$;$G$9$,!"(B

FreeBSD 7.0-CURRENT #76: Wed Jan 17 14:44:22 JST 2007

$ gcc42 -v
Using built-in specs.
Target: i386-portbld-freebsd7.0
Configured with: ./..//gcc-4.2-20070117/configure --disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local --with-gmp=/usr/local --program-suffix=42 --libdir=/usr/local/lib/gcc-4.2.0 --with-gxx-include-dir=/usr/local/lib/gcc-4.2.0/include/c++/ --infodir=/usr/local/info/gcc42 --disable-rpath --prefix=/usr/local i386-portbld-freebsd7.0
Thread model: posix
gcc version 4.2.0 20070117 (prerelease)

$B$G$b%;%0%a%s%H%(%i!<$K$J$j$^$7$?!#(B

(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/nakaji/lang/c/a.out
warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100280]
Fatal error 'Cannot initialize spinlock extra' at line 145 in file /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 100239]
0x281724d0 in pthread_sigmask () from /lib/libpthread.so.2
(gdb) bt
#0  0x281724d0 in pthread_sigmask () from /lib/libpthread.so.2
#1  0x28172480 in sigprocmask () from /lib/libpthread.so.2
#2  0x282563fc in abort () from /lib/libc.so.7
#3  0x28186efb in pthread_atfork () from /lib/libpthread.so.2
#4  0x28171862 in _spinlock_debug () from /lib/libpthread.so.2
#5  0x2818240b in pthread_join () from /lib/libpthread.so.2
#6  0x2817ba2a in pthread_mutex_lock () from /lib/libpthread.so.2
#7  0x2828a3af in __register_frame_info_bases (begin=0x2828c2e8, 
    ob=0x2828cb8c, tbase=0x0, dbase=0x0) at gthr-posix.h:549
#8  0x2828a3f6 in __register_frame_info (begin=0x2828c2e8, ob=0x2828cb8c)
    at .././..//gcc-4.1-20070108/gcc/unwind-dw2-fde.c:107
#9  0x2828480b in frame_dummy () from /usr/local/lib/gcc-4.1.2/libgcc_s.so.1
#10 0x28284590 in _init () from /usr/local/lib/gcc-4.1.2/libgcc_s.so.1
#11 0x28077320 in ?? ()
#12 0x2806f118 in ?? () from /libexec/ld-elf.so.1
#13 0xbfbfe378 in ?? ()
#14 0x2804f1d1 in _rtld_error () from /libexec/ld-elf.so.1
#15 0x28052e8b in _rtld () from /libexec/ld-elf.so.1
#16 0x2804e93a in .rtld_start () from /libexec/ld-elf.so.1
-- 
NAKAJI Hiroyuki ($BCf<#(B $B909T(B)
