https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2008-08-05T01:51:21Z
Ruby Issue Tracking System
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=702
2008-08-05T01:51:21Z
shyouhei (Shyouhei Urabe)
shyouhei@ruby-lang.org
<ul></ul><p>=begin<br>
Hello, what's that ssl.rb? Can we get one?<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=1123
2008-09-19T23:01:03Z
pirkka (Pirkka Hartikainen)
pirkka@gmail.com
<ul></ul><p>=begin<br>
/usr/local/lib/ruby/1.8/openssl/ssl.rb:31: [BUG] Bus Error<br>
ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin9.3.0]</p>
<p>i'm not the original reporter of the bug, but looks like i'm getting the same error when compiling routes in merb (the web app framework)<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=1576
2008-11-10T15:48:12Z
evn (Evan W)
evan@cloudbur.st
<ul></ul><p>=begin<br>
This bug still occurs on ruby-1.9.1-preview1 on OS X Leopard/Intel 32-bit.</p>
<p>$ ruby19 -v<br>
ruby 1.9.1 (2008-10-28 revision 19983) [i386-darwin9.5.0]<br>
$ uname -a<br>
Darwin mackenzie.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386<br>
$ sudo port list openssl<br>
openssl @0.9.8i devel/openssl</p>
<p>Line 31 in question from ssl.rb is:</p>
<pre><code> DEFAULT_CERT_STORE = OpenSSL::X509::Store.new
</code></pre>
<p>Setting line 26 to:</p>
<pre><code>:verify_mode => OpenSSL::SSL::VERIFY_NONE,
</code></pre>
<p>and commenting out lines 31-35 avoids the problem with RubyGems, at least.</p>
<p>Previous backtrace was:</p>
<p>$ sudo gem19 install echoe<br>
/opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:31: [BUG] Bus Error<br>
ruby 1.9.1 (2008-10-28 revision 19983) [i386-darwin9.5.0]</p>
<h2>-- control frame ----------<br>
c:0033 p:---- s:0107 b:0107 l:000106 d:000106 CFUNC :initialize<br>
c:0032 p:---- s:0105 b:0105 l:000104 d:000104 CFUNC :new<br>
c:0031 p:0063 s:0102 b:0102 l:000101 d:000101 CLASS /opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:31<br>
c:0030 p:0011 s:0100 b:0100 l:000099 d:000099 CLASS /opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:23<br>
c:0029 p:0011 s:0098 b:0098 l:000097 d:000097 CLASS /opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:22<br>
c:0028 p:0045 s:0096 b:0096 l:000095 d:000095 TOP /opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:21<br>
c:0027 p:---- s:0094 b:0094 l:000093 d:000093 FINISH :set_encoding<br>
c:0026 p:---- s:0092 b:0092 l:000091 d:000091 CFUNC :require<br>
c:0025 p:0059 s:0088 b:0088 l:000087 d:000087 TOP /opt/local/lib/ruby19/1.9.1/openssl.rb:22<br>
c:0024 p:---- s:0086 b:0086 l:000085 d:000085 FINISH :set_encoding<br>
c:0023 p:---- s:0084 b:0084 l:000083 d:000083 CFUNC :require<br>
c:0022 p:0023 s:0080 b:0080 l:000079 d:000079 TOP /opt/local/lib/ruby19/1.9.1/rubygems/gem_openssl.rb:33<br>
c:0021 p:---- s:0077 b:0077 l:000076 d:000076 FINISH :set_encoding<br>
c:0020 p:---- s:0075 b:0075 l:000074 d:000074 CFUNC :require<br>
c:0019 p:0023 s:0071 b:0071 l:000070 d:000070 TOP /opt/local/lib/ruby19/1.9.1/rubygems/security.rb:8<br>
c:0018 p:---- s:0069 b:0069 l:000068 d:000068 FINISH :set_encoding<br>
c:0017 p:---- s:0067 b:0067 l:000066 d:000066 CFUNC :require<br>
c:0016 p:0023 s:0063 b:0063 l:000062 d:000062 TOP /opt/local/lib/ruby19/1.9.1/rubygems/install_update_options.rb:8<br>
c:0015 p:---- s:0061 b:0061 l:000060 d:000060 FINISH :set_encoding<br>
c:0014 p:---- s:0059 b:0059 l:000058 d:000058 CFUNC :require<br>
c:0013 p:0035 s:0055 b:0055 l:000054 d:000054 TOP /opt/local/lib/ruby19/1.9.1/rubygems/commands/install_command.rb:3<br>
c:0012 p:---- s:0053 b:0053 l:000052 d:000052 FINISH :set_encoding<br>
c:0011 p:---- s:0051 b:0051 l:000050 d:000050 CFUNC :require<br>
c:0010 p:0059 s:0047 b:0047 l:000043 d:000046 BLOCK /opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:140<br>
c:0009 p:0075 s:0044 b:0044 l:000043 d:000043 METHOD /opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:132<br>
c:0008 p:0055 s:0038 b:0036 l:000035 d:000035 METHOD /opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:65<br>
c:0007 p:0111 s:0032 b:0032 l:000031 d:000031 METHOD /opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:118<br>
c:0006 p:0180 s:0027 b:0027 l:000026 d:000026 METHOD /opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:104<br>
c:0005 p:0013 s:0021 b:0021 l:000020 d:000020 METHOD /opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:75<br>
c:0004 p:0089 s:0016 b:0016 l:000015 d:000015 METHOD /opt/local/lib/ruby19/1.9.1/rubygems/gem_runner.rb:39<br>
c:0003 p:0207 s:0009 b:0009 l:000008 d:000008 TOP /opt/local/bin/gem19:24<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :inherited<br>
c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP :20204</h2>
<h2>DBG> : "/opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:31:in <code>initialize'" DBG> : "/opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:31:in </code>new'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:31:in <code><class:SSLContext>'" DBG> : "/opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:23:in </code><a href="module:SSL" class="external">module:SSL</a>'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:22:in <code><module:OpenSSL>'" DBG> : "/opt/local/lib/ruby19/1.9.1/openssl/ssl.rb:21:in </code><top (required)>'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/openssl.rb:22:in <code>require'" DBG> : "/opt/local/lib/ruby19/1.9.1/openssl.rb:22:in </code><top (required)>'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/gem_openssl.rb:33:in <code>require'" DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/gem_openssl.rb:33:in </code><top (required)>'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/security.rb:8:in <code>require'" DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/security.rb:8:in </code><top (required)>'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/install_update_options.rb:8:in <code>require'" DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/install_update_options.rb:8:in </code><top (required)>'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/commands/install_command.rb:3:in <code>require'" DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/commands/install_command.rb:3:in </code><top (required)>'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:140:in <code>require'" DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:140:in </code>rescue in load_and_instantiate'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:132:in <code>load_and_instantiate'" DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:65:in </code>[]'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:118:in <code>find_command'" DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:104:in </code>process_args'"<br>
DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/command_manager.rb:75:in <code>run'" DBG> : "/opt/local/lib/ruby19/1.9.1/rubygems/gem_runner.rb:39:in </code>run'"<br>
DBG> : "/opt/local/bin/gem19:24:in `'"<br>
-- backtrace of native function call (Use addr2line) --<br>
0x1148f6<br>
0x2b48c<br>
0x2b4cb<br>
0xbab8b<br>
0x924d309b<br>
0xffffffff</h2>
<p>Abort trap</p>
<p>=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=3026
2009-02-03T12:44:44Z
shyouhei (Shyouhei Urabe)
shyouhei@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Assignee</strong> set to <i>matz (Yukihiro Matsumoto)</i></li><li><strong>ruby -v</strong> set to <i>ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin9.4.0]</i></li></ul><p>=begin</p>
<p>=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=3277
2009-02-20T06:55:27Z
mattgrayson (Matt G)
mattgrayson@eitheror.org
<ul></ul><p>=begin<br>
Running into same issue:</p>
<p>ssl.rb:31: [BUG] Bus Error<br>
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=3601
2009-03-19T21:28:33Z
mdarby (Matt Darby)
matt@matt-darby.com
<ul></ul><p>=begin<br>
I too am having the same issue suddenly:</p>
<p>=> Booting Mongrel<br>
=> Rails 2.3.0 application starting on <a href="http://0.0.0.0:3000" class="external">http://0.0.0.0:3000</a><br>
/usr/local/lib/ruby/1.8/openssl/ssl.rb:31: [BUG] Bus Error<br>
ruby 1.8.7 (2008-08-08 patchlevel 71) [i686-darwin9.4.0]</p>
<p>[1] 404 abort ./script/server</p>
<p>OpenSSL 0.9.7l 28 Sep 2006<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=3608
2009-03-20T11:16:29Z
chaslemley (Chas Lemley)
chas.lemley@gmail.com
<ul></ul><p>=begin<br>
Do you have the following gems installed?</p>
<p>thin<br>
eventmachine</p>
<p>If you do, try uninstalling them and see if things work. It worked for me.<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=3642
2009-03-25T01:17:27Z
expertseries (Matt Gardner)
accounts@expertseries.com
<ul></ul><p>=begin<br>
Removing</p>
<p>thin<br>
eventmachine</p>
<p>Worked for me as well.<br>
Thanks Chas.<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=3649
2009-03-27T21:57:37Z
rogerdpack (Roger Pack)
rogerpack2005@gmail.com
<ul></ul><p>=begin<br>
why do thin and eventmachine affect rubygems here? Have you tried the latest version of eventmachine?<br>
Thanks.<br>
-=r<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=4383
2009-06-24T01:36:28Z
docwhat (Christian Höltje)
docwhat@gmail.com
<ul></ul><p>=begin<br>
Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: uninitialized value in ossl_x509store_initialize causes occasional segfault (Closed)" href="https://bugs.ruby-lang.org/issues/1678">#1678</a> has an excellent description of the problem, including valgrind info.</p>
<p>He has a (probably not correct) work-around that will let people get work done.</p>
<p>re: why removing certain gems works? Probably because it shifted memory locations around enough to allow the references be valid.</p>
<p>Ciao!<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=5932
2009-09-21T03:30:52Z
marcandre (Marc-Andre Lafortune)
marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Category</strong> set to <i>ext</i></li></ul><p>=begin</p>
<p>=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=11003
2010-05-14T00:36:37Z
docwhat (Christian Höltje)
docwhat@gmail.com
<ul></ul><p>=begin<br>
Removing eventmachine fixes the problem because eventmachine loads openssl. If you don't load anything that uses openssl, then you won't see the problem.<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=11006
2010-05-14T01:00:46Z
docwhat (Christian Höltje)
docwhat@gmail.com
<ul></ul><p>=begin<br>
I'm no expert with openssl, but you can see in code like this that it expects a NULL or a valid STACK:<br>
<a href="http://openssl.sourcearchive.com/documentation/0.9.8g/ex__data_8c-source.html" class="external">http://openssl.sourcearchive.com/documentation/0.9.8g/ex__data_8c-source.html</a></p>
<p>Looking at the code, I don't see ruby setting the STACK on initialization (GetX509Store), so I figured it should be NULL.</p>
<p>=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=11007
2010-05-14T01:08:07Z
docwhat (Christian Höltje)
docwhat@gmail.com
<ul></ul><p>=begin<br>
In 1.9.1 this was fixed in r27064.<br>
=end</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=26376
2012-05-02T19:11:18Z
shyouhei (Shyouhei Urabe)
shyouhei@ruby-lang.org
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/26376/diff?detail_id=19487">diff</a>)</li></ul><p>Seems r27064 has already been applied. Does this still occur?</p>
Backport187 - Feature #405: ssl.rb:31: [BUG] Bus Error
https://bugs.ruby-lang.org/issues/405?journal_id=81126
2019-08-27T16:27:41Z
jeremyevans0 (Jeremy Evans)
merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul>