Created
December 21, 2014 15:13
-
-
Save anonymous/a86f5eb0198acc10ae1e to your computer and use it in GitHub Desktop.
BUS error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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