Project

General

Profile

ruby segfaults

Added by Sebastian Heyn over 7 years ago

Hi,

I'm trying to install redmine 3.3.1 on a opensuse leap 42.2 system.

During the installation process when I try to

@@bundle install --without development test

it segfaults. Iam not familiar with ruby and redmine so i am quite lost. I read that mariadb is not supported, so I changed to mysql-community-server 5.6 with same result.

/usr/lib64/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0/mysql2-0.3.21/mysql2/mysql2.so: [BUG] Segmentation fault at 0x0000000000000a
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux-gnu]

-- Control frame information -----------------------------------------------
c:0030 p:-10045958 s:0110 e:000109 TOP [FINISH]
c:0029 p:---- s:0108 e:000107 CFUNC :require
c:0028 p:0010 s:0104 e:000103 BLOCK /usr/lib64/ruby/gems/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274
c:0027 p:0054 s:0102 e:000101 METHOD /usr/lib64/ruby/gems/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240
c:0026 p:0015 s:0097 e:000096 METHOD /usr/lib64/ruby/gems/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274
c:0025 p:0265 s:0092 e:000091 TOP /usr/lib64/ruby/gems/2.1.0/gems/mysql2-0.3.21/lib/mysql2.rb:31 [FINISH]
c:0024 p:---- s:0089 e:000088 CFUNC :require
c:0023 p:0039 s:0085 e:000084 BLOCK /usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:91 [FINISH]
c:0022 p:---- s:0081 e:000080 CFUNC :each
c:0021 p:0055 s:0078 e:000077 BLOCK /usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86 [FINISH]
c:0020 p:---- s:0072 e:000071 CFUNC :each
c:0019 p:0032 s:0069 e:000068 METHOD /usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75
c:0018 p:0013 s:0065 e:000064 METHOD /usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler.rb:106
c:0017 p:0047 s:0061 e:000060 TOP /srv/vhosts/redmine/config/application.rb:5 [FINISH]
c:0016 p:---- s:0059 e:000058 CFUNC :require
c:0015 p:0115 s:0055 e:000054 METHOD /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55
c:0014 p:0018 s:0045 e:000044 TOP /srv/vhosts/redmine/Rakefile:5 [FINISH]
c:0013 p:---- s:0043 e:000042 CFUNC :load
c:0012 p:0009 s:0039 e:000038 METHOD /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28
c:0011 p:0176 s:0035 e:000034 METHOD /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:687
c:0010 p:0007 s:0030 e:000029 BLOCK /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:96
c:0009 p:0006 s:0028 e:000027 METHOD /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:178
c:0008 p:0007 s:0024 e:000023 METHOD /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:95
c:0007 p:0013 s:0021 e:000020 BLOCK /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:79
c:0006 p:0006 s:0019 e:000018 METHOD /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:178
c:0005 p:0007 s:0015 e:000014 METHOD /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:77
c:0004 p:0021 s:0012 e:000011 TOP /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/exe/rake:27 [FINISH]
c:0003 p:---- s:0010 e:000009 CFUNC :load
c:0002 p:0135 s:0006 E:000e18 EVAL /usr/bin/rake:23 [FINISH]
c:0001 p:0000 s:0002 E:002338 TOP [FINISH]

-- Ruby level backtrace information ----------------------------------------
/usr/bin/rake:23:in `<main>'
/usr/bin/rake:23:in `load'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:79:in `block in run'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:95:in `load_rakefile'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:96:in `block in load_rakefile'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/application.rb:687:in `raw_load_rakefile'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load'
/srv/vhosts/redmine/Rakefile:5:in `<top (required)>'
/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'
/srv/vhosts/redmine/config/application.rb:5:in `<top (required)>'
/usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
/usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
/usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
/usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
/usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
/usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/usr/lib64/ruby/gems/2.1.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `require'
/usr/lib64/ruby/gems/2.1.0/gems/mysql2-0.3.21/lib/mysql2.rb:31:in `<top (required)>'
/usr/lib64/ruby/gems/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/usr/lib64/ruby/gems/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'

error.log (126 KB) error.log

Replies (2)

RE: ruby segfaults - Added by Bogdan Cristea about 7 years ago

Got the same problem. Does anyone have a solution ?

RE: ruby segfaults - Added by Richard Hafenscher almost 7 years ago

I recently also stumbled over this issue on a new installation of OpenSUSE Leap 42.2.

On my investigation I found conflicts logged in the mkmf.log of the mysql2 gem:
libssl.so.38
libcrypto.so.37

After I de-installed these two packages from my system and reinstalled the mysql2 gem it is working without an issue.

Edit:
After that, I reinstalled the libssl packets again, also reinstalled the mysql2 gem with no issue. Redmine is still working though.

    (1-2/2)