From: matz@... (Yukihiro Matsumoto) Date: 2003-08-28T21:35:39+09:00 Subject: Re: [BUG] Additional info regarding ruby-talk:66239 Hi, In message "[BUG] Additional info regarding ruby-talk:66239" on 03/08/28, Idan Sofer writes: |I have recently encountered similiar problem as described on that thread, i.e., rb_bug |triggered by the GC, as a result of RBasic->flags and RBasic->klass switching variables. | |I've been working to produce a simple and trivial code that can trigger the bug easily. the |result is a small code snippet, the does the following: | |Launches 120 threads with a block, that does some 20,000 regexp matching. before |the thread quits, it creates an additional thread with the same block | |thread_block= Proc.new do | 1.upto(20000) do | "Hello"=~/bla/ | end | Thread.new &thread_block |end | |1.upto(120) do | Thread.new &thread_block |end |Thread.stop | |Under ruby-1.8.0(from debian's sid) the bug will be always be triggered after a few |seconds of runtime. It does not happen on the latest CVS. I'm not sure whether we already fixed it or just by coincidence. matz.