$B%F%9%HBP>]$r(B 2 $B$D;XDj$9$k$HMn$A$k(B

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

amd64 FreeBSD8 e$B$G!"e(Bruby e$B$Oe(B trunk
e$B$G$9!#%S%k%IMQ$N%G%#%l%/%H%j$r7!$C$Fe(B
e$B%S%k%I$7$F$$$^$9!#e(B

e$B0J2<$N$h$&$K!"%F%9%HBP>]$re(B 2 e$B$D;XDj$9$k$HMn$A$^$9!#e(B1
e$B$De(B e$B$^$?$Oe(B 3 e$B$D$J$I!"e(B
e$BB>$N8D?t$G$OBg>fIW$G$9!#B>?M$N4D6-$G:F8=$9$k$+$o$+$j$^$;$s$7!“A4A39J$j9~$a$Fe(B
e$B$^$;$s$,$H$j$”$($:Js9p$7$^$9!#e(B

$ ./miniruby …/tool/runruby.rb …/test/runner.rb base64 benchmark
/export/home/ksmakoto/ruby-trunk/lib/optparse.rb:860: [BUG] Bus Error
ruby 1.9.2dev (2010-04-06 trunk 27233) [x86_64-freebsd8.0]

– control frame ----------
c:0014 p:---- s:0047 b:0047 l:000046 d:000046 CFUNC :attr_writer
c:0013 p:0791 s:0043 b:0043 l:001310 d:001310 CLASS
/export/home/ksmakoto/ruby-trunk/lib/optparse.rb:860
c:0012 p:0009 s:0032 b:0032 l:000031 d:000031 TOP
/export/home/ksmakoto/ruby-trunk/lib/optparse.rb:204
c:0011 p:---- s:0030 b:0030 l:000029 d:000029 FINISH
c:0010 p:---- s:0028 b:0028 l:000027 d:000027 CFUNC :require
c:0009 p:0011 s:0024 b:0024 l:000023 d:000023 TOP
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:7
c:0008 p:---- s:0022 b:0022 l:000021 d:000021 FINISH
c:0007 p:---- s:0020 b:0020 l:000019 d:000019 CFUNC :require
c:0006 p:0011 s:0016 b:0016 l:000015 d:000015 TOP
/export/home/ksmakoto/ruby-trunk/lib/test/unit.rb:3
c:0005 p:---- s:0014 b:0014 l:000013 d:000013 FINISH
c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :require
c:0003 p:0042 s:0008 b:0008 l:0026c8 d:0010e8 EVAL …/test/runner.rb:4
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0026c8 d:0026c8 TOP

– Ruby level backtrace information

…/test/runner.rb:4:in <main>' ../test/runner.rb:4:in require’
/export/home/ksmakoto/ruby-trunk/lib/test/unit.rb:3:in <top (required)>' /export/home/ksmakoto/ruby-trunk/lib/test/unit.rb:3:in require’
/export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:7:in <top (required)>' /export/home/ksmakoto/ruby-trunk/lib/minitest/unit.rb:7:in require’
/export/home/ksmakoto/ruby-trunk/lib/optparse.rb:204:in <top (required)>' /export/home/ksmakoto/ruby-trunk/lib/optparse.rb:860:in class:OptionParser
/export/home/ksmakoto/ruby-trunk/lib/optparse.rb:860:in `attr_writer’

[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)

KISHIMOTO, Makoto e$B$5$s$O=q$-$^$7$?e(B:

e$B0J2<$N$h$&$K!"%F%9%HBP>]$re(B 2 e$B$D;XDj$9$k$HMn$A$^$9!#e(B1 e$B$De(B e$B$^$?$Oe(B 3 e$B$D$J$I!"e(B
e$BB>$N8D?t$G$OBg>fIW$G$9!#B>?M$N4D6-$G:F8=$9$k$+$o$+$j$^$;$s$7!“A4A39J$j9~$a$Fe(B
e$B$^$;$s$,$H$j$”$($:Js9p$7$^$9!#e(B

e$B$s!<!“e(BLinuxe$B$G?=$7Lu$”$j$^$;$s$,!";d$N<j85$N4D6-$@$HMn$A$J$$$G$9$M!#e(B-O0e$B$@$+$i$+e(B?

e$B$H$j$"$($:e(Bgdbe$B$G%P%C%/%H%l!<%9$r8+$F$b$i$&$H2?$+J,$+$k$H$+$G$7$g$&$+e(B…

zsh % ~/build/trunk/miniruby -v ~/src/trunk/tool/runruby.rb
~/src/trunk/test/runner.rb base64 benchmark
ruby 1.9.2dev (2010-04-06 trunk 27235) [x86_64-linux]
Loaded suite /home/shyouhei/ruby.devel.svn/trunk/test/runner
Started

Finished in 0.003161 seconds.

8 tests, 66 assertions, 0 failures, 0 errors, 0 skips

Test run options: --seed 12351

e$B@.@%$G$9!#e(B

2010e$BG/e(B4e$B7ne(B6e$BF|e(B14:35 KISHIMOTO, Makoto
[email protected]:

There is absolutely no warranty for GDB. Type “show warranty” for details.
Loaded symbols for /lib/libcrypt.so.5
#0 0x0000000800dfb1ec in thr_kill () from /lib/libc.so.7
#5 mark_method_entry_i (key=14484, me=Variable “me” is not available.
#13 0x00000008006b85b5 in gc_mark_children (objspace=0x801014000, ptr=34378201560, lev=10) at …/gc.c:1360
#22 0x00000008006b914c in mark_entry (key=Variable “key” is not available.
#32 0x0000000800679719 in rb_ary_new3 (n=2) at …/array.c:349
#39 0x00000008006a858e in rb_load_internal (fname=34376636680, wrap=Variable “wrap” is not available.
#46 0x00000008006a9768 in rb_require_safe (fname=34378049680, safe=0) at …/load.c:594
) at vm_insnhelper.c:377

e$B<j85$Ne(B FreeBSD8 amd64 ruby-trunk e$B$@$He(B -O0 e$B$G$be(B -O3
e$B$G$b:F8=$7$^$;$s$M!#e(B
e$B$J$s$G$@$m$&e(B

e$B<j85$Ne(B FreeBSD8 amd64 ruby-trunk e$B$@$He(B -O0 e$B$G$be(B -O3 e$B$G$b:F8=$7$^$;$s$M!#e(B
e$B$J$s$G$@$m$&e(B

e$B;n$7$F$_$?$H$3$me(B CFLAGS e$B$r@_Dj$7$Fe(B configure
e$B$9$k$H2sHr$9$k$h$&$G$9!#e(B

CFLAGS e$B$N@_Dj$r!"%G%U%)%k%H$G@Dj$5$l$k$b$N$HF1$8$h$&$Je(B -O3 -g
-Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long
e$B$K$7$F$d$C$F$
$^$7$?$,!":F8=$7$^$;$s$G$7$?!#e(B

e$B$H$j$"$($:e(Bgdbe$B$G%P%C%/%H%l!<%9$r8+$F$b$i$&$H2?$+J,$+$k$H$+$G$7$g$&$+e(B…

GC e$B$NCf$G$7$?e(B

$ 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
Reading symbols from /libexec/ld-elf.so.1…done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000800dfb1ec in thr_kill () from /lib/libc.so.7
[New Thread 80100ae40 (LWP 100641)]
[New Thread 8010041c0 (LWP 100455)]
(gdb) bt
#0 0x0000000800dfb1ec in thr_kill () from /lib/libc.so.7
#1 0x0000000800e96a7b in abort () from /lib/libc.so.7
#2 0x00000008006a1928 in rb_bug (fmt=Variable “fmt” is not available.
) at …/error.c:248
#3 0x000000080074fb72 in sigbus (sig=Variable “sig” is not available.
) at …/signal.c:592
#4
#5 mark_method_entry_i (key=14484, me=Variable “me” is not available.
) at …/gc.c:1496
#6 0x00000008007570e1 in st_foreach (table=0x80197cee0,
func=0x8006bb310 <mark_method_entry_i>, arg=140737488330784) at
…/st.c:778
#7 0x00000008006b858d in gc_mark_children (objspace=0x801014000,
ptr=34377860120, lev=12) at …/gc.c:1456
#8 0x00000008006b914c in mark_entry (key=Variable “key” is not
available.
) at …/gc.c:1512
#9 0x00000008007570e1 in st_foreach (table=0x80119dcd0,
func=0x8006b9080 <mark_entry>, arg=140737488331056) at …/st.c:778
#10 0x00000008006b85b5 in gc_mark_children (objspace=0x801014000,
ptr=34378201920, lev=11) at …/gc.c:1360
#11 0x00000008006b914c in mark_entry (key=Variable “key” is not
available.
) at …/gc.c:1512
#12 0x0000000800757080 in st_foreach (table=0x8011ac040,
func=0x8006b9080 <mark_entry>, arg=140737488331328) at …/st.c:747
#13 0x00000008006b85b5 in gc_mark_children (objspace=0x801014000,
ptr=34378201560, lev=10) at …/gc.c:1360
#14 0x00000008006b914c in mark_entry (key=Variable “key” is not
available.
) at …/gc.c:1512
#15 0x0000000800757080 in st_foreach (table=0x8011ac1c0,
func=0x8006b9080 <mark_entry>, arg=140737488331600) at …/st.c:747
#16 0x00000008006b85b5 in gc_mark_children (objspace=0x801014000,
ptr=34378201400, lev=9) at …/gc.c:1360
#17 0x00000008006b78ee in gc_mark_children (objspace=0x801014000,
ptr=34378201600, lev=8) at …/gc.c:1512
#18 0x00000008006b78ee in gc_mark_children (objspace=0x801014000,
ptr=34378201840, lev=7) at …/gc.c:1512
#19 0x00000008006b914c in mark_entry (key=Variable “key” is not
available.
) at …/gc.c:1512
#20 0x0000000800757080 in st_foreach (table=0x80119df40,
func=0x8006b9080 <mark_entry>, arg=140737488332256) at …/st.c:747
#21 0x00000008006b85b5 in gc_mark_children (objspace=0x801014000,
ptr=34378201640, lev=6) at …/gc.c:1360
#22 0x00000008006b914c in mark_entry (key=Variable “key” is not
available.
) at …/gc.c:1512
#23 0x0000000800757080 in st_foreach (table=0x8011ac100,
func=0x8006b9080 <mark_entry>, arg=140737488332528) at …/st.c:747
#24 0x00000008006b85b5 in gc_mark_children (objspace=0x801014000,
ptr=34378201480, lev=5) at …/gc.c:1360
#25 0x00000008006b78ee in gc_mark_children (objspace=0x801014000,
ptr=34378131560, lev=4) at …/gc.c:1512
#26 0x00000008006b78ee in gc_mark_children (objspace=0x801014000,
ptr=34378131600, lev=3) at …/gc.c:1512
#27 0x00000008006b78ee in gc_mark_children (objspace=0x801014000,
ptr=34378131640, lev=2) at …/gc.c:1512
#28 0x00000008006b78ee in gc_mark_children (objspace=0x801014000,
ptr=34378127120, lev=1) at …/gc.c:1512
#29 0x00000008006b9b90 in garbage_collect (objspace=0x801014000) at
…/gc.c:2167
#30 0x00000008006bab28 in rb_newobj () at …/gc.c:1012
#31 0x000000080067863a in ary_new (klass=34378163960, capa=2) at
…/array.c:297
#32 0x0000000800679719 in rb_ary_new3 (n=2) at …/array.c:349
#33 0x00000008007ad6b2 in rb_add_method (klass=34377860120, mid=14484,
type=Variable “type” is not available.
) at vm_method.c:286
#34 0x00000008006e7f27 in rb_mod_attr_writer (argc=1, argv=Variable
“argv” is not available.
) at …/object.c:1635
#35 0x00000008007aeca0 in vm_call_method (th=0x80100b600,
cfp=0x801143b88, num=Variable “num” is not available.
) at vm_insnhelper.c:377
#36 0x00000008007b1481 in vm_exec_core (th=0x80100b600, initial=Variable
“initial” is not available.
) at insns.def:999
#37 0x00000008007b7040 in vm_exec (th=0x80100b600) at …/vm.c:1132
#38 0x00000008007b7449 in rb_iseq_eval (iseqval=34385647840) at
…/vm.c:1359
#39 0x00000008006a858e in rb_load_internal (fname=34376636680,
wrap=Variable “wrap” is not available.
) at …/load.c:302
#40 0x00000008006a9768 in rb_require_safe (fname=34376637240, safe=0) at
…/load.c:594
#41 0x00000008007aeca0 in vm_call_method (th=0x80100b600,
cfp=0x801143ce8, num=Variable “num” is not available.
) at vm_insnhelper.c:377
#42 0x00000008007b1481 in vm_exec_core (th=0x80100b600, initial=Variable
“initial” is not available.
) at insns.def:999
#43 0x00000008007b7040 in vm_exec (th=0x80100b600) at …/vm.c:1132
#44 0x00000008007b7449 in rb_iseq_eval (iseqval=34378087960) at
…/vm.c:1359
#45 0x00000008006a858e in rb_load_internal (fname=34378049560,
wrap=Variable “wrap” is not available.
) at …/load.c:302
#46 0x00000008006a9768 in rb_require_safe (fname=34378049680, safe=0) at
…/load.c:594
#47 0x00000008007aeca0 in vm_call_method (th=0x80100b600,
cfp=0x801143df0, num=Variable “num” is not available.
) at vm_insnhelper.c:377
#48 0x00000008007b1481 in vm_exec_core (th=0x80100b600, initial=Variable
“initial” is not available.
) at insns.def:999
#49 0x00000008007b7040 in vm_exec (th=0x80100b600) at …/vm.c:1132
#50 0x00000008007b7449 in rb_iseq_eval (iseqval=34378059480) at
…/vm.c:1359
#51 0x00000008006a858e in rb_load_internal (fname=34378074200,
wrap=Variable “wrap” is not available.
) at …/load.c:302
#52 0x00000008006a9768 in rb_require_safe (fname=34378074360, safe=0) at
…/load.c:594
#53 0x00000008007aeca0 in vm_call_method (th=0x80100b600,
cfp=0x801143ef8, num=Variable “num” is not available.
) at vm_insnhelper.c:377
#54 0x00000008007b1481 in vm_exec_core (th=0x80100b600, initial=Variable
“initial” is not available.
) at insns.def:999
#55 0x00000008007b7040 in vm_exec (th=0x80100b600) at …/vm.c:1132
#56 0x00000008007b72eb in rb_iseq_eval_main (iseqval=34377956400) at
…/vm.c:1373
#57 0x00000008006a5e9f in ruby_exec_internal (n=0x80115fc30) at
…/eval.c:204
#58 0x00000008006a5ec9 in ruby_exec_node (n=0x80115fc30) at
…/eval.c:251
#59 0x00000008006a804f in ruby_run_node (n=0x80115fc30) at …/eval.c:244
#60 0x0000000000400922 in main (argc=5, argv=0x7fffffffe600) at
…/main.c:35
(gdb) q