Ruby Issue Tracking System: Issues
https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2011-01-25T22:31:20Z
Ruby Issue Tracking System
Redmine
Ruby master - Bug #4320 (Closed): Bus Error in digest/sha2 on sparc
https://bugs.ruby-lang.org/issues/4320
2011-01-25T22:31:20Z
Meik (Meik Nienaber)
mn@saeder-krupp.com
<p>=begin<br>
Most likely this is caused due to misaligned memory. Any comment is greatly appreciated.</p>
<p>This bug can reproduce at Ruby 1.8, too.</p>
<p>ruby -e "require 'digest/sha2'; d= Digest::SHA256.new; ['a' * 97, 'a' * 97].each {|i| d.update(i)}; p d"<br>
-e:1: [BUG] Bus Error<br>
ruby 1.9.2p136 (2010-12-25 revision 30365) [sparc-solaris2.10]</p>
<p>-- control frame ----------<br>
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :update<br>
c:0006 p:0014 s:0015 b:0015 l:0015ac d:000014 BLOCK -e:1<br>
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH<br>
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :each<br>
c:0003 p:0054 s:0007 b:0007 l:0015ac d:000ed0 EVAL -e:1<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH<br>
c:0001 p:0000 s:0002 b:0002 l:0015ac d:0015ac TOP<br>
=end</p>