From: matz@... (Yukihiro Matsumoto) Date: 2003-12-22T03:10:48+09:00 Subject: [ruby-dev:22323] Re: core dump in rb_hash_aset まつもと ゆきひろです In message "[ruby-dev:22321] Re: core dump in rb_hash_aset" on 03/12/21, Tanaka Akira writes: |> こちらでは再現しませんです。マシンが遅すぎるのかなあ。 | |とりあえず helium で再現しました。 このパッチが有効ではないかと。 --- eval.c 21 Dec 2003 08:29:06 -0000 1.612 +++ eval.c 21 Dec 2003 18:10:31 -0000 @@ -4735,3 +4735,6 @@ rb_with_disable_interrupt(proc, data) DEFER_INTS; - RUBY_CRITICAL( + { + int thr_critical = rb_thread_critical; + + rb_thread_critical = Qtrue; PUSH_TAG(PROT_NONE); @@ -4741,4 +4744,5 @@ rb_with_disable_interrupt(proc, data) POP_TAG(); - ); - ALLOW_INTS; + rb_thread_critical = thr_critical; + } + ENABLE_INTS; if (status) JUMP_TAG(status);