From: Johan Holmberg Date: 2004-11-16T03:16:06+09:00 Subject: Re: Core dump with latest Ruby from CVS On Mon, 15 Nov 2004, K.Kosako wrote: > >> I get a core dump (from "miniruby") when I try to build the latest >> Ruby source from CVS. I tried to build Ruby on Solaris because I couldn't >> get it to work on FreeBSD (it crashed when I ran a script there). >> So there seem to be problems on more than one platform. >> >> See below for what happened when I built Ruby on Solaris. > > Won't you try this patch? > -- > K.Kosako > *With* this patch I get the following crash on FreeBSD. I don't know if the traceback below is enough to help spot the problem. The program I'm running is the Rubicon testsuite. /Johan Holmberg ------------------------------------------------------------ $ ~/proj/ruby/installs/latest-mainline/bin/ruby AllTests.rb AllTests.rb:23: [BUG] Segmentation fault ruby 1.9.0 (2004-11-15) [i386-freebsd4.10] Abort (core dumped) $ gdb ~/proj/ruby/installs/latest-mainline/bin/ruby ruby.core [...] (gdb) bt #0 0x28178fc4 in kill () from /usr/lib/libc.so.4 #1 0x281ba93e in abort () from /usr/lib/libc.so.4 #2 0x80c8d8e in rb_bug (fmt=0x80eb3ae "Segmentation fault") at error.c:214 #3 0x80aaa9b in sigsegv (sig=11) at signal.c:446 #4 0xbfbfffac in ?? () #5 0x80c73ef in dir_s_aref (obj=135433008, str=135294548) at dir.c:1527 #6 0x805cdea in rb_call0 (klass=135432988, recv=135433008, id=333, oid=333, argc=1, argv=0xbfbfeb38, body=0x8128734, nosuper=0) at eval.c:5389 #7 0x805d848 in rb_call (klass=135432988, recv=135433008, mid=333, argc=1, argv=0xbfbfeb38, scope=0) at eval.c:5745 #8 0x805863b in rb_eval (self=135477688, n=0x81240d0) at eval.c:3209 #9 0x805845e in rb_eval (self=135477688, n=0x81240bc) at eval.c:3203 #10 0x8057877 in rb_eval (self=135477688, n=0x812401c) at eval.c:2929 #11 0x805b4e3 in rb_yield_0 (val=135413148, self=135477688, klass=0, flags=0, avalue=0) at eval.c:4724 #12 0x805b775 in rb_yield (val=135413148) at eval.c:4806 #13 0x80bda3a in rb_ary_each (ary=135413188) at array.c:1255 #14 0x805ce19 in rb_call0 (klass=135454448, recv=135413188, id=3865, oid=3865, argc=0, argv=0x0, body=0x812dacc, nosuper=0) at eval.c:5395 #15 0x805d848 in rb_call (klass=135454448, recv=135413188, mid=3865, argc=0, argv=0x0, scope=0) at eval.c:5745 #16 0x8057941 in rb_eval (self=135477688, n=0x812460c) at eval.c:2940 #17 0x8054b63 in eval_node (self=135477688, node=0x812460c) at eval.c:1285 #18 0x8055003 in ruby_exec_internal () at eval.c:1465 #19 0x8055033 in ruby_exec () at eval.c:1483 #20 0x8055075 in ruby_run () at eval.c:1500 #21 0x80534e6 in main () at main.c:38 #22 0x805342a in _start () ------------------------------------------------------------