Bugs item #9525, was opened at 2007-03-24 22:16
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9525&group_id=426

Category: None
Group: 1.9.x
Status: Open
Resolution: None
Priority: 3
Submitted By: NM RN (knyt)
Assigned to: Nobody (None)
Summary: Inclusion of OpenSSL makes Ruby segfault

Initial Comment:
Adding 'openssl' to ext/Setup produces this on any execution:

###
-- stack frame ------------
-- control frame ----------
c:0001 p:---- s:0000 b:-001 l:000000 d:000000 ------ 
---------------------------
-- backtrace of native function call (Use addr2line) --
0x815a5ea
0x80ce070
0x8133bf8
0xffffe420
0x807f005
0x806ab8f
0x8131c9b
0x8133594
0x813277d
0x81330f7
0x80d48ae
0x806aa6a
0xb7c46878
0x806a9a1
-------------------------------------------------------
[BUG] Segmentation fault
ruby 1.9.0 (2007-03-23) [i686-linux]

Aborted
###

Running those addresses through addr2line on {src}/ruby:

###
/home/kennyt/ruby/vm_dump.c:603
/home/kennyt/ruby/error.c:164
/home/kennyt/ruby/signal.c:459
??:0
/home/kennyt/ruby/ext/openssl/ossl_asn1.c:1123
ext/extinit.c:15
/home/kennyt/ruby/ruby.c:374
/home/kennyt/ruby/ruby.c:1009
/home/kennyt/ruby/ruby.c:881
/home/kennyt/ruby/ruby.c:1274
/home/kennyt/ruby/eval.c:146
/home/kennyt/ruby/main.c:47
??:0
??:0
###

This crash has been in the trunk for a while now, so I guess it hasn't been noticed.

OpenSSL 0.9.8d 28 Sep 2006
OpenSSL 0.9.8e 23 Feb 2007

This is the test file:
###
puts 'test'
###

./miniruby test.rb, of course, works fine.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9525&group_id=426