In article <1040010901.484455.25628.nullmailer / picachu.netlab.jp>,
  matz / ruby-lang.org (Yukihiro Matsumoto) writes:

> [ruby-talk:59035]によればfreebsd 4.7 stableではRubyがコアダ
> ンプするそうです。当該プラットフォームをお持ちの方は追試して
> いただけませんか?

1.6 の先端で core を吐きますね。

% ../1.6/bin/ruby expose-bug.rb
/home/akr/src/ruby/1.6/lib/ruby/1.6/cgi.rb:840: [BUG] Segmentation fault
ruby 1.6.8 (2002-12-13) [i386-freebsd4.7]
Z(2):akr@flux% gdb ../1.6/bin/ruby  ruby.core 
GNU gdb 4.18 (FreeBSD)
Copyright 1998 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-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf

Core was generated by `ruby'.
Program terminated with signal 6, Abort trap.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /home/akr/src/ruby/1.6/lib/ruby/1.6/i386-freebsd4.7/stringio.so...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x28156b78 in kill () from /usr/lib/libc.so.4
(gdb) where
#0  0x28156b78 in kill () from /usr/lib/libc.so.4
#1  0x28197742 in abort () from /usr/lib/libc.so.4
#2  0x80b53e2 in rb_bug (fmt=0x80cad8e "Segmentation fault") at error.c:179
#3  0x809ced3 in sigsegv (sig=11) at signal.c:393
#4  0xbfbfffac in ?? ()
#5  0x80579fc in rb_yield (val=135990472) at eval.c:3732
#6  0x80a1916 in rb_str_sub_bang (argc=1, argv=0xbfbfbde8, str=135990532) at string.c:1172
#7  0x80a1a47 in rb_str_sub (argc=1, argv=0xbfbfbde8, str=135990792) at string.c:1207
#8  0x8058c80 in call_cfunc (func=0x80a1a20 <rb_str_sub>, recv=135990792, len=-1, argc=1, argv=0xbfbfbde8) at eval.c:4279
#9  0x8059179 in rb_call0 (klass=135326892, recv=135990792, id=4225, argc=1, argv=0xbfbfbde8, body=0x810e3c4, nosuper=1)
    at eval.c:4416
#10 0x805995e in rb_call (klass=135326892, recv=135990792, mid=4225, argc=1, argv=0xbfbfbde8, scope=0) at eval.c:4640
#11 0x8054d2c in rb_eval (self=135993592, n=0x80f133c) at eval.c:2572
#12 0x8053e0f in rb_eval (self=135993592, n=0x80f10f8) at eval.c:2304
#13 0x805564a in rb_eval (self=135993592, n=0x80f10e4) at eval.c:2724
#14 0x8053476 in rb_eval (self=135993592, n=0x80f2598) at eval.c:2053
#15 0x8053bfa in rb_eval (self=135993592, n=0x80f0450) at eval.c:2267
#16 0x8053476 in rb_eval (self=135993592, n=0x80f3218) at eval.c:2053
#17 0x8059586 in rb_call0 (klass=135993512, recv=135993592, id=9201, argc=0, argv=0xbfbfcf90, body=0x80f3218, nosuper=0)
    at eval.c:4547
#18 0x805995e in rb_call (klass=135993512, recv=135993592, mid=9201, argc=2, argv=0xbfbfcf88, scope=1) at eval.c:4640
#19 0x8054d2c in rb_eval (self=135993592, n=0x80ef578) at eval.c:2572
#20 0x805570e in rb_eval (self=135993592, n=0x80eeed4) at eval.c:2744
#21 0x8053476 in rb_eval (self=135993592, n=0x80eed30) at eval.c:2053
#22 0x8059586 in rb_call0 (klass=135993512, recv=135993592, id=9313, argc=0, argv=0x0, body=0x80eed30, nosuper=0)
    at eval.c:4547
#23 0x805995e in rb_call (klass=135993512, recv=135993592, mid=9313, argc=0, argv=0x0, scope=1) at eval.c:4640
#24 0x8054d2c in rb_eval (self=135993592, n=0x81bd7d4) at eval.c:2572
#25 0x8053476 in rb_eval (self=135993592, n=0x81bd234) at eval.c:2053
#26 0x8053476 in rb_eval (self=135993592, n=0x81bdb30) at eval.c:2053
#27 0x8059586 in rb_call0 (klass=136035692, recv=135993592, id=2857, argc=0, argv=0x0, body=0x81bdb30, nosuper=0)
    at eval.c:4547
#28 0x805995e in rb_call (klass=136035692, recv=135993592, mid=2857, argc=0, argv=0x0, scope=1) at eval.c:4640
#29 0x8059be9 in rb_funcall2 (recv=135993592, mid=2857, argc=0, argv=0x0) at eval.c:4724
#30 0x805ba57 in rb_obj_call_init (obj=135993592, argc=0, argv=0x0) at eval.c:5722
#31 0x805bab2 in rb_class_new_instance (argc=0, argv=0x0, klass=136035692) at eval.c:5738
#32 0x8058c80 in call_cfunc (func=0x805ba68 <rb_class_new_instance>, recv=136035692, len=-1, argc=0, argv=0x0)
    at eval.c:4279
#33 0x8059179 in rb_call0 (klass=135335152, recv=136035692, id=3169, argc=0, argv=0x0, body=0x810fddc, nosuper=1)
---Type <return> to continue, or q <return> to quit---
    at eval.c:4416
#34 0x805995e in rb_call (klass=135335152, recv=136035692, mid=3169, argc=0, argv=0x0, scope=0) at eval.c:4640
#35 0x8054d2c in rb_eval (self=135331032, n=0x8102b8c) at eval.c:2572
#36 0x80556ae in rb_eval (self=135331032, n=0x8102c04) at eval.c:2734
#37 0x80577db in rb_yield_0 (val=3, self=135331032, klass=0, acheck=0) at eval.c:3644
#38 0x80579fc in rb_yield (val=3) at eval.c:3732
#39 0x8074fce in fix_dotimes (num=5) at numeric.c:1535
#40 0x8058c8e in call_cfunc (func=0x8074fa8 <fix_dotimes>, recv=5, len=0, argc=0, argv=0x0) at eval.c:4282
#41 0x8059179 in rb_call0 (klass=135313712, recv=5, id=5617, argc=0, argv=0x0, body=0x810b390, nosuper=1) at eval.c:4416
#42 0x805995e in rb_call (klass=135313712, recv=5, mid=5617, argc=0, argv=0x0, scope=0) at eval.c:4640
#43 0x8054d2c in rb_eval (self=135331032, n=0x8102f24) at eval.c:2572
#44 0x8053e0f in rb_eval (self=135331032, n=0x8103474) at eval.c:2304
#45 0x80515e0 in eval_node (self=135331032, node=0x8103474) at eval.c:1085
#46 0x80519a0 in ruby_run () at eval.c:1230
#47 0x80502fe in main (argc=2, argv=0xbfbff2c4, envp=0xbfbff2d0) at main.c:50
#48 0x805024d in _start ()
(gdb) 
-- 
[田中 哲][たなか あきら][Tanaka Akira]
「ふえろ! わかめちゃん作戦です$(C⊇」(Little Worker, 桂遊生丸)