次のようにすると core を吐きます。

% ./ruby -ropenssl -e '
s = "0" * 0x20000
OpenSSL::ASN1.traverse(s) {|o| s.replace ""; p o }
'
[0, 0, 2, 48, true, :UNIVERSAL, 16]
-e:3: [BUG] Segmentation fault
ruby 1.9.0 (2004-12-20) [i686-linux]

zsh: abort (core dumped)  ./ruby -ropenssl -e 
% gdb ruby core 
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `./ruby -ropenssl -e 
s = "0" * 0x20000
OpenSSL::ASN1.traverse(s) {|o| s.replace'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /home/akr/ruby/head-ruby/lib/ruby/1.9/i686-linux/openssl.so...done.
Loaded symbols for /home/akr/ruby/head-ruby/lib/ruby/1.9/i686-linux/openssl.so
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.7...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.7
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.7
#0  0x4009e6b1 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x4009e6b1 in kill () from /lib/libc.so.6
#1  0x4009e435 in raise () from /lib/libc.so.6
#2  0x4009f978 in abort () from /lib/libc.so.6
#3  0x080d5946 in rb_bug (fmt=0x0) at error.c:214
#4  0x080b2902 in sigsegv (sig=11) at signal.c:446
#5  <signal handler called>
#6  0x402e1aaa in ASN1_get_object () from /usr/lib/i686/cmov/libcrypto.so.0.9.7
#7  0x4020d800 in __JCR_LIST__ () from /home/akr/ruby/head-ruby/lib/ruby/1.9/i686-linux/openssl.so
#8  0x00000000 in ?? ()
#9  0xbfffe7b8 in ?? ()
#10 0x080c6bfa in rb_ary_new2 (len=-1073747936) at array.c:141
Previous frame inner to this frame (corrupt stack?)
(gdb) 
-- 
[田中 哲][たなか あきら][Tanaka Akira]