From: Paul Boekholt
Date: 2008-05-28T06:04:26+09:00
Subject: Ruby 1.9 "exception reentered"
Hi,
I've made a module that embeds a Ruby interpreter into S-Lang
(http://www.cheesit.com/downloads/slang/slruby.html). The module
worked OK until Ruby 1.9 revision 15996 came out:
r15996 | nobu | 2008-04-14 05:52:27 +0200 (ma, 14 apr 2008) | 2 lines
* gc.c (Init_stack): use ruby_init_stack. [ruby-dev:34350]
Now I get this error:
slsh> require("slruby");
Ruby error: fatal: exception reentered
Traceback: rb_load_file
slruby.sl imports the module (it's dynamically loaded) and then tries
to load itself as a Ruby file using the S-Lang function
rb_load_file(), which calls rb_load_protect(). If I first import it
and then require slruby.sl, it works sometimes:
slsh> import("ruby");
slsh> require("slruby");
slsh>
Can someone explain what causes this error?