中治@鳥取です。

>>>>> In <[EMAIL PROTECTED]> 
>>>>>   [EMAIL PROTECTED] (AJI Tanaka) wrote:

> 「currentなら動くよ」な情報でもいいので, 教えていただければ幸いです.

残念なお知らせですが、

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)

でもセグメントエラーになりました。

(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 (中治 弘行)

メールによる返信