Last active
December 5, 2018 19:38
-
-
Save mbj/e6795ee5e0583c5541ee250e9942279a to your computer and use it in GitHub Desktop.
Crash Ruby 2.5.3
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
system('uname -a') | |
# not relevant just to make sure we terminate early | |
# core dumping is expensive. | |
Thread.abort_on_exception = true | |
MUTEX = Mutex.new | |
# You may have to up this on your platform | |
50.times do | |
Thread.new do | |
pid = Process.fork { MUTEX.synchronize {} } | |
MUTEX.synchronize {} | |
Process.waitpid(pid) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Upstream fixed it in: https://bugs.ruby-lang.org/issues/15383