Project

General

Profile

Actions

Bug #11411

closed

Crash in rb_gc_mark() during Rails app boot with GC.stress=1

Added by benweint (Ben Weintraub) over 9 years ago. Updated about 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
[ruby-core:70215]

Description

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) stressapp.tar.gz Rails app that duplicates the issue benweint (Ben Weintraub), 08/02/2015 07:06 PM
ruby_2015-08-02-120653_koan.crash (25.1 KB) ruby_2015-08-02-120653_koan.crash benweint (Ben Weintraub), 08/02/2015 07:08 PM
bug-11411.log (123 KB) bug-11411.log nobu (Nobuyoshi Nakada), 08/02/2015 10:06 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #11352: Sample code Garbage collection dies with an address is T_NONEClosedActions
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Is duplicate of Bug #10933: [BUG] object allocation during garbage collection phase added
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Is duplicate of deleted (Bug #10933: [BUG] object allocation during garbage collection phase)
Actions #3

Updated by wanabe (_ wanabe) over 9 years ago

  • Related to Bug #11352: Sample code Garbage collection dies with an address is T_NONE added

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

Seems same as #11352.

Updated by nagachika (Tomoyuki Chikanaga) about 9 years ago

The fixes are backported into ruby_2_2 branch at r51521 (for #11352).

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0