From: Godot Date: 2004-06-09T04:28:48+09:00 Subject: Re: Segfault on embedded ruby. On Wed, 09 Jun 2004 00:35:37 +0900, ts wrote: >>>>>> "P" == Paul Brannan writes: > > P> But test was marked with rb_gc_register_address(). Shouldn't that > P> function work with addresses that are not on the stack? > > this is when ruby mark the stack that it has a problem, but the example > was badly written for an embedded application because it call ruby > function without any protection (rb_protect(), etc) > > bad, bad, bad > > > Guy Decoux Are you saying that I should rb_protect on rb_gc? Would that catch the fault? That doesn't seem possible - but when it comes to ruby, Alot of things that are seem impossible :) This was only an example illustrating a problem I was having on a larger application. It was by no means meant to be more than that, but I do appreciate the warning. -Godot