http://bugzilla.opensuse.org/show_bug.cgi?id=994726
Bug ID: 994726
Summary: combination of requires causes openssl.so segmentation
fault
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 42.1
Hardware: x86-64
OS: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Ruby
Assignee: ruby-devel@suse.de
Reporter: vanjab@icetec.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
Running our ruby app on a new KVM guest with fresh Leap 42.1 install causes a
segfault.
After lots of tracing I created a one-line test case where segfault happens:
#> irb -rwebrick -rmysql2 -ropenssl
The order of requires is important - it crashes only in this order (from my
experience at least).
mysql2 is installed by
#> sudo gem install --no-document mysql2
MySQL was at first installed via Yast2 (default), but after segfaults I
uninstalled it and installed the official RPMs from MySQL website but with the
same end result and no change in behavior.
I also tried using the ruby 2.2 from Yast2 but it was experiencing identical
issue.
Error text:
/usr/lib64/ruby/2.1.0/x86_64-linux-gnu/openssl.so: [BUG] Segmentation fault at
0x00000000000000
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux-gnu]
-- Control frame information -----------------------------------------------
c:0013 p:-5851352 s:0056 e:000055 TOP [FINISH]
c:0012 p:---- s:0054 e:000053 CFUNC :require
c:0011 p:0115 s:0050 e:000049 METHOD
/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55
c:0010 p:0007 s:0040 e:000039 TOP /usr/lib64/ruby/2.1.0/openssl.rb:17
[FINISH]
c:0009 p:---- s:0038 e:000037 CFUNC :require
c:0008 p:0115 s:0034 e:000033 METHOD
/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55
c:0007 p:0015 s:0024 e:000023 BLOCK /usr/lib64/ruby/2.1.0/irb/init.rb:286
[FINISH]
c:0006 p:---- s:0021 e:000020 CFUNC :each
c:0005 p:0013 s:0018 e:000017 METHOD /usr/lib64/ruby/2.1.0/irb/init.rb:284
c:0004 p:0063 s:0013 e:000012 METHOD /usr/lib64/ruby/2.1.0/irb/init.rb:20
c:0003 p:0039 s:0009 e:000008 METHOD /usr/lib64/ruby/2.1.0/irb.rb:380
c:0002 p:0021 s:0004 E:0023e8 EVAL /usr/bin/irb:11 [FINISH]
c:0001 p:0000 s:0002 E:0010f8 TOP [FINISH]
-- Ruby level backtrace information ----------------------------------------
/usr/bin/irb:11:in `<main>'
/usr/lib64/ruby/2.1.0/irb.rb:380:in `start'
/usr/lib64/ruby/2.1.0/irb/init.rb:20:in `setup'
/usr/lib64/ruby/2.1.0/irb/init.rb:284:in `load_modules'
/usr/lib64/ruby/2.1.0/irb/init.rb:284:in `each'
/usr/lib64/ruby/2.1.0/irb/init.rb:286:in `block in load_modules'
/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib64/ruby/2.1.0/openssl.rb:17:in `