From: ts Date: 2004-06-09T17:46:21+09:00 Subject: Re: Segfault on embedded ruby. >>>>> "G" == Godot writes: G> Are you saying that I should rb_protect on rb_gc? Would that catch the G> fault? That doesn't seem possible - but when it comes to ruby, Alot of G> things that are seem impossible :) No, I was trying to say that your example was badly written. In an embedded application, after the initialization phase you must *never* make a call to a ruby function which is not protected with rb_protect(), or what you want. If ruby detect an error when it call a function, it will call longjmp() and this can crash your application if you have not made a previous call to rb_protect(), ... If your application is well written, you don't need Init_stack() Guy Decoux