From: Tanaka Akira Date: 2005-09-19T20:50:47+09:00 Subject: [ruby-dev:27179] Re: Attatched script dumps core(Re: ruby-1.8.3 status for release) In article <20050919190923.6a5f0131.sheepman@sheepman.sakura.ne.jp>, sheepman writes: > で再現しました。添付されていたスクリプトを切り詰めた結果、以下のような > スクリプトでも再現しました。5回に1回くらい core を吐きます。 > 28行目はちょうど、"if s.nil? then" に相当します。 さらに削ると t = Thread.start { pid = Process.fork {} s = Process.waitpid(pid) puts s p $? } while t.alive? Object.new end というかんじですかね。 Index: eval.c =================================================================== RCS file: /src/ruby/eval.c,v retrieving revision 1.831 diff -u -p -r1.831 eval.c --- eval.c 14 Sep 2005 08:30:15 -0000 1.831 +++ eval.c 19 Sep 2005 11:50:28 -0000 @@ -9867,6 +9867,7 @@ thread_mark(rb_thread_t th) rb_gc_mark((VALUE)th->scope); rb_gc_mark((VALUE)th->dyna_vars); rb_gc_mark(th->errinfo); + rb_gc_mark(th->last_status); rb_gc_mark(th->last_line); rb_gc_mark(th->last_match); rb_mark_tbl(th->locals); -- [田中 哲][たなか あきら][Tanaka Akira]