Hi,

In message "[ruby-talk:15077] Re: calling .inspect on array/hash causes core dump"
    on 01/05/14, Yukihiro Matsumoto <matz / zetabits.com> writes:

|I'll fix rb_ensure().

Here's the patch, if you'd like to preview.

--- eval.c	2001/05/11 05:24:54	1.176
+++ eval.c	2001/05/14 03:30:34
@@ -4006,5 +4006,5 @@
     POP_TAG();
-    retval = prot_tag->retval;	/* save retval */
+    retval = prot_tag ? prot_tag->retval : Qnil;	/* save retval */
     (*e_proc)(data2);
-    return_value(retval);
+    if (prot_tag) return_value(retval);