From: Nobuyoshi Nakada Date: 2008-09-03T12:05:40+09:00 Subject: Re: rb_require() causes segfault Hi, At Wed, 3 Sep 2008 05:05:52 +0900, Bertram Scharpf wrote in [ruby-talk:313696]: > I just debugged into the JUMP_TAG() macro. Indeed the `prot_tag' > pointer is NULL. Is this a bug to be reported? No thank you. > void sure_require( char *name) > { > rb_rescue( &call_require, (VALUE) name, &rescue_require, Qnil); use rb_protect() instead of rb_rescue(), the latter catches only StandardError and its subclasses. -- Nobu Nakada