segmentaion fault in childprocess gem-Ruby 1.9.3p545 - ruby

Getting an error while launching the browser through ruby code in irb
require 'watir-webdriver'
$profile = Selenium::WebDriver::firefox::Profile.new
$profile.native_events = true
$browser = Watir::Browser.new :firefox, :profile => $profile
StackTrace:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/childprocess-0.5.6/lib/childprocess/windows/lib.rb:311: [BUG] Segmentation fault
ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
-- Control frame information -----------------------------------------------
c:0049 p:---- s:0196 b:0196 l:000195 d:000195 CFUNC :get_osfhandle
c:0048 p:0122 s:0192 b:0192 l:000191 d:000191 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/childprocess-0.5.6/lib/childprocess/windows/lib.rb:311
c:0047 p:0066 s:0186 b:0185 l:000184 d:000184 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/childprocess-0.5.6/lib/childprocess/windows/lib.rb:270
c:0046 p:0213 s:0181 b:0181 l:000180 d:000180 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/childprocess-0.5.6/lib/childprocess.rb:153
c:0045 p:0054 s:0176 b:0176 l:000175 d:000175 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/firefox/socket_lock.rb:46
c:0044 p:0051 s:0172 b:0172 l:000171 d:000171 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/firefox/socket_lock.rb:31
c:0043 p:0011 s:0168 b:0168 l:000167 d:000167 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/firefox/socket_lock.rb:17
c:0042 p:0017 s:0164 b:0164 l:00028c d:00028c METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/firefox/launcher.rb:32
c:0041 p:0175 s:0161 b:0161 l:000160 d:000160 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/firefox/bridge.rb:24
c:0040 p:---- s:0151 b:0151 l:000150 d:000150 FINISH
c:0039 p:---- s:0149 b:0149 l:000148 d:000148 CFUNC :new
c:0038 p:0212 s:0145 b:0145 l:000144 d:000144 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/common/driver.rb:31
c:0037 p:0021 s:0138 b:0138 l:000137 d:000137 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver.rb:67
c:0036 p:0126 s:0134 b:0134 l:000133 d:000133 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.11/lib/watir-webdriver/browser.rb:46
c:0035 p:---- s:0129 b:0129 l:000128 d:000128 FINISH
c:0034 p:---- s:0127 b:0127 l:000126 d:000126 CFUNC :new
c:0033 p:1337 s:0122 b:0122 l:000d38 d:000121 BLOCK C:/jenkins_slave_jd1-rhel5-9/workspace/Device_Addition_and_Collection_Status_Sanity_on_CI_Build/GUI-Automation/lib/common/spec_
c:0032 p:---- s:0113 b:0113 l:000112 d:000112 FINISH
c:0031 p:---- s:0111 b:0111 l:000110 d:000110 CFUNC :instance_exec
c:0030 p:0021 s:0107 b:0107 l:000106 d:000106 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/hooks.rb:357
c:0029 p:0014 s:0103 b:0103 l:000094 d:000102 BLOCK C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/hooks.rb:517
c:0028 p:---- s:0100 b:0100 l:000099 d:000099 FINISH
c:0027 p:---- s:0098 b:0098 l:000097 d:000097 CFUNC :each
c:0026 p:0023 s:0095 b:0095 l:000094 d:000094 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/hooks.rb:516
c:0025 p:0056 s:0089 b:0089 l:000088 d:000088 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/hooks.rb:469
c:0024 p:0022 s:0083 b:0083 l:000068 d:000082 BLOCK C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/example_group.rb:462
c:0023 p:0015 s:0081 b:0081 l:000073 d:000080 BLOCK C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/memoized_helpers.rb:141
c:0022 p:---- s:0079 b:0079 l:000078 d:000078 FINISH
c:0021 p:---- s:0077 b:0077 l:000076 d:000076 CFUNC :instance_exec
c:0020 p:0017 s:0074 b:0074 l:000073 d:000073 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/memoized_helpers.rb:137
c:0019 p:0040 s:0069 b:0069 l:000068 d:000068 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/example_group.rb:461
c:0018 p:0138 s:0065 b:0065 l:000064 d:000064 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/example_group.rb:511
c:0017 p:0014 s:0057 b:0057 l:000035 d:000056 BLOCK C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:110
c:0016 p:---- s:0054 b:0054 l:000053 d:000053 FINISH
c:0015 p:---- s:0052 b:0052 l:000051 d:000051 CFUNC :map
c:0014 p:0011 s:0049 b:0049 l:000035 d:000048 BLOCK C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:110
c:0013 p:0062 s:0047 b:0047 l:000046 d:000046 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1526
c:0012 p:0011 s:0043 b:0043 l:000035 d:000042 BLOCK C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:109
c:0011 p:0022 s:0040 b:0040 l:000039 d:000039 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/reporter.rb:62
c:0010 p:0030 s:0036 b:0036 l:000035 d:000035 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:108
c:0009 p:0034 s:0032 b:0032 l:000031 d:000031 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:86
c:0008 p:0120 s:0027 b:0027 l:000026 d:000026 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:70
c:0007 p:0032 s:0020 b:0020 l:000019 d:000019 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:38
c:0006 p:0031 s:0016 b:0016 l:000015 d:000015 TOP C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.3/exe/rspec:4
c:0005 p:---- s:0014 b:0014 l:000013 d:000013 FINISH
c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :load
c:0003 p:0167 s:0008 b:0008 l:000404 d:00234c EVAL C:/Ruby193/bin/rspec:23
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000404 d:000404 TOP

I had same issue and was able to fix it by reverting to ffi 1.9.8 instead of 1.9.9
See https://github.com/ffi/ffi/issues/440

Related

CocoaPods install having trouble on m1

I've tried install cocoapods many different ways but am running into a nasty error
When I run pod list i get the following error
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0039 p:---- s:0221 e:000220 CFUNC :getdtablesize
c:0038 p:0050 s:0217 e:000216 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36
c:0037 p:0075 s:0214 e:000213 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:27
c:0036 p:0007 s:0211 e:000210 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:3
c:0035 p:0007 s:0208 e:000207 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:2 [FINISH]
c:0034 p:---- s:0205 e:000204 CFUNC :require
c:0033 p:0110 s:0200 e:000199 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0032 p:0128 s:0188 e:000187 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:29
c:0031 p:0007 s:0185 e:000184 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:14
c:0030 p:0049 s:0182 e:000181 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:9 [FINISH]
c:0029 p:---- s:0179 e:000178 CFUNC :require
c:0028 p:0110 s:0174 e:000173 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0027 p:0049 s:0162 e:000161 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:16 [FINISH]
c:0026 p:---- s:0159 e:000158 CFUNC :require
c:0025 p:0110 s:0154 e:000153 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0024 p:0013 s:0142 e:000141 TOP /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2 [FINISH]
c:0023 p:---- s:0139 e:000138 CFUNC :require
c:0022 p:0110 s:0134 e:000133 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0021 p:0006 s:0122 e:000121 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440
c:0020 p:0045 s:0114 e:000113 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372
c:0019 p:0318 s:0103 e:000102 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365
c:0018 p:0006 s:0093 e:000092 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338
c:0017 p:0059 s:0088 e:000087 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53
c:0016 p:0021 s:0084 e:000083 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31
c:0015 p:0030 s:0079 e:000078 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30 [FINISH]
c:0014 p:---- s:0074 e:000073 CFUNC :new
c:0013 p:0068 s:0069 e:000065 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315 [FINISH]
c:0012 p:0039 s:0061 E:0023b8 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322
c:0011 p:0007 s:0054 e:000053 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331 [FINISH]
c:0010 p:---- s:0050 e:000049 CFUNC :map
c:0009 p:0006 s:0046 e:000045 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331
c:0008 p:0008 s:0040 e:000039 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26
c:0007 p:0015 s:0036 e:000035 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/list.rb:23
c:0006 p:0078 s:0031 e:000030 METHOD /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334
c:0005 p:0024 s:0024 e:000023 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52
c:0004 p:0378 s:0019 e:000018 TOP /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC :load
c:0002 p:0109 s:0008 E:001dc0 EVAL /usr/local/bin/pod:23 [FINISH]
c:0001 p:0000 s:0003 E:000df0 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
/usr/local/bin/pod:23:in `<main>'
/usr/local/bin/pod:23:in `load'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/list.rb:23:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26:in `aggregate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `aggregate_with_repos'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `block in aggregate_with_repos'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322:in `source_from_path'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `block in source_from_path'
*** NOTE DELETED MANY LINES AS EXCEEDED QUESTION LIMIT***
551 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb
552 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/codes.rb
553 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/options.rb
554 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/infos.rb
555 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/form_options.rb
556 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/messages.rb
557 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/functions.rb
558 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/constants.rb
559 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/settings.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
[1] 13276 abort pod list
Does anybody have a clue what I might have done wrong when installing cocoapods on m1? I haven't seen this being an issue with others.
Any help greatly appreciated!
for anyone else who runs into this issue, I was able to solve via this post
https://github.com/CocoaPods/CocoaPods/issues/9890
Specifically by running the following command
arch -x86_64 pod install in my terminal running on x86 via Rosetta
The issue seemed to stem from ethon dependency which was not playing nice until I did the above
I have same problem, and It's fine after upgrade ruby to 3.0.3.
brew update
brew install ruby
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc
Like Derek Chen wrote, the problem is solved by upgrading to Ruby 3.
I suggest using rvm for this purpose.
Install rvm:
curl -sSL https://get.rvm.io | bash
Install the latest stable version of Ruby using rvm:
rvm install 3.1.2
rvm use 3.1.2 --default
Install CocoaPods:
gem install cocoapods

Crash with cocoa pods env

I am following a tutorial to create an IOS app using a Google Maps with cocoa pods.
The command pod install crashes. I am thinking of a env problem because the command pod env crashes...
I have tried to open an issue on cocoa github but they as closed it immediately as "not an issue of cocoa pods" without giving any help...
I have tried to reinstall homebrew, ruby, xcode command tools line as I have seen it on some posts.
➜ ~ which ruby
/opt/homebrew/opt/ruby/bin/ruby
➜ ~ ruby -v
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin21]
Here is the log trace
➜ ~ pod env
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36: [BUG] Illegal instruction at 0x00000001041ec000
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0044 p:---- s:0260 e:000259 CFUNC :getdtablesize
c:0043 p:0050 s:0256 e:000255 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36
c:0042 p:0075 s:0253 e:000252 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:27
c:0041 p:0007 s:0250 e:000249 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:3
c:0040 p:0007 s:0247 e:000246 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:2 [FINISH]
c:0039 p:---- s:0244 e:000243 CFUNC :require
c:0038 p:0110 s:0239 e:000238 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0037 p:0128 s:0227 e:000226 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:29
c:0036 p:0007 s:0224 e:000223 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:14
c:0035 p:0049 s:0221 e:000220 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:9 [FINISH]
c:0034 p:---- s:0218 e:000217 CFUNC :require
c:0033 p:0110 s:0213 e:000212 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0032 p:0049 s:0201 e:000200 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:16 [FINISH]
c:0031 p:---- s:0198 e:000197 CFUNC :require
c:0030 p:0110 s:0193 e:000192 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0029 p:0013 s:0181 e:000180 TOP /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2 [FINISH]
c:0028 p:---- s:0178 e:000177 CFUNC :require
c:0027 p:0110 s:0173 e:000172 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0026 p:0006 s:0161 e:000160 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440
c:0025 p:0045 s:0153 e:000152 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372
c:0024 p:0318 s:0142 e:000141 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365
c:0023 p:0006 s:0132 e:000131 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338
c:0022 p:0059 s:0127 e:000126 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53
c:0021 p:0021 s:0123 e:000122 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31
c:0020 p:0030 s:0118 e:000117 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30 [FINISH]
c:0019 p:---- s:0113 e:000112 CFUNC :new
c:0018 p:0068 s:0108 e:000104 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315 [FINISH]
c:0017 p:0039 s:0100 E:0005a8 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322
c:0016 p:0007 s:0093 e:000092 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331 [FINISH]
c:0015 p:---- s:0089 e:000088 CFUNC :map
c:0014 p:0006 s:0085 e:000084 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331
c:0013 p:0008 s:0079 e:000078 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26
c:0012 p:0004 s:0075 e:000074 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60
c:0011 p:0016 s:0071 e:000070 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:173
c:0010 p:0070 s:0067 e:000051 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:77
c:0009 p:0012 s:0045 e:000044 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:38
c:0008 p:0006 s:0041 e:000039 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:26
c:0007 p:0011 s:0036 e:000034 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:20
c:0006 p:0078 s:0031 e:000030 METHOD /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334
c:0005 p:0024 s:0024 e:000023 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52
c:0004 p:0378 s:0019 e:000018 TOP /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC :load
c:0002 p:0109 s:0008 E:000cc0 EVAL /usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23 [FINISH]
c:0001 p:0000 s:0003 E:000770 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
/usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in `<main>'
/usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in `load'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:20:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:26:in `report'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:38:in `stack'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:77:in `stack'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:173:in `repo_information'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60:in `all'
[...]
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
[1] 19216 abort pod env
PS : I am on Mac M1 version 12.0.1 and Xcode 13.1
OK so the solution is following:
I enabled Rosetta for the Terminal app. (Don't forget to re-open the app afterwards.) I don't know if this is step is necessary but I did it like that and it worked so if you skip this step and the following steps are not working, try also this one 😊
Install ffi
sudo arch -x86_64 gem install ffi
Re-install dependencies
arch -x86_64 pod install
The original solution is here: How to running CocoaPods on Apple Silicon (M1)

Vagrant up Segfault error

I would really like to use vagrant to set up a rails dev environment on my computer, but whenever i run vagrant up i get a segfault error. I have tried reinstalling both vagrant and virtualbox, and different versions of both. I'm new to vagrant and can't seem to figure out what is going wrong. Here is the error message:
F:\Projects\toy_app>vagrant up
C:/Users/JT/.vagrant.d/gems/gems/childprocess-0.5.6/lib/childprocess/windows/han
dle.rb:44: [BUG] Segmentation fault
ruby 2.0.0p353 (2013-11-22) [i386-mingw32]
-- Control frame information -----------------------------------------------
c:0036 p:---- s:0198 e:000197 CFUNC :get_exit_code
c:0035 p:0035 s:0193 e:000192 METHOD C:/Users/JT/.vagrant.d/gems/gems/childproce
ss-0.5.6/lib/childprocess/windows/handle.rb:44
c:0034 p:0029 s:0188 e:000187 METHOD C:/Users/JT/.vagrant.d/gems/gems/childproce
ss-0.5.6/lib/childprocess/windows/process.rb:41
c:0033 p:0716 s:0183 e:000182 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/subprocess.rb:160
c:0032 p:0013 s:0161 e:000160 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/subprocess.rb:22
c:0031 p:0024 s:0156 e:000155 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/base.rb:404
c:0030 p:0014 s:0154 e:000153 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/busy.rb:19
c:0029 p:0039 s:0150 E:001408 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/base.rb:403
c:0028 p:0017 s:0144 e:000143 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/base.rb:342
c:0027 p:0044 s:0141 e:000140 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/retryable.rb:17
c:0026 p:0082 s:0135 e:000134 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/base.rb:337
c:0025 p:0009 s:0127 e:000126 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/meta.rb:141
c:0024 p:0044 s:0125 e:000124 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/retryable.rb:17
c:0023 p:0035 s:0119 e:000118 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/meta.rb:140
c:0022 p:0044 s:0114 e:000113 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/meta.rb:38 [FINISH]
c:0021 p:---- s:0107 e:000106 CFUNC :new
c:0020 p:0019 s:0104 e:000103 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/provider.rb:11
c:0019 p:0010 s:0100 e:000099 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:378 [FINISH]
c:0018 p:---- s:0094 e:000093 CFUNC :each
c:0017 p:0249 s:0091 E:001c50 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:377
c:0016 p:0131 s:0081 e:000080 LAMBDA C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/plugin/v2/command.rb:165 [FINISH]
c:0015 p:---- s:0075 e:000074 CFUNC :call
c:0014 p:0108 s:0071 e:000069 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/plugin/v2/command.rb:192 [FINISH]
c:0013 p:---- s:0065 e:000064 CFUNC :each
c:0012 p:0216 s:0062 E:0021f8 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/plugin/v2/command.rb:174
c:0011 p:0072 s:0050 E:001580 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/commands/up/command.rb:74
c:0010 p:0008 s:0045 e:000044 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:277 [FINISH]
c:0009 p:---- s:0042 e:000041 CFUNC :tap
c:0008 p:0017 s:0039 e:000038 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:275 [FINISH]
c:0007 p:---- s:0037 e:000036 CFUNC :synchronize
c:0006 p:0032 s:0034 e:000033 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:274
c:0005 p:0114 s:0030 E:00110c METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/commands/up/command.rb:58
c:0004 p:0158 s:0023 e:000022 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/cli.rb:42
c:0003 p:0020 s:0017 e:000016 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:301
c:0002 p:0807 s:0013 E:001648 EVAL C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/bin/vagrant:174 [FINISH]
c:0001 p:0000 s:0002 E:0013fc TOP [FINISH]
Then it goes on to list ~450 lines of backtrace.
Try this, it works for me.
vagrant plugin uninstall ffi && vagrant plugin install ffi --plugin-version 1.9.8
I removed .vagrant.d file. I was using Linux Mint-17. So I run this command
rm -r .vagrant.d/.
I worked for me.

Ruby 1.9.3: protocol.rb:160: [BUG] probable buffer overflow: 17 for 0

I have a Ruby script that worked fine with 1.8.7 but now crashes with a Ruby bug in 1.9.3.
It uses a simple thread pool to open a list of URLs so that they get pre-cached.
Here are the relevant parts of the script.
The thread pool:
require 'thread'
# see http://burgestrand.se/articles/quick-and-simple-ruby-thread-pool.html
class Pool
def initialize(size)
#size = size
#jobs = Queue.new
#pool = Array.new(#size) do |i|
Thread.new do
Thread.current[:id] = i
catch(:exit) do
loop do
job, args = #jobs.pop
job.call(*args)
end
end
end
end
end
def schedule(*args, &block)
#jobs << [block, args]
end
def shutdown
#size.times do
schedule { throw :exit }
end
#pool.map(&:join)
end
end
The load_url method:
def load_url(url)
http_proxy = ENV['http_proxy']
proxy_regex = /http\:\/\/(\w+):(\w+)#([\w|\.]+):(\d+)/
url_regex = /^((http[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w\-]+)?$/
url.match(url_regex)
host = $3
path = $4 + $6
if http_proxy and http_proxy =~ proxy_regex
proxy_addr = $3
proxy_port = $4
proxy_user = $1
proxy_pass = $2
Net::HTTP::Proxy(proxy_addr, proxy_port, proxy_user, proxy_pass).start(host) do |http|
req = Net::HTTP::Get.new(path)
http.read_timeout = 500
response = http.request(req)
end
else
Net::HTTP.start(host) do |http|
req = Net::HTTP::Get.new(path)
http.read_timeout = 500
response = http.request(req)
end
end
end
The download code:
pool = Pool.new(5)
# the_trips are loaded from the db
the_trips.each do |trip|
cleaned_urls = TripPage.empty_cache(trip)
cleaned_urls.each do |cleaned_url|
pool.schedule do
puts "Loading #{cleaned_url}..."
begin
load_url(cleaned_url)
puts "#{cleaned_url} OK\n"
rescue Timeout::Error => e
puts "Caught Timeout error for #{cleaned_url} :("
end
end
end
end
# wait for all threads to finish
puts "Done, shutting down the threadpool..."
pool.shutdown
So much for the setup.
When I run this with Ruby 1.9.3, I get this:
Loading http://some.server.com/reisen/2010003...
Loading http://some.server.com/reisen/2010003-the-title...
Loading http://some.server.com/reisen/2010011...
Loading http://some.server.com/reisen/2010011-different-title...
Loading http://some.server.com/reisen/2010100...
http://some.server.com/reisen/2010003 OK
Loading http://some.server.com/reisen/2010100-yet-another-title...
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/protocol.rb:160: [BUG] probable buffer overflow: 17 for 0
ruby 1.9.3p0 (2011-10-30 revision 33570) [i386-solaris2.10]
-- Control frame information -----------------------------------------------
c:0025 p:0017 s:0112 b:0112 l:000111 d:000111 METHOD ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/protocol.rb:160
c:0024 p:0061 s:0107 b:0107 l:000106 d:000106 METHOD ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/protocol.rb:124
c:0023 p:0159 s:0101 b:0101 l:000100 d:000100 METHOD ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:2584
c:0022 p:0024 s:0091 b:0091 l:000090 d:000090 METHOD ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:2669
c:0021 p:0106 s:0086 b:0086 l:000077 d:000085 BLOCK ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:1321
c:0020 p:---- s:0084 b:0084 l:000083 d:000083 FINISH
c:0019 p:---- s:0082 b:0082 l:000081 d:000081 CFUNC :catch
c:0018 p:0025 s:0078 b:0078 l:000077 d:000077 METHOD ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:1316
c:0017 p:0097 s:0072 b:0072 l:000071 d:000071 METHOD ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:1293
c:0016 p:0053 s:0065 b:0065 l:001d94 d:000064 BLOCK clear_diskcache.rb:60
c:0015 p:0057 s:0060 b:0060 l:000059 d:000059 METHOD ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:745
c:0014 p:0182 s:0057 b:0057 l:000056 d:000056 METHOD ~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:557
c:0013 p:0140 s:0044 b:0044 l:001d94 d:001d94 METHOD clear_diskcache.rb:57
c:0012 p:0034 s:0031 b:0031 l:0012e4 d:000030 BLOCK clear_diskcache.rb:115
c:0011 p:---- s:0028 b:0028 l:000027 d:000027 FINISH
c:0010 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :call
c:0009 p:0034 s:0023 b:0023 l:002110 d:000022 BLOCK clear_diskcache.rb:16
c:0008 p:---- s:0019 b:0019 l:000018 d:000018 FINISH
c:0007 p:---- s:0017 b:0017 l:000016 d:000016 CFUNC :loop
c:0006 p:0009 s:0014 b:0014 l:002110 d:000013 BLOCK clear_diskcache.rb:14
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :catch
c:0003 p:0038 s:0006 b:0006 l:002110 d:000005 BLOCK clear_diskcache.rb:13
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
-- Ruby level backtrace information ----------------------------------------
clear_diskcache.rb:13:in `block (2 levels) in initialize'
clear_diskcache.rb:13http://some.server.com/reisen/2010011 OK
:in `catch'
clear_diskcache.rb:14:in `block (3 levels) in initialize'
clear_diskcache.rbLoading http://some.server.com/reisen/201T004...
:14:in `loop'
clear_diskcache.rb:16:in `block (4 levels) in initialize'
clear_diskcache.rb:16:in `call'
clear_diskcache.rb:113:in `block (4 levels) in <top (required)>'
clear_diskcache.rb:113:in `puts'
clear_diskcache.rb:113:in `puts'
clear_diskcache.rb:113:in `write'
Any idea what might be the problem?
I've found this, but I'm not 100% sure if this is the bug I'm seeing: http://bugs.ruby-lang.org/issues/6099
If it is, it looks as if a fix won't be released until Ruby 2.0...

I have broken my ruby installation

I have recently installed MacPorts and been playing with a few things I do not understand (doh!). I am now not able to install any new gems. I have looked at this answer: Why does Ruby 1.9.2 blow up with a JSON gem dependency?
But I still cannot install it. here is what terminal spits back at me:
c028004:me richardjburton$ sudo gem install twitter_oauth
Fetching: twitter_oauth-0.4.3.gem (100%)
Successfully installed twitter_oauth-0.4.3
1 gem installed
Installing ri documentation for twitter_oauth-0.4.3...
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38: [BUG] Bus Error
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
-- control frame ----------
c:0019 p:---- s:0074 b:0074 l:000073 d:000073 CFUNC :callcc
c:0018 p:0080 s:0071 b:0071 l:0002e0 d:0002e0 TOP /Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38
c:0017 p:---- s:0068 b:0068 l:000067 d:000067 FINISH
c:0016 p:---- s:0066 b:0066 l:000065 d:000065 CFUNC :require
c:0015 p:0053 s:0062 b:0062 l:001a78 d:001a78 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0014 p:0030 s:0055 b:0055 l:0026c8 d:0026c8 METHOD /Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard/rubygems/doc_manager.rb:5
c:0013 p:0080 s:0052 b:0052 l:000048 d:000048 METHOD /Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard/rubygems/doc_manager.rb:59
c:0012 p:0021 s:0049 b:0049 l:000af8 d:000af8 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/doc_manager.rb:116
c:0011 p:0037 s:0046 b:0046 l:001bb0 d:000ec0 BLOCK /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:148
c:0010 p:---- s:0043 b:0043 l:000042 d:000042 FINISH
c:0009 p:---- s:0041 b:0041 l:000040 d:000040 CFUNC :each
c:0008 p:0200 s:0038 b:0038 l:001bb0 d:001bb0 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147
c:0007 p:0076 s:0032 b:0032 l:000f30 d:000f30 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278
c:0006 p:0193 s:0028 b:0028 l:000fb0 d:000fb0 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147
c:0005 p:0013 s:0022 b:0022 l:001028 d:001028 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117
c:0004 p:0178 s:0017 b:0017 l:0010b0 d:0010b0 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65
c:0003 p:0267 s:0009 b:0009 l:0004e8 d:001d60 EVAL /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/bin/gem:25
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0004e8 d:0004e8 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/bin/gem:25:in `<main>'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in `run'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in `run'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:in `process_args'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in `invoke'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147:in `execute'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147:in `each'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:148:in `block in execute'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/doc_manager.rb:116:in `generate_ri'
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard/rubygems/doc_manager.rb:59:in `install_ri_yard'
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard/rubygems/doc_manager.rb:5:in `load_yardoc'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38:in `<top (required)>'
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38:in `callcc'
-- C level backtrace information -------------------------------------------
0 libruby.1.9.1.dylib 0x00000001097834ae rb_vm_bugreport + 110
1 libruby.1.9.1.dylib 0x00000001096774c3 report_bug + 259
2 libruby.1.9.1.dylib 0x0000000109677631 rb_bug + 161
3 libruby.1.9.1.dylib 0x0000000109719f42 sigbus + 18
4 libsystem_c.dylib 0x00007fff91a97cfa _sigtramp + 26
5 ??? 0x00007fff6924313e 0x0 + 140734957367614
[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
As always, any help would be be amazing.
Seems your gem installed succeeded, but failed at generating RI document. If you still want to use macport ,you can try install with --no-ri to skip it. It maybe OK for you.
Another, please try to uninstall the ruby with macport, and only use rvm. Maybe you need to try to reinstall rvm too.

Resources