Issue #7008 has been updated by drookie (Eugene M. Zheganin Eugene M. Zheganin).


I have indeed 0.9.7 in base system and 1.0.0 built from sources, in different prfixes. Is there a way of building ruby only with a particular openssl version ?
----------------------------------------
Bug #7008: rake is crashing when trying to compile ffi gem
https://bugs.ruby-lang.org/issues/7008#change-29285

Author: drookie (Eugene M. Zheganin Eugene M. Zheganin)
Status: Assigned
Priority: Normal
Assignee: MartinBosslet (Martin Bosslet)
Category: ext
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [i386-solaris2.10]


# uname -a
SunOS japet 5.10 Generic_142910-17 i86pc i386 i86pc

ruby is built from sources, -m64

# ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i386-solaris2.10]

When I try to build a ffi gem myself (from it's sources) and I launch rake, it crashes:

[root@japet ffi-1.1.5]# rake
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/openssl.so: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [i386-solaris2.10]

-- Control frame information -----------------------------------------------
c:0028 p:-1997416 s:0098 b:0098 l:000097 d:000097 TOP   
c:0027 p:---- s:0096 b:0096 l:000095 d:000095 CFUNC  :require
c:0026 p:0036 s:0092 b:0092 l:000091 d:000091 METHOD /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0025 p:0011 s:0085 b:0085 l:000084 d:000084 TOP    /usr/local/ruby-1.9.3/lib/ruby/1.9.1/openssl.rb:17
c:0024 p:---- s:0083 b:0083 l:000082 d:000082 FINISH
c:0023 p:---- s:0081 b:0081 l:000080 d:000080 CFUNC  :require
c:0022 p:0036 s:0077 b:0077 l:000076 d:000076 METHOD /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0021 p:0049 s:0070 b:0070 l:000069 d:000069 TOP    /usr/local/ruby-1.9.3/lib/ruby/1.9.1/net/smtp.rb:26
c:0020 p:---- s:0068 b:0068 l:000067 d:000067 FINISH
c:0019 p:---- s:0066 b:0066 l:000065 d:000065 CFUNC  :require
c:0018 p:0036 s:0062 b:0062 l:000061 d:000061 METHOD /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0017 p:0029 s:0055 b:0055 l:000051 d:000054 BLOCK  /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ffi-1.1.5/tasks/ann.rake:5
c:0016 p:0014 s:0052 b:0052 l:000051 d:000051 TOP    /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ffi-1.1.5/tasks/ann.rake:2
c:0015 p:---- s:0050 b:0050 l:000049 d:000049 FINISH
c:0014 p:---- s:0048 b:0048 l:000047 d:000047 CFUNC  :load
c:0013 p:0013 s:0044 b:0044 l:000043 d:000043 METHOD /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/rake_module.rb:25
c:0012 p:0032 s:0040 b:0040 l:000039 d:000039 METHOD /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/default_loader.rb:6
c:0011 p:0106 s:0036 b:0036 l:000035 d:000035 METHOD /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:569
c:0010 p:0306 s:0029 b:0029 l:001fe8 d:001fe8 METHOD /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:508
c:0009 p:0009 s:0024 b:0024 l:000017 d:000023 BLOCK  /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:82
c:0008 p:0009 s:0022 b:0022 l:000021 d:000021 METHOD /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:133
c:0007 p:0011 s:0018 b:0018 l:000017 d:000017 METHOD /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:81
c:0006 p:0019 s:0015 b:0015 l:000008 d:000014 BLOCK  /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:65
c:0005 p:0009 s:0013 b:0013 l:000012 d:000012 METHOD /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:133
c:0004 p:0011 s:0009 b:0009 l:000008 d:000008 METHOD /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:63
c:0003 p:0048 s:0006 b:0006 l:001798 d:000268 EVAL   /usr/local/ruby-1.9.3/bin/rake:32
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001798 d:001798 TOP   

-- Ruby level backtrace information ----------------------------------------
/usr/local/ruby-1.9.3/bin/rake:32:in `<main>'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:65:in `block in run'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:81:in `load_rakefile'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:82:in `block in load_rakefile'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:508:in `raw_load_rakefile'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb:569:in `load_imports'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/default_loader.rb:6:in `load'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load'
/usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ffi-1.1.5/tasks/ann.rake:2:in `<top (required)>'
/usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ffi-1.1.5/tasks/ann.rake:5:in `rescue in <top (required)>'
/usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/net/smtp.rb:26:in `<top (required)>'
/usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/ruby-1.9.3/lib/ruby/1.9.1/openssl.rb:17:in `<top (required)>'
/usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

-- Other runtime information -----------------------------------------------

* Loaded script: /usr/local/ruby-1.9.3/bin/rake

* Loaded features:

    0 enumerator.so
    1 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/enc/encdb.so
    2 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/enc/trans/transdb.so
    3 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    4 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/rbconfig.rb
    5 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    6 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    7 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
    8 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems.rb
    9 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/version.rb
   10 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/etc.so
   11 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/fileutils.rb
   12 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/thread.rb
   13 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/singleton.rb
   14 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/monitor.rb
   15 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/optparse.rb
   16 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/ostruct.rb
   17 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/ext/core.rb
   18 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/invocation_exception_mixin.rb
   19 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/task.rb
   20 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/early_time.rb
   21 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/file_task.rb
   22 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/file_creation_task.rb
   23 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/shellwords.rb
   24 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/task_manager.rb
   25 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/alt_system.rb
   26 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/win32.rb
   27 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/application.rb
   28 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/ext/module.rb
   29 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/ext/string.rb
   30 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/ext/time.rb
   31 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/task_argument_error.rb
   32 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/rule_recursion_overflow_error.rb
   33 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/rake_module.rb
   34 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/pseudo_status.rb
   35 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/task_arguments.rb
   36 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/invocation_chain.rb
   37 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/multi_task.rb
   38 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/file_utils.rb
   39 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/file_utils_ext.rb
   40 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/dsl_definition.rb
   41 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/cloneable.rb
   42 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/pathmap.rb
   43 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/file_list.rb
   44 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/default_loader.rb
   45 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/name_space.rb
   46 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake.rb
   47 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
   48 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
   49 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
   50 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
   51 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
   52 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
   53 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/clean.rb
   54 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/tasklib.rb
   55 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/syntax_error.rb
   56 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/psych.so
   57 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/stringio.so
   58 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/nodes/node.rb
   59 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/nodes/stream.rb
   60 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/nodes/document.rb
   61 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/nodes/sequence.rb
   62 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/nodes/scalar.rb
   63 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/nodes/mapping.rb
   64 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/nodes/alias.rb
   65 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/nodes.rb
   66 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/streaming.rb
   67 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/visitors/visitor.rb
   68 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/strscan.so
   69 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/scalar_scanner.rb
   70 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/visitors/to_ruby.rb
   71 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/visitors/emitter.rb
   72 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb
   73 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/json/ruby_events.rb
   74 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/visitors/json_tree.rb
   75 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/visitors/depth_first.rb
   76 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/visitors.rb
   77 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/handler.rb
   78 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/tree_builder.rb
   79 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/parser.rb
   80 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/omap.rb
   81 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/set.rb
   82 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/coder.rb
   83 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/core_ext.rb
   84 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/date_core.so
   85 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/date/format.rb
   86 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/date.rb
   87 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/deprecated.rb
   88 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/stream.rb
   89 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/json/yaml_events.rb
   90 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/json/tree_builder.rb
   91 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/json/stream.rb
   92 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych/handlers/document_stream.rb
   93 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/psych.rb
   94 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/yaml.rb
   95 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/pathname.so
   96 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/pathname.rb
   97 /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-compiler-0.8.1/lib/rake/baseextensiontask.rb
   98 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/rake/packagetask.rb
   99 /usr/local/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/package_task.rb
  100 /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-compiler-0.8.1/lib/rake/extensiontask.rb
  101 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/find.rb
  102 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/socket.so
  103 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/socket.rb
  104 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/timeout.rb
  105 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/net/protocol.rb
  106 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/digest.so
  107 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/digest.rb
  108 /usr/local/ruby-1.9.3/lib/ruby/1.9.1/i386-solaris2.10/digest/md5.so

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort (core dumped)


-- 
http://bugs.ruby-lang.org/