I get segfault at any Ruby exception with C API:

(gdb) bt
#0  0x00007ffff58ebd78 in siglongjmp () from /lib/libc.so.6
#1  0x00007ffff719d3e7 in rb_longjmp (tag=6, mesg=6652280) at eval.c:442
#2  0x00007ffff719d422 in rb_exc_raise (mesg=6652280) at eval.c:453
#3  0x00007ffff719a380 in rb_raise (exc=6723760,
    fmt=0x7ffff72dc28c "no such file to load -- %s") at error.c:1172

It's caused because GET_THREAD()->tag equal to 0x0.
-- 
Posted via http://www.ruby-forum.com/.