From: Caleb Clausen Date: 2009-08-14T01:18:16+09:00 Subject: [ruby-core:24913] Re: embedding ruby 1.9 frustration Rolando Abarca wrote: >> Perhaps try using only rb_thread_blocking_region()? >> -r > > I think I'll try that. I checked and during crashes no double calling > of the function or another thread is calling any ruby function... > Maybe a signal is interrupting the VM in a wrong way... > I think this may be the right track. You've got a lot of async stuff happening on top of the ruby vm, and even tho you have only one thread, threads aren't the only possible source of reentrancy problems. Maybe you could try some logging to figure out what async events are happening right before it goes sour, and what state the vm is in when they happen...?