From: Joseph Jones Date: 2015-12-17T21:07:06-07:00 Subject: [ruby-core:72296] [Ruby trunk - Bug #11657] Abort Trap 6 when running a test suite --5673866a_741226bb_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 16, 2015 at 11:12= :14 MST, ko1=40atdot.net wrote:Issue =2311657 has been updated by Koichi = Sasada.Thank you.minimal reproducible script is here:=60=60=60rubyclass C= attr=5Faccessor :foo alias set=5Ffoo :foo=3Dendc =3D C.new2.times=7B c.s= et=5Ffoo foo: 1, bar: 2=7D=60=60=60This is because a bug of method cache.= I'll commit fix.Your provided code is so much helpful. Thank you=21------= ----------------------------------Bug =2311657: Abort Trap 6 when running= a test suitehttps://bugs.ruby-lang.org/issues/11657=23change-55601* Auth= or: Andrew Hodgkinson* Status: Open* Priority: Normal* Assignee: Koichi S= asada* ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) =5Bx86=5F64-da= rwin15=5D *OR* ruby 2.3.0dev (2015-11-01 trunk 52421) =5Bx86=5F64-darwin1= 5=5D* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN---------------= -------------------------An internal Ruby gem I develop for my company ha= s a test suite that works fine on Ruby 2.1.x but crashes on **2.2.3 and 2= .3.0-dev** with:=7E=7E=7E=5BBUG=5D Stack consistency error (sp: 273, bp: = 271)=7E=7E=7EI've tried this on both OS X (10.11.1) and a Debian build in= a Virtualbox VM to try and eliminate OS X as the problem, with the same = results (as in, an abort and a 'stack consistency error' in the logs). I = have attached the backtrace log data from both the OS X and Debian builds= , from Ruby 2.2.3p173 (though as I say, I did try 2.3.0-dev too and the s= ame stack error arose).At present, the component in question is closed so= urce. We are actually planning to open source it, but it'll be a while. I= 'm unable to replicate this as some isolated test case at present I'm afr= aid - it seems quite a lot of =22stuff=22 needs to happen before it dies.= ---=46iles--------------------------------ruby=5Fcrash=5Fosx.log (141 KB)= ruby=5Fcrash=5Fdebian.log (160 KB)-- https://bugs.ruby-lang.org/ --5673866a_741226bb_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 16, 2015 at 11:12:14 MST, ko1=40atdot.net wrote:
Issue =2311657 has been updated by= Koichi Sasada.


Thank you.

minimal reproducib= le script is here:

=60=60=60ruby
class C
attr=5Fac= cessor :foo
alias set=5Ffoo :foo=3D
end

c =3D C.ne= w

2.times=7B
c.set=5Ffoo foo: 1, bar: 2
=7D
=60= =60=60

This is because a bug of method cache.
I'll commit= fix.

Your provided code is so much helpful. Thank you=21


----------------------------------------
Bug =2311657: = Abort Trap 6 when running a test suite
https://bugs.ruby-lang.org/is= sues/11657=23change-55601

* Author: Andrew Hodgkinson
* S= tatus: Open
* Priority: Normal
* Assignee: Koichi Sasada
*= ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) =5Bx86=5F64-darwin15= =5D *OR* ruby 2.3.0dev (2015-11-01 trunk 52421) =5Bx86=5F64-darwin15=5D* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
---------= -------------------------------
An internal Ruby gem I develop for m= y company has a test suite that works fine on Ruby 2.1.x but crashes on *= *2.2.3 and 2.3.0-dev** with:

=7E=7E=7E
=5BBUG=5D Stack co= nsistency error (sp: 273, bp: 271)
=7E=7E=7E

I've tried t= his on both OS X (10.11.1) and a Debian build in a Virtualbox VM to try a= nd eliminate OS X as the problem, with the same results (as in, an abort = and a 'stack consistency error' in the logs). I have attached the backtra= ce log data from both the OS X and Debian builds, from Ruby 2.2.3p173 (th= ough as I say, I did try 2.3.0-dev too and the same stack error arose).
At present, the component in question is closed source. We are = actually planning to open source it, but it'll be a while. I'm unable to = replicate this as some isolated test case at present I'm afraid - it seem= s quite a lot of =22stuff=22 needs to happen before it dies.

-= --=46iles--------------------------------
ruby=5Fcrash=5Fosx.log (14= 1 KB)
ruby=5Fcrash=5Fdebian.log (160 KB)


--
h= ttps://bugs.ruby-lang.org/
--5673866a_741226bb_16c--