Project

General

Profile

Actions

Bug #10379

closed

Crash in Ruby 2.1.3 (and 2.1-head), works in 2.1.2

Added by anamba (Aaron Namba) over 9 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]
[ruby-core:65689]

Description

This crash does not happen 100% consistently, but does happen very often.

This crash happens most commonly when I am generating a large SELECT, containing about 600 options (_navigation.html.erb:35). I load Player objects from the database and iterate through them, translating their names using a large, hardcoded hash (translator.rb:6-791), then output the resulting html.

Also happens in 2.1-head (ruby 2.1.4p247 (2014-09-24 revision 47703) [x86_64-darwin13.0]), but somewhat less frequently. I have also attached an example of that crash (happens on translator.rb:834, which references the large hash from line 6).

The crash happens both locally on my mac and on my pre-deploy testing platform (Codeship.io).

This code works fine in 2.1.2, so for now I guess I will have to downgrade my app servers to 2.1.2 to get things working again.


Files

crash.txt (345 KB) crash.txt 2.1.3 crash example anamba (Aaron Namba), 10/14/2014 01:24 AM
crash2.txt (344 KB) crash2.txt 2.1-head crash example anamba (Aaron Namba), 10/14/2014 02:02 AM

Updated by hsbt (Hiroshi SHIBATA) about 5 years ago

  • Status changed from Open to Feedback

Ruby 2.1 is EOL today. Can you try with Ruby 2.5? Thanks.

Actions #2

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0