From: jrzeszotko@... Date: 2014-12-21T15:47:10+00:00 Subject: [ruby-core:67023] [ruby-trunk - Bug #10626] BUS error from nesting lambda's and calls to methods defined with define_method Issue #10626 has been updated by Jaros��aw Rzesz��tko. Maybe someone can now rename this issue to a name better reflecting the actual problem, it seems like a pretty general memory allocation bug that can causes many different code patterns to produce a crash. I also have reproduced the same issue on Ruby 2.2.0-rc1. Sorry for the large amount of somewhat disorganized writing, I have spent a huge amount of time debugging this issue starting from a complex Rails app, would very much like to find out what is at the bottom of this, and it's still an ongoing research. ---------------------------------------- Bug #10626: BUS error from nesting lambda's and calls to methods defined with define_method https://bugs.ruby-lang.org/issues/10626#change-50549 * Author: Jaros��aw Rzesz��tko * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1.5 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- I get a BUS error from executing the following Ruby program: https://gist.github.com/jaroslawr/8579678d7c68a49208f0 I am on Gentoo Linux and Ruby 2.1.5, and have also tried Ruby 2.1.4, 2.1.3, ..., down to 2.1.0. My colleagues The problem seems to lie in rapidly consuming stack space, and goes away when the stack size limit is increased with ulimit -s. For the real world context behind this, see the corresponding Rails issue I opened: https://github.com/rails/rails/issues/18011 -- https://bugs.ruby-lang.org/