Skip to content

Instantly share code, notes, and snippets.

@znz
Last active April 1, 2019 09:56
Show Gist options
  • Save znz/5cfd09976460a406bb6d to your computer and use it in GitHub Desktop.
Save znz/5cfd09976460a406bb6d to your computer and use it in GitHub Desktop.
ruby 2.1.2 with libressl
Run options:
# Running tests:
......../usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb:107: [BUG] Segmentation fault at 0x00000000000001
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0026 p:---- s:0112 e:000111 CFUNC :initialize
c:0025 p:---- s:0110 e:000109 CFUNC :new
c:0024 p:0044 s:0106 e:000104 BLOCK /usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb:107 [FINISH]
c:0023 p:---- s:0102 e:000101 CFUNC :each
c:0022 p:0017 s:0099 e:000098 METHOD /usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb:105
c:0021 p:0038 s:0096 e:000095 METHOD /usr/local/lib/ruby/2.1.0/test/unit.rb:869
c:0020 p:0069 s:0091 e:000090 METHOD /usr/local/lib/ruby/2.1.0/minitest/unit.rb:1265
c:0019 p:0019 s:0083 e:000082 METHOD /usr/local/lib/ruby/2.1.0/test/unit/testcase.rb:17
c:0018 p:0068 s:0079 e:000078 BLOCK /usr/local/lib/ruby/2.1.0/minitest/unit.rb:940 [FINISH]
c:0017 p:---- s:0073 e:000072 CFUNC :map
c:0016 p:0103 s:0070 e:000069 METHOD /usr/local/lib/ruby/2.1.0/minitest/unit.rb:933
c:0015 p:0015 s:0060 e:000058 BLOCK /usr/local/lib/ruby/2.1.0/test/unit.rb:663 [FINISH]
c:0014 p:---- s:0055 e:000054 CFUNC :each
c:0013 p:0067 s:0052 e:000051 METHOD /usr/local/lib/ruby/2.1.0/test/unit.rb:661
c:0012 p:0135 s:0046 e:000045 METHOD /usr/local/lib/ruby/2.1.0/minitest/unit.rb:884
c:0011 p:0009 s:0036 e:000035 METHOD /usr/local/lib/ruby/2.1.0/minitest/unit.rb:1092
c:0010 p:0009 s:0033 e:000032 BLOCK /usr/local/lib/ruby/2.1.0/minitest/unit.rb:1079 [FINISH]
c:0009 p:---- s:0030 e:000029 CFUNC :each
c:0008 p:0048 s:0027 e:000026 METHOD /usr/local/lib/ruby/2.1.0/minitest/unit.rb:1078
c:0007 p:0017 s:0023 e:000022 METHOD /usr/local/lib/ruby/2.1.0/minitest/unit.rb:1066
c:0006 p:0019 s:0019 e:000018 METHOD /usr/local/lib/ruby/2.1.0/test/unit.rb:27
c:0005 p:0010 s:0015 e:000014 METHOD /usr/local/lib/ruby/2.1.0/test/unit.rb:780
c:0004 p:0027 s:0010 e:000008 BLOCK /usr/local/lib/ruby/2.1.0/test/unit.rb:372
c:0003 p:0031 s:0007 e:000006 METHOD /usr/local/lib/ruby/2.1.0/test/unit.rb:33
c:0002 p:0024 s:0004 e:000003 BLOCK /usr/local/lib/ruby/2.1.0/test/unit.rb:371 [FINISH]
c:0001 p:0000 s:0002 E:000348 TOP [FINISH]
-- Ruby level backtrace information ----------------------------------------
/usr/local/lib/ruby/2.1.0/test/unit.rb:371:in `block in autorun'
/usr/local/lib/ruby/2.1.0/test/unit.rb:33:in `run_once'
/usr/local/lib/ruby/2.1.0/test/unit.rb:372:in `block (2 levels) in autorun'
/usr/local/lib/ruby/2.1.0/test/unit.rb:780:in `run'
/usr/local/lib/ruby/2.1.0/test/unit.rb:27:in `run'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:1066:in `run'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:1078:in `_run'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:1078:in `each'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:1079:in `block in _run'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:1092:in `run_tests'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:884:in `_run_anything'
/usr/local/lib/ruby/2.1.0/test/unit.rb:661:in `_run_suites'
/usr/local/lib/ruby/2.1.0/test/unit.rb:661:in `each'
/usr/local/lib/ruby/2.1.0/test/unit.rb:663:in `block in _run_suites'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:933:in `_run_suite'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:933:in `map'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:940:in `block in _run_suite'
/usr/local/lib/ruby/2.1.0/test/unit/testcase.rb:17:in `run'
/usr/local/lib/ruby/2.1.0/minitest/unit.rb:1265:in `run'
/usr/local/lib/ruby/2.1.0/test/unit.rb:869:in `run_test'
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb:105:in `test_ciphers'
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb:105:in `each'
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb:107:in `block in test_ciphers'
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb:107:in `new'
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb:107:in `initialize'
-- C level backtrace information -------------------------------------------
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x186a4c) [0x7f9239164a4c]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x1f8453) [0x7f92391d6453]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_bug+0xb3) [0x7f92391d7633]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0xfc73e) [0x7f92390da73e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f9238bab340]
/usr/local/lib/libcrypto.so.30(ChaCha_set_iv+0x4c) [0x7f92372cbe8c] chacha/chacha-merged.c:107
/usr/local/lib/libcrypto.so.30(+0xd6c73) [0x7f92372f9c73] evp/e_chacha.c:56
/usr/local/lib/libcrypto.so.30(EVP_CipherInit_ex+0x117) [0x7f92372fdbf7] evp/evp_enc.c:232
/usr/local/lib/ruby/2.1.0/x86_64-linux/openssl.so(+0x17164) [0x7f9237849164] ossl_cipher.c:124
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x1796cf) [0x7f92391576cf]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17aaab) [0x7f9239158aab]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_class_new_instance+0x21) [0x7f92390602e1]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x1703f4) [0x7f923914e3f4]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x174dd5) [0x7f9239152dd5]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17874c) [0x7f923915674c]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_yield+0x26f) [0x7f923916160f]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_ary_each+0x52) [0x7f9239180722]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x1703f4) [0x7f923914e3f4]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17db2e) [0x7f923915bb2e]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x175716) [0x7f9239153716]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17874c) [0x7f923915674c]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_yield+0x26f) [0x7f923916160f]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x1a9e1d) [0x7f9239187e1d]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x1703f4) [0x7f923914e3f4]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x175716) [0x7f9239153716]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17874c) [0x7f923915674c]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_yield+0x26f) [0x7f923916160f]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_ary_each+0x52) [0x7f9239180722]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x1703f4) [0x7f923914e3f4]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17db2e) [0x7f923915bb2e]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x175716) [0x7f9239153716]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17874c) [0x7f923915674c]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_yield+0x26f) [0x7f923916160f]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_ary_each+0x52) [0x7f9239180722]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x1703f4) [0x7f923914e3f4]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17db2e) [0x7f923915bb2e]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x175716) [0x7f9239153716]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17874c) [0x7f923915674c]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17c07f) [0x7f923915a07f]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x17c0ba) [0x7f923915a0ba]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_proc_call+0x42) [0x7f9239009362]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(rb_exec_end_proc+0x166) [0x7f9239003706]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x257b8) [0x7f92390037b8]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(ruby_cleanup+0x2da) [0x7f9239003d2a]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(ruby_run_node+0x34) [0x7f9239003fb4]
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x226ab) [0x7f92390006ab]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f92380b3ec5] ossl_x509store.c:252
/usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers(+0x226d9) [0x7f92390006d9]
-- Other runtime information -----------------------------------------------
* Loaded script: /usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb: OpenSSL::TestCipher#test_ciphers
* Loaded features:
0 enumerator.so
1 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
2 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
3 /usr/local/lib/ruby/2.1.0/x86_64-linux/rbconfig.rb
4 /usr/local/lib/ruby/2.1.0/rubygems/compatibility.rb
5 /usr/local/lib/ruby/2.1.0/rubygems/defaults.rb
6 /usr/local/lib/ruby/2.1.0/rubygems/deprecate.rb
7 /usr/local/lib/ruby/2.1.0/rubygems/errors.rb
8 /usr/local/lib/ruby/2.1.0/rubygems/version.rb
9 /usr/local/lib/ruby/2.1.0/rubygems/requirement.rb
10 /usr/local/lib/ruby/2.1.0/rubygems/platform.rb
11 /usr/local/lib/ruby/2.1.0/rubygems/basic_specification.rb
12 /usr/local/lib/ruby/2.1.0/rubygems/stub_specification.rb
13 /usr/local/lib/ruby/2.1.0/rubygems/util/stringio.rb
14 /usr/local/lib/ruby/2.1.0/rubygems/specification.rb
15 /usr/local/lib/ruby/2.1.0/rubygems/exceptions.rb
16 /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb
17 thread.rb
18 /usr/local/lib/ruby/2.1.0/x86_64-linux/thread.so
19 /usr/local/lib/ruby/2.1.0/monitor.rb
20 /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb
21 /usr/local/lib/ruby/2.1.0/rubygems.rb
22 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest.so
23 /usr/local/lib/ruby/2.1.0/digest.rb
24 /usr/local/lib/ruby/2.1.0/x86_64-linux/openssl.so
25 /usr/local/lib/ruby/2.1.0/openssl/bn.rb
26 /usr/local/lib/ruby/2.1.0/openssl/cipher.rb
27 /usr/local/lib/ruby/2.1.0/x86_64-linux/stringio.so
28 /usr/local/lib/ruby/2.1.0/openssl/config.rb
29 /usr/local/lib/ruby/2.1.0/openssl/digest.rb
30 /usr/local/lib/ruby/2.1.0/openssl/x509.rb
31 /usr/local/lib/ruby/2.1.0/openssl/buffering.rb
32 /usr/local/lib/ruby/2.1.0/x86_64-linux/fcntl.so
33 /usr/local/lib/ruby/2.1.0/openssl/ssl.rb
34 /usr/local/lib/ruby/2.1.0/openssl.rb
35 /usr/local/lib/ruby/2.1.0/rubygems/dependency.rb
36 /usr/local/lib/ruby/2.1.0/rubygems/path_support.rb
37 /usr/local/lib/ruby/2.1.0/optparse.rb
38 /usr/local/lib/ruby/2.1.0/minitest/unit.rb
39 /usr/local/lib/ruby/2.1.0/prettyprint.rb
40 /usr/local/lib/ruby/2.1.0/pp.rb
41 /usr/local/lib/ruby/2.1.0/test/unit/assertions.rb
42 /usr/local/lib/ruby/2.1.0/test/unit/testcase.rb
43 /usr/local/lib/ruby/2.1.0/test/unit.rb
44 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest/md5.so
45 /usr/local/lib/ruby/2.1.0/delegate.rb
46 /usr/local/lib/ruby/2.1.0/x86_64-linux/etc.so
47 /usr/local/lib/ruby/2.1.0/fileutils.rb
48 /usr/local/lib/ruby/2.1.0/tmpdir.rb
49 /usr/local/lib/ruby/2.1.0/tempfile.rb
50 /usr/local/lib/ruby/2.1.0/x86_64-linux/socket.so
51 /usr/local/lib/ruby/2.1.0/socket.rb
52 /usr/local/lib/ruby/2.1.0/open3.rb
53 /usr/local/lib/ruby/2.1.0/timeout.rb
54 /usr/local/src/ruby-2.1.2/test/ruby/envutil.rb
55 /usr/local/src/ruby-2.1.2/test/openssl/utils.rb
* Process memory map:
7f92363cd000-7f92363e3000 r-xp 00000000 00:19 141 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f92363e3000-7f92365e2000 ---p 00016000 00:19 141 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f92365e2000-7f92365e3000 rw-p 00015000 00:19 141 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f92365e3000-7f923660b000 r-xp 00000000 00:19 136 /usr/local/lib/ruby/2.1.0/x86_64-linux/socket.so
7f923660b000-7f923680b000 ---p 00028000 00:19 136 /usr/local/lib/ruby/2.1.0/x86_64-linux/socket.so
7f923680b000-7f923680c000 r--p 00028000 00:19 136 /usr/local/lib/ruby/2.1.0/x86_64-linux/socket.so
7f923680c000-7f923680d000 rw-p 00029000 00:19 136 /usr/local/lib/ruby/2.1.0/x86_64-linux/socket.so
7f923680d000-7f9236810000 r-xp 00000000 00:19 134 /usr/local/lib/ruby/2.1.0/x86_64-linux/etc.so
7f9236810000-7f9236a0f000 ---p 00003000 00:19 134 /usr/local/lib/ruby/2.1.0/x86_64-linux/etc.so
7f9236a0f000-7f9236a10000 r--p 00002000 00:19 134 /usr/local/lib/ruby/2.1.0/x86_64-linux/etc.so
7f9236a10000-7f9236a11000 rw-p 00003000 00:19 134 /usr/local/lib/ruby/2.1.0/x86_64-linux/etc.so
7f9236a11000-7f9236a12000 r-xp 00000000 00:19 129 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest/md5.so
7f9236a12000-7f9236c11000 ---p 00001000 00:19 129 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest/md5.so
7f9236c11000-7f9236c12000 r--p 00000000 00:19 129 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest/md5.so
7f9236c12000-7f9236c13000 rw-p 00001000 00:19 129 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest/md5.so
7f9236c13000-7f9236c14000 r-xp 00000000 00:19 113 /usr/local/lib/ruby/2.1.0/x86_64-linux/fcntl.so
7f9236c14000-7f9236e13000 ---p 00001000 00:19 113 /usr/local/lib/ruby/2.1.0/x86_64-linux/fcntl.so
7f9236e13000-7f9236e14000 r--p 00000000 00:19 113 /usr/local/lib/ruby/2.1.0/x86_64-linux/fcntl.so
7f9236e14000-7f9236e15000 rw-p 00001000 00:19 113 /usr/local/lib/ruby/2.1.0/x86_64-linux/fcntl.so
7f9236e15000-7f9236e1d000 r-xp 00000000 00:19 108 /usr/local/lib/ruby/2.1.0/x86_64-linux/stringio.so
7f9236e1d000-7f923701c000 ---p 00008000 00:19 108 /usr/local/lib/ruby/2.1.0/x86_64-linux/stringio.so
7f923701c000-7f923701d000 r--p 00007000 00:19 108 /usr/local/lib/ruby/2.1.0/x86_64-linux/stringio.so
7f923701d000-7f923701e000 rw-p 00008000 00:19 108 /usr/local/lib/ruby/2.1.0/x86_64-linux/stringio.so
7f923701e000-7f9237021000 r-xp 00000000 00:19 103 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest.so
7f9237021000-7f9237221000 ---p 00003000 00:19 103 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest.so
7f9237221000-7f9237222000 r--p 00003000 00:19 103 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest.so
7f9237222000-7f9237223000 rw-p 00004000 00:19 103 /usr/local/lib/ruby/2.1.0/x86_64-linux/digest.so
7f9237223000-7f92373af000 r-xp 00000000 00:19 101 /usr/local/lib/libcrypto.so.30.0.0
7f92373af000-7f92375ae000 ---p 0018c000 00:19 101 /usr/local/lib/libcrypto.so.30.0.0
7f92375ae000-7f92375c6000 r--p 0018b000 00:19 101 /usr/local/lib/libcrypto.so.30.0.0
7f92375c6000-7f92375d3000 rw-p 001a3000 00:19 101 /usr/local/lib/libcrypto.so.30.0.0
7f92375d3000-7f92375d7000 rw-p 00000000 00:00 0
7f92375d7000-7f9237628000 r-xp 00000000 00:19 99 /usr/local/lib/libssl.so.27.0.0
7f9237628000-7f9237828000 ---p 00051000 00:19 99 /usr/local/lib/libssl.so.27.0.0
7f9237828000-7f923782b000 r--p 00051000 00:19 99 /usr/local/lib/libssl.so.27.0.0
7f923782b000-7f9237831000 rw-p 00054000 00:19 99 /usr/local/lib/libssl.so.27.0.0
7f9237831000-7f9237832000 rw-p 00000000 00:00 0
7f9237832000-7f9237884000 r-xp 00000000 00:19 97 /usr/local/lib/ruby/2.1.0/x86_64-linux/openssl.so
7f9237884000-7f9237a83000 ---p 00052000 00:19 97 /usr/local/lib/ruby/2.1.0/x86_64-linux/openssl.so
7f9237a83000-7f9237a84000 r--p 00051000 00:19 97 /usr/local/lib/ruby/2.1.0/x86_64-linux/openssl.so
7f9237a84000-7f9237a86000 rw-p 00052000 00:19 97 /usr/local/lib/ruby/2.1.0/x86_64-linux/openssl.so
7f9237a86000-7f9237a87000 rw-p 00000000 00:00 0
7f9237a87000-7f9237a8a000 r-xp 00000000 00:19 89 /usr/local/lib/ruby/2.1.0/x86_64-linux/thread.so
7f9237a8a000-7f9237c89000 ---p 00003000 00:19 89 /usr/local/lib/ruby/2.1.0/x86_64-linux/thread.so
7f9237c89000-7f9237c8a000 r--p 00002000 00:19 89 /usr/local/lib/ruby/2.1.0/x86_64-linux/thread.so
7f9237c8a000-7f9237c8b000 rw-p 00003000 00:19 89 /usr/local/lib/ruby/2.1.0/x86_64-linux/thread.so
7f9237c8b000-7f9237c8d000 r-xp 00000000 00:19 55 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f9237c8d000-7f9237e8d000 ---p 00002000 00:19 55 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f9237e8d000-7f9237e8e000 r--p 00002000 00:19 55 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f9237e8e000-7f9237e8f000 rw-p 00003000 00:19 55 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f9237e8f000-7f9237e91000 r-xp 00000000 00:19 53 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f9237e91000-7f9238090000 ---p 00002000 00:19 53 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f9238090000-7f9238091000 r--p 00001000 00:19 53 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f9238091000-7f9238092000 rw-p 00002000 00:19 53 /usr/local/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f9238092000-7f923824e000 r-xp 00000000 00:19 42 /lib/x86_64-linux-gnu/libc-2.19.so
7f923824e000-7f923844d000 ---p 001bc000 00:19 42 /lib/x86_64-linux-gnu/libc-2.19.so
7f923844d000-7f9238451000 r--p 001bb000 00:19 42 /lib/x86_64-linux-gnu/libc-2.19.so
7f9238451000-7f9238453000 rw-p 001bf000 00:19 42 /lib/x86_64-linux-gnu/libc-2.19.so
7f9238453000-7f9238458000 rw-p 00000000 00:00 0
7f9238458000-7f923855d000 r-xp 00000000 00:19 40 /lib/x86_64-linux-gnu/libm-2.19.so
7f923855d000-7f923875c000 ---p 00105000 00:19 40 /lib/x86_64-linux-gnu/libm-2.19.so
7f923875c000-7f923875d000 r--p 00104000 00:19 40 /lib/x86_64-linux-gnu/libm-2.19.so
7f923875d000-7f923875e000 rw-p 00105000 00:19 40 /lib/x86_64-linux-gnu/libm-2.19.so
7f923875e000-7f9238767000 r-xp 00000000 00:19 38 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f9238767000-7f9238967000 ---p 00009000 00:19 38 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f9238967000-7f9238968000 r--p 00009000 00:19 38 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f9238968000-7f9238969000 rw-p 0000a000 00:19 38 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f9238969000-7f9238997000 rw-p 00000000 00:00 0
7f9238997000-7f923899a000 r-xp 00000000 00:19 36 /lib/x86_64-linux-gnu/libdl-2.19.so
7f923899a000-7f9238b99000 ---p 00003000 00:19 36 /lib/x86_64-linux-gnu/libdl-2.19.so
7f9238b99000-7f9238b9a000 r--p 00002000 00:19 36 /lib/x86_64-linux-gnu/libdl-2.19.so
7f9238b9a000-7f9238b9b000 rw-p 00003000 00:19 36 /lib/x86_64-linux-gnu/libdl-2.19.so
7f9238b9b000-7f9238bb4000 r-xp 00000000 00:19 34 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f9238bb4000-7f9238db3000 ---p 00019000 00:19 34 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f9238db3000-7f9238db4000 r--p 00018000 00:19 34 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f9238db4000-7f9238db5000 rw-p 00019000 00:19 34 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f9238db5000-7f9238db9000 rw-p 00000000 00:00 0
7f9238db9000-7f9238ddc000 r-xp 00000000 00:19 30 /lib/x86_64-linux-gnu/ld-2.19.so
7f9238ecd000-7f9238fd5000 rw-p 00000000 00:00 0
7f9238fd5000-7f9238fd6000 ---p 00000000 00:00 0
7f9238fd6000-7f9238fd9000 rw-p 00000000 00:00 0 [stack:1283]
7f9238fd9000-7f9238fdb000 rw-p 00000000 00:00 0
7f9238fdb000-7f9238fdc000 r--p 00022000 00:19 30 /lib/x86_64-linux-gnu/ld-2.19.so
7f9238fdc000-7f9238fdd000 rw-p 00023000 00:19 30 /lib/x86_64-linux-gnu/ld-2.19.so
7f9238fdd000-7f9238fde000 rw-p 00000000 00:00 0
7f9238fde000-7f92392a0000 r-xp 00000000 00:19 25 /usr/local/bin/ruby
7f92394a0000-7f92394a5000 r--p 002c2000 00:19 25 /usr/local/bin/ruby
7f92394a5000-7f92394a7000 rw-p 002c7000 00:19 25 /usr/local/bin/ruby
7f92394a7000-7f92394cd000 rw-p 00000000 00:00 0
7f9239d58000-7f923a7f1000 rw-p 00000000 00:00 0 [heap]
7fffc22ff000-7fffc2320000 rw-p 00000000 00:00 0 [stack]
7fffc23fe000-7fffc2400000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
[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
FROM ubuntu:14.04
ADD sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install wget autoconf bison build-essential libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev
RUN cd /usr/local/src && wget -N http://ftp.jaist.ac.jp/pub/OpenBSD/LibreSSL/libressl-2.0.3.tar.gz && tar xvf libressl-2.0.3.tar.gz
RUN cd /usr/local/src/libressl-2.0.3 && ./configure && make check && make install
RUN /sbin/ldconfig
RUN cd /usr/local/src && wget -N http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz && tar xvf ruby-2.1.2.tar.gz
RUN cd /usr/local/src/ruby-2.1.2 && ./configure --disable-install-doc && make install
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty main restricted universe multiverse
deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty main restricted universe multiverse
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
% docker build -t local/libressl:2.0.3 .
% docker run --rm local/libressl:2.0.3 ruby /usr/local/src/ruby-2.1.2/test/openssl/test_cipher.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment