Project

General

Profile

Bug #9677 ยป openssl_to_text_segfault.txt

Full output, including stack trace. - DavidEGrayson (David Grayson), 03/26/2014 05:51 AM

 
$ ruby -v -ropenssl -e "OpenSSL::PKey::EC.new('secp256k1').to_text"
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
-e:1: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0007 e:000006 CFUNC :to_text
c:0002 p:0019 s:0004 E:002138 EVAL -e:1 [FINISH]
c:0001 p:0000 s:0002 E:001da8 TOP [FINISH]

-- Ruby level backtrace information ----------------------------------------
-e:1:in `<main>'
-e:1:in `to_text'

-- C level backtrace information -------------------------------------------
ruby(+0x18677c) [0x7f9224e5c77c]
ruby(+0x1f90a3) [0x7f9224ecf0a3]
ruby(rb_bug+0xb3) [0x7f9224ed0283]
ruby(+0xfc44e) [0x7f9224dd244e]
/usr/lib/libpthread.so.0(+0xf870) [0x7f92248a6870]
/usr/lib/libcrypto.so.1.0.0(EC_POINT_point2oct+0x13) [0x7f9222c46983] regenc.c:50
/usr/lib/libcrypto.so.1.0.0(EC_POINT_point2bn+0x2c) [0x7f9222c20bdc] random.c:1369
/usr/lib/libcrypto.so.1.0.0(+0xbee0c) [0x7f9222c25e0c] rational.c:1208
/usr/lib/libcrypto.so.1.0.0(EC_KEY_print+0x50) [0x7f9222c275c0] rational.c:1338
/opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/openssl.so(+0x22add) [0x7f92231fcadd] encoding.c:203
ruby(+0x170104) [0x7f9224e46104]
ruby(+0x17d83e) [0x7f9224e5383e]
ruby(+0x174af5) [0x7f9224e4aaf5]
ruby(+0x17846c) [0x7f9224e4e46c]
ruby(rb_iseq_eval_main+0x1f6) [0x7f9224e5a4f6]
ruby(+0x22f5a) [0x7f9224cf8f5a]
ruby(ruby_run_node+0x2d) [0x7f9224cfc47d]
ruby(+0x22b6b) [0x7f9224cf8b6b]
/usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7f9223b59b05] regparse.c:1666
ruby(+0x22b99) [0x7f9224cf8b99]

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

* Loaded script: -e

* Loaded features:

0 enumerator.so
1 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
2 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
3 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/rbconfig.rb
4 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/compatibility.rb
5 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/defaults.rb
6 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/deprecate.rb
7 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/errors.rb
8 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/version.rb
9 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/requirement.rb
10 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/platform.rb
11 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/basic_specification.rb
12 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/stub_specification.rb
13 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/util/stringio.rb
14 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/specification.rb
15 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/exceptions.rb
16 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb
17 thread.rb
18 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/thread.so
19 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/monitor.rb
20 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb
21 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems.rb
22 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/digest.so
23 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/digest.rb
24 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/openssl.so
25 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl/bn.rb
26 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl/cipher.rb
27 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/stringio.so
28 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl/config.rb
29 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl/digest.rb
30 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl/x509.rb
31 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl/buffering.rb
32 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/fcntl.so
33 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl/ssl.rb
34 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl.rb

* Process memory map:

7f922212e000-7f9222143000 r-xp 00000000 08:02 12327124 /usr/lib/libgcc_s.so.1
7f9222143000-7f9222343000 ---p 00015000 08:02 12327124 /usr/lib/libgcc_s.so.1
7f9222343000-7f9222344000 rw-p 00015000 08:02 12327124 /usr/lib/libgcc_s.so.1
7f9222344000-7f9222345000 r-xp 00000000 08:02 3547449 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/fcntl.so
7f9222345000-7f9222544000 ---p 00001000 08:02 3547449 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/fcntl.so
7f9222544000-7f9222545000 rw-p 00000000 08:02 3547449 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/fcntl.so
7f9222545000-7f922254d000 r-xp 00000000 08:02 3547446 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/stringio.so
7f922254d000-7f922274c000 ---p 00008000 08:02 3547446 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/stringio.so
7f922274c000-7f922274d000 rw-p 00007000 08:02 3547446 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/stringio.so
7f922274d000-7f9222750000 r-xp 00000000 08:02 3547450 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/digest.so
7f9222750000-7f9222950000 ---p 00003000 08:02 3547450 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/digest.so
7f9222950000-7f9222951000 rw-p 00003000 08:02 3547450 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/digest.so
7f9222951000-7f9222966000 r-xp 00000000 08:02 12327165 /usr/lib/libz.so.1.2.8
7f9222966000-7f9222b65000 ---p 00015000 08:02 12327165 /usr/lib/libz.so.1.2.8
7f9222b65000-7f9222b66000 r--p 00014000 08:02 12327165 /usr/lib/libz.so.1.2.8
7f9222b66000-7f9222b67000 rw-p 00015000 08:02 12327165 /usr/lib/libz.so.1.2.8
7f9222b67000-7f9222d44000 r-xp 00000000 08:02 12332520 /usr/lib/libcrypto.so.1.0.0
7f9222d44000-7f9222f43000 ---p 001dd000 08:02 12332520 /usr/lib/libcrypto.so.1.0.0
7f9222f43000-7f9222f5e000 r--p 001dc000 08:02 12332520 /usr/lib/libcrypto.so.1.0.0
7f9222f5e000-7f9222f69000 rw-p 001f7000 08:02 12332520 /usr/lib/libcrypto.so.1.0.0
7f9222f69000-7f9222f6d000 rw-p 00000000 00:00 0
7f9222f6d000-7f9222fd0000 r-xp 00000000 08:02 12332519 /usr/lib/libssl.so.1.0.0
7f9222fd0000-7f92231cf000 ---p 00063000 08:02 12332519 /usr/lib/libssl.so.1.0.0
7f92231cf000-7f92231d3000 r--p 00062000 08:02 12332519 /usr/lib/libssl.so.1.0.0
7f92231d3000-7f92231da000 rw-p 00066000 08:02 12332519 /usr/lib/libssl.so.1.0.0
7f92231da000-7f922322b000 r-xp 00000000 08:02 3547432 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/openssl.so
7f922322b000-7f922342b000 ---p 00051000 08:02 3547432 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/openssl.so
7f922342b000-7f922342e000 rw-p 00051000 08:02 3547432 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/openssl.so
7f922342e000-7f922342f000 rw-p 00000000 00:00 0
7f922342f000-7f9223432000 r-xp 00000000 08:02 3547439 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/thread.so
7f9223432000-7f9223631000 ---p 00003000 08:02 3547439 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/thread.so
7f9223631000-7f9223632000 rw-p 00002000 08:02 3547439 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/thread.so
7f9223632000-7f9223634000 r-xp 00000000 08:02 4200860 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f9223634000-7f9223834000 ---p 00002000 08:02 4200860 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f9223834000-7f9223835000 rw-p 00002000 08:02 4200860 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f9223835000-7f9223837000 r-xp 00000000 08:02 4200879 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f9223837000-7f9223a36000 ---p 00002000 08:02 4200879 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f9223a36000-7f9223a37000 rw-p 00001000 08:02 4200879 /opt/rubies/ruby-2.1.1/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f9223a37000-7f9223b38000 rw-p 00000000 00:00 0
7f9223b38000-7f9223cd8000 r-xp 00000000 08:02 12324052 /usr/lib/libc-2.18.so
7f9223cd8000-7f9223ed8000 ---p 001a0000 08:02 12324052 /usr/lib/libc-2.18.so
7f9223ed8000-7f9223edc000 r--p 001a0000 08:02 12324052 /usr/lib/libc-2.18.so
7f9223edc000-7f9223ede000 rw-p 001a4000 08:02 12324052 /usr/lib/libc-2.18.so
7f9223ede000-7f9223ee2000 rw-p 00000000 00:00 0
7f9223ee2000-7f9223fe3000 r-xp 00000000 08:02 12324051 /usr/lib/libm-2.18.so
7f9223fe3000-7f92241e3000 ---p 00101000 08:02 12324051 /usr/lib/libm-2.18.so
7f92241e3000-7f92241e4000 r--p 00101000 08:02 12324051 /usr/lib/libm-2.18.so
7f92241e4000-7f92241e5000 rw-p 00102000 08:02 12324051 /usr/lib/libm-2.18.so
7f92241e5000-7f92241ed000 r-xp 00000000 08:02 12324023 /usr/lib/libcrypt-2.18.so
7f92241ed000-7f92243ec000 ---p 00008000 08:02 12324023 /usr/lib/libcrypt-2.18.so
7f92243ec000-7f92243ed000 r--p 00007000 08:02 12324023 /usr/lib/libcrypt-2.18.so
7f92243ed000-7f92243ee000 rw-p 00008000 08:02 12324023 /usr/lib/libcrypt-2.18.so
7f92243ee000-7f922441c000 rw-p 00000000 00:00 0
7f922441c000-7f922441f000 r-xp 00000000 08:02 12324096 /usr/lib/libdl-2.18.so
7f922441f000-7f922461e000 ---p 00003000 08:02 12324096 /usr/lib/libdl-2.18.so
7f922461e000-7f922461f000 r--p 00002000 08:02 12324096 /usr/lib/libdl-2.18.so
7f922461f000-7f9224620000 rw-p 00003000 08:02 12324096 /usr/lib/libdl-2.18.so
7f9224620000-7f922468d000 r-xp 00000000 08:02 12327818 /usr/lib/libgmp.so.10.1.3
7f922468d000-7f922488d000 ---p 0006d000 08:02 12327818 /usr/lib/libgmp.so.10.1.3
7f922488d000-7f922488e000 r--p 0006d000 08:02 12327818 /usr/lib/libgmp.so.10.1.3
7f922488e000-7f9224897000 rw-p 0006e000 08:02 12327818 /usr/lib/libgmp.so.10.1.3
7f9224897000-7f92248af000 r-xp 00000000 08:02 12324018 /usr/lib/libpthread-2.18.so
7f92248af000-7f9224aae000 ---p 00018000 08:02 12324018 /usr/lib/libpthread-2.18.so
7f9224aae000-7f9224aaf000 r--p 00017000 08:02 12324018 /usr/lib/libpthread-2.18.so
7f9224aaf000-7f9224ab0000 rw-p 00018000 08:02 12324018 /usr/lib/libpthread-2.18.so
7f9224ab0000-7f9224ab4000 rw-p 00000000 00:00 0
7f9224ab4000-7f9224ad4000 r-xp 00000000 08:02 12324038 /usr/lib/ld-2.18.so
7f9224b1b000-7f9224ca4000 r--p 00000000 08:02 12324392 /usr/lib/locale/locale-archive
7f9224ca4000-7f9224ca5000 rw-p 00000000 00:00 0
7f9224ca5000-7f9224ca6000 rw-p 00000000 00:00 0
7f9224ca6000-7f9224ca7000 rw-p 00000000 00:00 0
7f9224ca7000-7f9224ca8000 rw-p 00000000 00:00 0
7f9224ca8000-7f9224ca9000 rw-p 00000000 00:00 0
7f9224ccd000-7f9224cce000 rw-p 00000000 00:00 0
7f9224cce000-7f9224ccf000 rw-p 00000000 00:00 0
7f9224ccf000-7f9224cd0000 ---p 00000000 00:00 0
7f9224cd0000-7f9224cd3000 rw-p 00000000 00:00 0 [stack:13266]
7f9224cd3000-7f9224cd4000 r--p 0001f000 08:02 12324038 /usr/lib/ld-2.18.so
7f9224cd4000-7f9224cd5000 rw-p 00020000 08:02 12324038 /usr/lib/ld-2.18.so
7f9224cd5000-7f9224cd6000 rw-p 00000000 00:00 0
7f9224cd6000-7f9224f9a000 r-xp 00000000 08:02 3547126 /opt/rubies/ruby-2.1.1/bin/ruby
7f9225199000-7f922519f000 rw-p 002c3000 08:02 3547126 /opt/rubies/ruby-2.1.1/bin/ruby
7f922519f000-7f92251c5000 rw-p 00000000 00:00 0
7f9226a02000-7f9226a23000 rw-p 00000000 00:00 0 [heap]
7f9226a23000-7f9226a40000 rw-p 00000000 00:00 0 [heap]
7f9226a40000-7f9226a61000 rw-p 00000000 00:00 0 [heap]
7f9226a61000-7f9226a82000 rw-p 00000000 00:00 0 [heap]
7f9226a82000-7f9226aa3000 rw-p 00000000 00:00 0 [heap]
7f9226aa3000-7f9226ac4000 rw-p 00000000 00:00 0 [heap]
7f9226ac4000-7f9226ae5000 rw-p 00000000 00:00 0 [heap]
7f9226ae5000-7f9226b06000 rw-p 00000000 00:00 0 [heap]
7f9226b06000-7f9226b27000 rw-p 00000000 00:00 0 [heap]
7f9226b27000-7f9226b48000 rw-p 00000000 00:00 0 [heap]
7f9226b48000-7f9226b69000 rw-p 00000000 00:00 0 [heap]
7f9226b69000-7f9226b89000 rw-p 00000000 00:00 0 [heap]
7f9226b89000-7f9226ba8000 rw-p 00000000 00:00 0 [heap]
7f9226ba8000-7f9226bca000 rw-p 00000000 00:00 0 [heap]
7f9226bca000-7f9226bed000 rw-p 00000000 00:00 0 [heap]
7f9226bed000-7f9226c0f000 rw-p 00000000 00:00 0 [heap]
7f9226c0f000-7f9226c35000 rw-p 00000000 00:00 0 [heap]
7f9226c35000-7f9226c56000 rw-p 00000000 00:00 0 [heap]
7f9226c56000-7f9226c78000 rw-p 00000000 00:00 0 [heap]
7f9226c78000-7f9226c99000 rw-p 00000000 00:00 0 [heap]
7f9226c99000-7f9226cbc000 rw-p 00000000 00:00 0 [heap]
7f9226cbc000-7f9226cde000 rw-p 00000000 00:00 0 [heap]
7f9226cde000-7f9226d06000 rw-p 00000000 00:00 0 [heap]
7f9226d06000-7f9226d27000 rw-p 00000000 00:00 0 [heap]
7f9226d27000-7f9226d4a000 rw-p 00000000 00:00 0 [heap]
7f9226d4a000-7f9226d6c000 rw-p 00000000 00:00 0 [heap]
7f9226d6c000-7f9226d8d000 rw-p 00000000 00:00 0 [heap]
7f9226d8d000-7f9226dae000 rw-p 00000000 00:00 0 [heap]
7f9226dae000-7f9226dcf000 rw-p 00000000 00:00 0 [heap]
7f9226dcf000-7f9226df0000 rw-p 00000000 00:00 0 [heap]
7f9226df0000-7f9226e11000 rw-p 00000000 00:00 0 [heap]
7f9226e11000-7f9226e38000 rw-p 00000000 00:00 0 [heap]
7f9226e38000-7f9226e58000 rw-p 00000000 00:00 0 [heap]
7f9226e58000-7f9226e78000 rw-p 00000000 00:00 0 [heap]
7f9226e78000-7f9226e99000 rw-p 00000000 00:00 0 [heap]
7f9226e99000-7f9226eba000 rw-p 00000000 00:00 0 [heap]
7f9226eba000-7f9226edb000 rw-p 00000000 00:00 0 [heap]
7f9226edb000-7f9226efc000 rw-p 00000000 00:00 0 [heap]
7f9226efc000-7f9226f1d000 rw-p 00000000 00:00 0 [heap]
7f9226f1d000-7f9226f3e000 rw-p 00000000 00:00 0 [heap]
7f9226f3e000-7f9226f5e000 rw-p 00000000 00:00 0 [heap]
7fff215d6000-7fff215f7000 rw-p 00000000 00:00 0
7fff215fe000-7fff21600000 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

Aborted (core dumped)
    (1-1/1)