[Bug #1310] HEAP_SIZE で不具合?


#1

Bug #1310: HEAP_SIZE e$B$GIT6q9g!)e(B
http://redmine.ruby-lang.org/issues/show/1310

e$B5/I<<Te(B: Hikari AIKAWA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.9.2dev (2009-03-22) [i686-linux]

e$B$O$8$a$^$7$F!%e(B
e$BEl5~Bg3X$NAj@n$H?=$7$^$9!%e(B

gc.ce$B$Ne(BHEAP_SIZEe$B$NCM$rJQ2=$5$;$F$_$?$H$3$m!$e(B

#define HEAP_SIZE 0x20000

e$B$H$7!$e(B

$ make miniruby

e$B$H$9$k$H!$%S%k%I$ODL$k$N$G$9$,!$e(Bminirubye$B$r<B9T$9$k$He(BSEGVe$B$,=P$^$7$?!%e(B
e$B$H$j$"$($:Js9p$5$;$F$$$?$@$-$^$9!%e(B

$ ./miniruby -v
[BUG] Segmentation fault
ruby 1.9.2dev (2009-03-22) [i686-linux]

control frame ----------
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP

C level backtrace information

0x819a455 ./miniruby(rb_vm_bugreport+0xb5) [0x819a455]
0x808d9bb ./miniruby [0x808d9bb]
0x808da48 ./miniruby(rb_bug+0x28) [0x808da48]
0x8131eb5 ./miniruby [0x8131eb5]
0xb80a0410 [0xb80a0410]
0x81403cd ./miniruby [0x81403cd]
0x81406a7 ./miniruby(rb_enc_str_new+0x17) [0x81406a7]
0x80dc2ed ./miniruby(rb_intern3+0x16d) [0x80dc2ed]
0x80df74e ./miniruby(rb_intern+0x2e) [0x80df74e]
0x807a0ba ./miniruby(rb_define_module_function+0x4a) [0x807a0ba]
0x80a146c ./miniruby(Init_GC+0x27c) [0x80a146c]
0x80acc15 ./miniruby(rb_call_inits+0x115) [0x80acc15]
0x8092515 ./miniruby(ruby_init+0xa5) [0x8092515]
0x805c6a7 ./miniruby(main+0x47) [0x805c6a7]
0xb7eab685 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)
[0xb7eab685]
0x805c5c1 ./miniruby [0x805c5c1]

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


e$BEl5~Bg3XBg3X1!>pJsM}9)3X7O8&5f2Je(B
e$BAOB$>pJs3X@l96!!=$;N0lG/e(B
e$BAj@n!!8we(B