From: ts Date: 2003-07-23T20:57:55+09:00 Subject: Re: Embedding problem - SEGV >>>>> "B" == Brian Candler writes: B> I have grepped the source and found "ruby_init_loadpath" to set $:, but is B> there something else I need to call to fix the SEGV problem? Use rb_protect() to run your code. Something like ruby_init(); ruby_init_loadpath(); result = rb_protect(some_functions, some_args, &status); some_functions() will call rb_require(), ... B> Changing the rb_require to B> rb_eval_string("require '/nonexistent/file'"); rb_eval_string_protect("require '/nonexistent/file'", &status); B> still generates the SEGV and core dump B> ************ Guy Decoux