From: ko1@... Date: 2015-12-16T18:12:14+00:00 Subject: [ruby-core:72190] [Ruby trunk - Bug #11657] Abort Trap 6 when running a test suite Issue #11657 has been updated by Koichi Sasada. Thank you. minimal reproducible script is here: ```ruby class C attr_accessor :foo alias set_foo :foo= end c = C.new 2.times{ c.set_foo foo: 1, bar: 2 } ``` This is because a bug of method cache. I'll commit fix. Your provided code is so much helpful. Thank you! ---------------------------------------- Bug #11657: Abort Trap 6 when running a test suite https://bugs.ruby-lang.org/issues/11657#change-55601 * Author: Andrew Hodgkinson * Status: Open * Priority: Normal * Assignee: Koichi Sasada * ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15] *OR* ruby 2.3.0dev (2015-11-01 trunk 52421) [x86_64-darwin15] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- An internal Ruby gem I develop for my 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: ~~~ [BUG] Stack consistency error (sp: 273, bp: 271) ~~~ I'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 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 seems quite a lot of "stuff" needs to happen before it dies. ---Files-------------------------------- ruby_crash_osx.log (141 KB) ruby_crash_debian.log (160 KB) -- https://bugs.ruby-lang.org/