1.6 および 1.7 の最新版で、 mod_ruby 0.9.3 の configure.rb を
動かすとコアを吐きます。

 callcc が壊れている?


knu@archon[2]% ~/src/ruby-stable/build/ruby configure.rb
checking for a BSD compatible install... configure.rb:168: [BUG] Segmentation fault
ruby 1.6.5 (2001-09-08) [i386-freebsd5.0]
zsh: abort (core dumped)  ~/src/ruby-stable/build/ruby configure.rb
=> {134}
knu@archon[2]% ls             # ~/work/ports/www/mod_ruby/work/mod_ruby-0.9.3 [2001/09/13 13:35:25]
COPYING                 apachelib.c             install-rb              ruby.core
ChangeLog               apachelib.h             lib                     ruby_config.c
Makefile.in             array_header.c          libruby.module.in       ruby_config.h
Makefile.libdir         configure.rb            mkmf.log                ruby_shared_stub.c
Makefile.tmpl           configure.rb.in         mod_ruby.c              server.c
README.en               connection.c            mod_ruby.h              table.c
README.ja               examples                request.c
knu@archon[2]% gdb ~/src/ruby-stable/build/ruby ruby.core
GNU gdb 4.18
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"...
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.5...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x28165adc in kill () from /usr/lib/libc.so.5
(gdb) where
#0  0x28165adc in kill () from /usr/lib/libc.so.5
#1  0x281b7711 in abort () from /usr/lib/libc.so.5
#2  0x80b235a in rb_bug (fmt=0x80d262e "Segmentation fault") at ../error.c:178
#3  0x809aa4f in sigsegv (sig=11) at ../signal.c:388
#4  0xbfbfffac in ?? ()
#5  0x80a122e in rb_str_split_m (argc=1, argv=0xbfbfd488, str=136029116) at ../string.c:2255
#6  0x8058e08 in call_cfunc (func=0x80a0e24 <rb_str_split_m>, recv=136029116, len=-1, argc=1,
    argv=0xbfbfd488) at ../eval.c:4214
#7  0x8059325 in rb_call0 (klass=135355404, recv=136029116, id=4137, argc=1, argv=0xbfbfd488,
    body=0x8115504, nosuper=1) at ../eval.c:4353
#8  0x8059ace in rb_call (klass=135355404, recv=136029116, mid=4137, argc=1, argv=0xbfbfd488,
    scope=0) at ../eval.c:4569
#9  0x8054ec0 in rb_eval (self=135359624, n=0x8106338) at ../eval.c:2524
#10 0x805400e in rb_eval (self=135359624, n=0x8105c08) at ../eval.c:2265
#11 0x8053612 in rb_eval (self=135359624, n=0x8105b54) at ../eval.c:2005
#12 0x8057a7b in rb_yield_0 (val=136029256, self=135359624, klass=0, acheck=0) at ../eval.c:3601
#13 0x8057c7c in rb_yield (val=136029256) at ../eval.c:3687
#14 0x8061802 in rb_callcc (self=135359624) at ../eval.c:8693
#15 0x8058e16 in call_cfunc (func=0x80615c4 <rb_callcc>, recv=135359624, len=0, argc=0, argv=0x0)
    at ../eval.c:4217
#16 0x8059325 in rb_call0 (klass=135363724, recv=135359624, id=5449, argc=0, argv=0x0,
    body=0x8112f34, nosuper=1) at ../eval.c:4353
#17 0x8059ace in rb_call (klass=135363724, recv=135359624, mid=5449, argc=0, argv=0x0, scope=1)
    at ../eval.c:4569
#18 0x8054ec0 in rb_eval (self=135359624, n=0x8105ab4) at ../eval.c:2524
#19 0x8053faf in rb_eval (self=135359624, n=0x8105ac8) at ../eval.c:2256
#20 0x805585a in rb_eval (self=135359624, n=0x8105aa0) at ../eval.c:2685
#21 0x8053612 in rb_eval (self=135359624, n=0x8105a8c) at ../eval.c:2005
#22 0x80596fb in rb_call0 (klass=135363864, recv=135359624, id=8957, argc=0, argv=0x0,
    body=0x8105a8c, nosuper=0) at ../eval.c:4476
#23 0x8059ace in rb_call (klass=135363864, recv=135359624, mid=8957, argc=0, argv=0x0, scope=1)
    at ../eval.c:4569
#24 0x8054ec0 in rb_eval (self=135359624, n=0x80ff59c) at ../eval.c:2524
#25 0x8053612 in rb_eval (self=135359624, n=0x810a578) at ../eval.c:2005
#26 0x8051858 in eval_node (self=135359624, node=0x810a578) at ../eval.c:1058
#27 0x8051bbb in ruby_run () at ../eval.c:1188
#28 0x80505ba in main (argc=2, argv=0xbfbff1b4, envp=0xbfbff1c0) at ../main.c:50
#29 0x80504c9 in _start ()
(gdb) 

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"Freeze this moment a little bit longer, make each impression
  a little bit stronger..  Experience slips away -- Time stand still"