Bug #9598
closedBug while installing a c-extensions gem
Description
I was trying to install a c-extension gem, the installation failed on first attempt. But succeeded on the second attempt.This was right after installing the ruby-2.1.1
(ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]) on Manjaro linux (Linux playground 3.10.32-2-MANJARO #1 SMP Sun Mar 2 22:14:17 EST 2014 x86_64 GNU/Linux
)
Here is the stack trace
ruby-2.1.1 sudo gem install fibonacci
/usr/local/lib/ruby/gems/2.1.0/gems/psych-2.0.4/lib/psych.rb:369: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0035 p:---- s:0173 e:000172 CFUNC :new
c:0034 p:0038 s:0169 e:000168 METHOD /usr/local/lib/ruby/gems/2.1.0/gems/psych-2.0.4/lib/psych.rb:369
c:0033 p:0014 s:0162 E:002368 METHOD /usr/local/lib/ruby/gems/2.1.0/gems/psych-2.0.4/lib/psych.rb:318
c:0032 p:0014 s:0157 e:000156 METHOD /usr/local/lib/ruby/gems/2.1.0/gems/psych-2.0.4/lib/psych.rb:245
c:0031 p:0036 s:0151 e:000150 METHOD /usr/local/lib/ruby/2.1.0/rubygems/specification.rb:974
c:0030 p:0019 s:0146 e:000145 BLOCK /usr/local/lib/ruby/2.1.0/rubygems/package.rb:420 [FINISH]
c:0029 p:---- s:0143 e:000142 CFUNC :wrap
c:0028 p:0134 s:0138 e:000137 METHOD /usr/local/lib/ruby/2.1.0/rubygems/package.rb:419
c:0027 p:0101 s:0133 e:000132 METHOD /usr/local/lib/ruby/2.1.0/rubygems/package.rb:553
c:0026 p:0009 s:0126 e:000125 BLOCK /usr/local/lib/ruby/2.1.0/rubygems/package.rb:568
c:0025 p:0102 s:0123 e:000122 METHOD /usr/local/lib/ruby/2.1.0/rubygems/package/tar_reader.rb:64
c:0024 p:0008 s:0114 e:000113 METHOD /usr/local/lib/ruby/2.1.0/rubygems/package.rb:567
c:0023 p:0017 s:0110 e:000109 BLOCK /usr/local/lib/ruby/2.1.0/rubygems/package.rb:497
c:0022 p:0034 s:0107 e:000106 METHOD /usr/local/lib/ruby/2.1.0/rubygems/package/tar_reader.rb:28
c:0021 p:0019 s:0102 e:000101 BLOCK /usr/local/lib/ruby/2.1.0/rubygems/package.rb:494 [FINISH]
c:0020 p:---- s:0099 e:000098 CFUNC :open
c:0019 p:0025 s:0094 e:000093 METHOD /usr/local/lib/ruby/2.1.0/rubygems/package.rb:493
c:0018 p:0012 s:0090 e:000089 METHOD /usr/local/lib/ruby/2.1.0/rubygems/package.rb:474
c:0017 p:0023 s:0087 e:000086 METHOD /usr/local/lib/ruby/2.1.0/rubygems/installer.rb:196
c:0016 p:0015 s:0083 e:000081 BLOCK /usr/local/lib/ruby/2.1.0/rubygems/dependency_installer.rb:390
c:0015 p:0092 s:0078 e:000077 BLOCK /usr/local/lib/ruby/2.1.0/rubygems/request_set.rb:140 [FINISH]
c:0014 p:---- s:0073 e:000072 CFUNC :each
c:0013 p:0069 s:0070 e:000069 METHOD /usr/local/lib/ruby/2.1.0/rubygems/request_set.rb:126
c:0012 p:0114 s:0062 E:0005a8 METHOD /usr/local/lib/ruby/2.1.0/rubygems/dependency_installer.rb:389
c:0011 p:0165 s:0055 e:000054 METHOD /usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:219
c:0010 p:0036 s:0047 e:000046 BLOCK /usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:263 [FINISH]
c:0009 p:---- s:0042 e:000041 CFUNC :each
c:0008 p:0014 s:0039 e:000038 METHOD /usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:259
c:0007 p:0095 s:0035 e:000034 METHOD /usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:171
c:0006 p:0064 s:0031 e:000030 METHOD /usr/local/lib/ruby/2.1.0/rubygems/command.rb:305
c:0005 p:0110 s:0026 e:000025 METHOD /usr/local/lib/ruby/2.1.0/rubygems/command_manager.rb:167
c:0004 p:0014 s:0019 e:000018 METHOD /usr/local/lib/ruby/2.1.0/rubygems/command_manager.rb:137
c:0003 p:0056 s:0013 e:000012 METHOD /usr/local/lib/ruby/2.1.0/rubygems/gem_runner.rb:54
c:0002 p:0115 s:0007 E:000070 EVAL /usr/local/bin/gem:21 [FINISH]
c:0001 p:0000 s:0002 E:001d38 TOP [FINISH]
-- Ruby level backtrace information ----------------------------------------
/usr/local/bin/gem:21:in <main>' /usr/local/lib/ruby/2.1.0/rubygems/gem_runner.rb:54:in
run'
/usr/local/lib/ruby/2.1.0/rubygems/command_manager.rb:137:in run' /usr/local/lib/ruby/2.1.0/rubygems/command_manager.rb:167:in
process_args'
/usr/local/lib/ruby/2.1.0/rubygems/command.rb:305:in invoke_with_build_args' /usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:171:in
execute'
/usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:259:in install_gems' /usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:259:in
each'
/usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:263:in block in install_gems' /usr/local/lib/ruby/2.1.0/rubygems/commands/install_command.rb:219:in
install_gem'
/usr/local/lib/ruby/2.1.0/rubygems/dependency_installer.rb:389:in install' /usr/local/lib/ruby/2.1.0/rubygems/request_set.rb:126:in
install'
/usr/local/lib/ruby/2.1.0/rubygems/request_set.rb:126:in each' /usr/local/lib/ruby/2.1.0/rubygems/request_set.rb:140:in
block in install'
/usr/local/lib/ruby/2.1.0/rubygems/dependency_installer.rb:390:in block in install' /usr/local/lib/ruby/2.1.0/rubygems/installer.rb:196:in
spec'
/usr/local/lib/ruby/2.1.0/rubygems/package.rb:474:in spec' /usr/local/lib/ruby/2.1.0/rubygems/package.rb:493:in
verify'
/usr/local/lib/ruby/2.1.0/rubygems/package.rb:493:in open' /usr/local/lib/ruby/2.1.0/rubygems/package.rb:494:in
block in verify'
/usr/local/lib/ruby/2.1.0/rubygems/package/tar_reader.rb:28:in new' /usr/local/lib/ruby/2.1.0/rubygems/package.rb:497:in
block (2 levels) in verify'
/usr/local/lib/ruby/2.1.0/rubygems/package.rb:567:in verify_files' /usr/local/lib/ruby/2.1.0/rubygems/package/tar_reader.rb:64:in
each'
/usr/local/lib/ruby/2.1.0/rubygems/package.rb:568:in block in verify_files' /usr/local/lib/ruby/2.1.0/rubygems/package.rb:553:in
verify_entry'
/usr/local/lib/ruby/2.1.0/rubygems/package.rb:419:in load_spec' /usr/local/lib/ruby/2.1.0/rubygems/package.rb:419:in
wrap'
/usr/local/lib/ruby/2.1.0/rubygems/package.rb:420:in block in load_spec' /usr/local/lib/ruby/2.1.0/rubygems/specification.rb:974:in
from_yaml'
/usr/local/lib/ruby/gems/2.1.0/gems/psych-2.0.4/lib/psych.rb:245:in load' /usr/local/lib/ruby/gems/2.1.0/gems/psych-2.0.4/lib/psych.rb:318:in
parse'
/usr/local/lib/ruby/gems/2.1.0/gems/psych-2.0.4/lib/psych.rb:369:in parse_stream' /usr/local/lib/ruby/gems/2.1.0/gems/psych-2.0.4/lib/psych.rb:369:in
new'
-- C level backtrace information -------------------------------------------
ruby-2.1.1 sudo gem install fibonacci
Building native extensions. This could take a while...
Successfully installed fibonacci-0.1.7
Parsing documentation for fibonacci-0.1.7
Done installing documentation for fibonacci after 0 seconds
1 gem installed
Updated by hsbt (Hiroshi SHIBATA) over 10 years ago
- Status changed from Open to Feedback
I couldn't reproduce this with Ruby 2.1.2 and trunk.
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
- Status changed from Feedback to Closed
- Backport deleted (
1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN)