From: leon breedt Date: 2004-12-11T16:11:46+09:00 Subject: Re: Thread.critical and segfaults calling into Ruby callbacks from C On Sat, 11 Dec 2004 15:45:56 +0900, Eric Hodel wrote: > You may already be in a critical section here. > > > .... > > ensure > > Thread.critical = false > > end > > def cb > old_critical = Thread.critical = true > # ... > ensure > Thread.critical = old_critical > end > > (GC.disable/enable works the same way.) Thanks for the tip. It seems I spoke too quickly though, doing something as simply as add $stderr.puts before and after the Thread.critical modifications brings back the same segfault...Doing an 'info threads' in gdb also shows only the one process. Back to debugging...