From: Marc Weber Date: 2010-12-07T10:26:01+09:00 Subject: Re: embedding ruby - segfault after initialization when running rb_gc_start?? Excerpts from Ammar Ali's message of Tue Dec 07 01:32:12 +0100 2010: > Is this a multithreaded environment? If so, it sounds vaguely like the > problem discussed in the following issue: > http://redmine.ruby-lang.org/issues/show/2294 Wow. I can reproduce the bug by running the initialization code within a pthread easily now. Does anybody know which is the correct solution? I'm protecting ruby by using mutexes - so only one thread will be evaluating ruby code at any given time. Where can I find the documentation how to embed Ruby in a multithreaded environment then? Marc Weber