From: barabba Date: 2007-04-10T03:35:11+09:00 Subject: Re: Ruby C extension crash: how to create a stack trace? I have tried with : trap("SEGV"){"my seg fault handler";exit} Myextension::foo_thread_handler() Trap seam to intercept the segmentation fault, but there is an infinite recursion of the trap. The dos shell is blocked. If a run the script inside visual studio, it is also blocked and I have to kill it with task manager. I use ruby under windows: C:\Documents and Settings\igor>ruby -v ruby 1.8.4 (2006-04-14) [i386-mswin32]