$ ruby -e 'p [].to_s.strip.to_i'
-e:1: [BUG] Segmentation fault
ruby 1.7.3 (2002-09-27) [i386-freebsd4]
Abort (core dumped)

See attached.  -sc

-- 
Sean Chittenden
Index: bignum.c
===================================================================
RCS file: /src/ruby/bignum.c,v
retrieving revision 1.78
diff -u -r1.78 bignum.c
--- bignum.c	2002/10/07 07:43:41	1.78
+++ bignum.c	2002/10/13 07:19:06
@@ -502,6 +502,8 @@
     StringValue(str);
     s = RSTRING(str)->ptr;
     len = RSTRING(str)->len;
+    if (len == 0)
+      return(INT2NUM(0));
     if (s[len]) {		/* no sentinel somehow */
 	char *p = ALLOCA_N(char, len+1);