Skip to content

Instantly share code, notes, and snippets.

Created December 21, 2014 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a86f5eb0198acc10ae1e to your computer and use it in GitHub Desktop.
Save anonymous/a86f5eb0198acc10ae1e to your computer and use it in GitHub Desktop.
BUS error
# Depth of nesting
N = 500
# Number of floats to allocate
M = 10_000
N.times do |i|
define_method("m#{i}") do
print "."
(1..M).to_a.map { rand }
send("m#{i+1}")
end
end
define_method("m#{N}") do
puts "END"
end
m0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment