Test-all $BCf$K%"%\!<%H(B

e$B$-$7$b$H$G$9e(B

e$B<j85$Ne(B AMD64 FreeBSD8 e$B$G!“e(Btrunk e$B$N%j%S%8%g%se(B 27716
e$B0J9_$Ge(B test-all e$BCf$Ke(B
e$B%”%!<%H$7$^$9!#e(B

e$B0J2<$Oe(B HEAD e$B$G$N7k2L$G$9!#e(B

$ make test-all
./miniruby -I…/lib -I.ext/common -I./- -r…/ext/purelib.rb
…/tool/runruby.rb --extout=.ext – “…/test/runner.rb”
Loaded suite …/test/runner
Started
…(snip)
ruby 1.9.3dev (2010-05-15 trunk 27800) [x86_64-freebsd8.0]

– control frame ----------
c:0014 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC :binding
c:0013 p:0051 s:0051 b:0049 l:000048 d:000048 METHOD
/export/home/ksmakoto/ruby-trunk/test/ruby/test_proc.rb:147
c:0012 p:0063 s:0045 b:0045 l:001970 d:001970 METHOD
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:680
c:0011 p:0091 s:0039 b:0039 l:001958 d:000038 BLOCK
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:641
c:0010 p:---- s:0034 b:0034 l:000033 d:000033 FINISH
c:0009 p:---- s:0032 b:0032 l:000031 d:000031 CFUNC :each
c:0008 p:0026 s:0029 b:0029 l:001958 d:000028 BLOCK
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:635
c:0007 p:---- s:0026 b:0026 l:000025 d:000025 FINISH
c:0006 p:---- s:0024 b:0024 l:000023 d:000023 CFUNC :each
c:0005 p:0082 s:0021 b:0021 l:001958 d:001958 METHOD
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:634
c:0004 p:0188 s:0016 b:0016 l:000a78 d:000a78 METHOD
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:594
c:0003 p:0041 s:0007 b:0007 l:000b88 d:001770 BLOCK
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:492
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002708 d:002708 TOP

– Ruby level backtrace information

/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:492:in block in autorun' /export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:594:in run’
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:634:in
run_test_suites' /export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:634:in each’
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:635:in block in run_test_suites' /export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:635:in each’
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:641:in block (2 levels) in run_test_suites' /export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:680:in run’
/export/home/ksmakoto/ruby-trunk/test/ruby/test_proc.rb:147:in
test_method_to_proc' /export/home/ksmakoto/ruby-trunk/test/ruby/test_proc.rb:147:in binding’

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

*** Signal 6

Stop in /export/home/ksmakoto/ruby-trunk/BUILD.

$ gdb ./ruby19 ruby19.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 “amd64-marcel-freebsd”…
Core was generated by `ruby19’.
Program terminated with signal 6, Aborted.
Reading symbols from
/export/home/ksmakoto/ruby-trunk/BUILD/libruby.so.19…done.
Loaded symbols for /export/home/ksmakoto/ruby-trunk/BUILD/libruby.so.19
Reading symbols from /lib/libthr.so.3…done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/lib/librt.so.1…done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libcrypt.so.5…done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /lib/libm.so.5…done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libc.so.7…done.
Loaded symbols for /lib/libc.so.7
Reading symbols from
/export/home/ksmakoto/ruby-trunk/BUILD/.ext/x86_64-freebsd8.0/enc/encdb.so…done.
Loaded symbols for
/export/home/ksmakoto/ruby-trunk/BUILD/.ext/x86_64-freebsd8.0/enc/encdb.so
Reading symbols from
/export/home/ksmakoto/ruby-trunk/BUILD/.ext/x86_64-freebsd8.0/enc/trans/transdb.so…done.
Loaded symbols for
/export/home/ksmakoto/ruby-trunk/BUILD/.ext/x86_64-freebsd8.0/enc/trans/transdb.so
(snip)
Reading symbols from
/export/home/ksmakoto/ruby-trunk/BUILD/.ext/x86_64-freebsd8.0/enc/trans/gbk.so…done.
Loaded symbols for
/export/home/ksmakoto/ruby-trunk/BUILD/.ext/x86_64-freebsd8.0/enc/trans/gbk.so
Reading symbols from
/export/home/ksmakoto/ruby-trunk/BUILD/.ext/x86_64-freebsd8.0/enc/trans/chinese.so…done.
Loaded symbols for
/export/home/ksmakoto/ruby-trunk/BUILD/.ext/x86_64-freebsd8.0/enc/trans/chinese.so
Reading symbols from /libexec/ld-elf.so.1…done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000800dfe1ec in thr_kill () from /lib/libc.so.7
[New Thread 812f20980 (LWP 100679)]
[New Thread 813b96a40 (LWP 101092)]
[New Thread 812f21240 (LWP 101091)]
[New Thread 80cb0c440 (LWP 101093)]
[New Thread 8109507c0 (LWP 101089)]
[New Thread 80e6af580 (LWP 101090)]
[New Thread 80cb0cec0 (LWP 101087)]
[New Thread 80e6afac0 (LWP 101088)]
[New Thread 80e6af040 (LWP 101086)]
[New Thread 810950440 (LWP 101085)]
[New Thread 80e6af3c0 (LWP 101084)]
[New Thread 80cb096c0 (LWP 101083)]
[New Thread 80100ae40 (LWP 101081)]
[New Thread 80cb0c980 (LWP 101082)]
[New Thread 80cb0c280 (LWP 101080)]
[New Thread 80e6afc80 (LWP 101078)]
[New Thread 80e6af900 (LWP 101079)]
[New Thread 80cb0bb80 (LWP 101077)]
[New Thread 80cb0bf00 (LWP 101076)]
[New Thread 80cb08fc0 (LWP 101075)]
[New Thread 80e6af200 (LWP 101074)]
[New Thread 809fd9340 (LWP 101073)]
[New Thread 809c273c0 (LWP 101072)]
[New Thread 809c26780 (LWP 101071)]
[New Thread 809c27740 (LWP 101070)]
[New Thread 80897a880 (LWP 101069)]
[New Thread 808979e00 (LWP 100895)]
[New Thread 8010041c0 (LWP 100335)]
(gdb) bt
#0 0x0000000800dfe1ec in thr_kill () from /lib/libc.so.7
#1 0x0000000800e99a7b in abort () from /lib/libc.so.7
#2 0x00000008006a1f18 in rb_bug (fmt=Variable “fmt” is not available.
) at …/error.c:248
#3 0x0000000800750bfc in sigsegv (sig=Variable “sig” is not available.
) at …/signal.c:613
#4
#5 rb_num2long (val=45376) at …/numeric.c:1698
#6 0x00000008006e6d05 in rb_fix2int (val=Variable “val” is not
available.
) at …/numeric.c:1776
#7 0x00000008007a3b2d in rb_iseq_first_lineno (iseq=Variable “iseq” is
not available.
) at …/iseq.c:675
#8 0x00000008006ad734 in proc_binding (self=Variable “self” is not
available.
) at …/proc.c:1901
#9 0x00000008007b1cd2 in vm_call_method (th=0x80100b600,
cfp=0x801143b88, num=Variable “num” is not available.
)
at vm_insnhelper.c:401
#10 0x00000008007b42d1 in vm_exec_core (th=0x80100b600, initial=Variable
“initial” is not available.
) at insns.def:999
#11 0x00000008007ba200 in vm_exec (th=0x80100b600) at …/vm.c:1134
#12 0x00000008007b157c in invoke_block_from_c (th=0x80100b600,
block=0x801143d68,
self=34556061280, argc=1, argv=Variable “argv” is not available.
) at …/vm.c:557
#13 0x00000008007bb3d7 in rb_yield (val=34698729520) at …/vm.c:587
#14 0x00000008006768ad in rb_ary_each (ary=34698728080) at
…/array.c:1427
#15 0x00000008007b1cd2 in vm_call_method (th=0x80100b600,
cfp=0x801143d40, num=Variable “num” is not available.
)
at vm_insnhelper.c:401
#16 0x00000008007b42d1 in vm_exec_core (th=0x80100b600, initial=Variable
“initial” is not available.
) at insns.def:999
#17 0x00000008007ba200 in vm_exec (th=0x80100b600) at …/vm.c:1134
#18 0x00000008007b157c in invoke_block_from_c (th=0x80100b600,
block=0x801143e70,
self=34556061280, argc=1, argv=Variable “argv” is not available.
) at …/vm.c:557
#19 0x00000008007bb3d7 in rb_yield (val=34415812440) at …/vm.c:587
#20 0x00000008006768ad in rb_ary_each (ary=34556029320) at
…/array.c:1427
#21 0x00000008007b1cd2 in vm_call_method (th=0x80100b600,
cfp=0x801143e48, num=Variable “num” is not available.
)
at vm_insnhelper.c:401
#22 0x00000008007b42d1 in vm_exec_core (th=0x80100b600, initial=Variable
“initial” is not available.
) at insns.def:999
#23 0x00000008007ba200 in vm_exec (th=0x80100b600) at …/vm.c:1134
#24 0x00000008007b157c in invoke_block_from_c (th=0x80100b600,
block=0x801a38560,
self=34385791680, argc=0, argv=Variable “argv” is not available.
) at …/vm.c:557
#25 0x00000008007b194f in rb_vm_invoke_proc (th=0x80100b600,
proc=0x801a38560,
self=34385791680, argc=0, argv=0x80bb3a6c0, blockptr=0x0) at
…/vm.c:603
#26 0x00000008006a81a3 in rb_exec_end_proc () at eval_jump.c:134
#27 0x00000008006a82a4 in ruby_finalize_0 () at …/eval.c:102
#28 0x00000008006a83f2 in ruby_cleanup (ex=0) at …/eval.c:147
#29 0x00000008006a8726 in ruby_run_node (n=0x80115dc50) at …/eval.c:254
#30 0x0000000000400922 in main (argc=3, argv=0x7fffffffe680) at
…/main.c:35
(gdb) q

e$B$-$7$b$H$G$9e(B

e$B<j85$Ne(B AMD64 FreeBSD8 e$B$G!“e(Btrunk e$B$N%j%S%8%g%se(B 27716 e$B0J9_$Ge(B test-all e$BCf$Ke(B
e$B%”%!<%H$7$^$9!#e(B

e$B:F8=$5$;$k$*$=$i$/$[$:G>.$N%5%s%W%k$^$G9J$j9~$a$^$7$?!#e(B
e$B0J2<$N$h$&$K$J$j$^$9!#e(B

$ ruby19 -e ‘method(:p).to_proc.binding’
-e:1: [BUG] Segmentation fault
ruby 1.9.3dev (2010-05-16 trunk 27802) [x86_64-freebsd8.0]

– control frame ----------
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :binding
c:0003 p:0023 s:0006 b:0006 l:002708 d:001b28 EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002708 d:002708 TOP

– Ruby level backtrace information

-e:1:in <main>' -e:1:in binding’

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6 (core dumped)

Method#to_proc e$B$G:n$C$?e(B Proc e$B$Ne(B binding
e$B$r8F$V$HMn$A$^$9!#e(B
p e$B$OL>A0$,C;$$$N$G;H$C$?$^$G$GB>$N%a%=%C%I$Ne(B Method
e$B$G$bF1$8$G$9!#e(B