From: nagachika00@... Date: 2015-08-10T16:32:39+00:00 Subject: [ruby-core:70313] [Ruby trunk - Bug #11411] Crash in rb_gc_mark() during Rails app boot with GC.stress=1 Issue #11411 has been updated by Tomoyuki Chikanaga. The fixes are backported into `ruby_2_2` branch at r51521 (for #11352). ---------------------------------------- Bug #11411: Crash in rb_gc_mark() during Rails app boot with GC.stress=1 https://bugs.ruby-lang.org/issues/11411#change-53735 * Author: Ben Weintraub * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- When booting a newly-initialized Rails 4.2.1 app under Ruby 2.2.2 with `GC.stress` enabled, I get a repeatable crash. The same crash happens at least as far back as 2.1.4 (haven't tried any earlier versions). Steps to reproduce: 1. gem install rails -v 4.2.1 2. rails new stress 3. cd stress 4. bundle 5. echo 'GC.stress = 1' >config/initializers/000_stress.rb 6. bundle exec rails s Expected results: The application should not crash. Actual results: The app crashes with a `SIGABRT` and the message seen below. For convenience, I've attached a tarball of a Rails app built using the above steps that can reproduce this issue. I'm running on Mac OS X 10.10.4, haven't tried with other OSes. ~~~ $ be rails s => Booting WEBrick => Rails 4.2.3 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server /Users/ben/.gem/ruby/2.2.2/gems/rack-1.6.4/lib/rack/mime.rb:55: [BUG] rb_gc_mark(): 0x007f94ebce3c18 is T_NONE (snip) Abort trap: 6 ---Files-------------------------------- stressapp.tar.gz (12.3 KB) ruby_2015-08-02-120653_koan.crash (25.1 KB) bug-11411.log (123 KB) -- https://bugs.ruby-lang.org/