Eigenmethod definition for BasicObjects dumps core

e$B:XF#$H?=$7$^$9!#e(B

BasicObjecte$B$NFC0[%a%=%C%I$rDj5A$9$k$H!"e(Bcoree$B$rEG$/$h$&$G$9!#e(B

$ gdb ruby-trunk
(snip)

(gdb) run -e ‘def (b=BasicObject.new).foo;end’
Starting program: /home/tadashi/svn/ruby/o/trunk/ruby-trunk -e ‘def
(b=BasicObject.new).foo;end’
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1211369792 (LWP 5008)]
[New Thread -1212101712 (LWP 5011)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211369792 (LWP 5008)]
0xb7f6292f in vm_eval_body (th=0x804a160) at …/…/trunk/vm.c:1193
1193 epc = cfp->pc - cfp->iseq->iseq_encoded;
(gdb) l
1188 while (th->cfp->pc == 0 || th->cfp->iseq == 0) {
1189 th->cfp++;
1190 }
1191
1192 cfp = th->cfp;
1193 epc = cfp->pc - cfp->iseq->iseq_encoded;
1194
1195 if (state == TAG_BREAK || state == TAG_RETURN) {
1196 escape_dfp = GET_THROWOBJ_CATCH_POINT(err);
1197
(gdb) bt
#0 0xb7f6292f in vm_eval_body (th=0x804a160) at …/…/trunk/vm.c:1193
#1 0xb7f62f00 in rb_iseq_eval (iseqval=3082895600) at
…/…/trunk/vm.c:1372
#2 0xb7eb075b in ruby_exec_node (n=0xb7c14168, file=0x80931a1 “-e”) at
…/…/trunk/eval.c:232
#3 0xb7eb502a in ruby_run_node (n=0xb7c14168) at …/…/trunk/eval.c:262
#4 0x080486ce in main (argc=3, argv=0xbf8dcff4, envp=0xbf8dd004) at
…/…/trunk/main.c:30

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:32531] eigenmethod definition for BasicObjects
dumps core”
on Tue, 11 Dec 2007 04:45:03 +0900, Tadashi S.
[email protected] writes:

|BasicObjecte$B$NFC0[%a%=%C%I$rDj5A$9$k$H!"e(Bcoree$B$rEG$/$h$&$G$9!#e(B

BasicObjecte$B$NL$Dj5A%a%=%C%I$r8F$V$@$1$GMn$A$F$^$7$?!#e(B
e$B$5$C$-%3%_%C%H$7$^$7$?!#e(B