Skip to content

Instantly share code, notes, and snippets.

@gordonsyme
Created December 20, 2013 21:54
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 gordonsyme/8062293 to your computer and use it in GitHub Desktop.
Save gordonsyme/8062293 to your computer and use it in GitHub Desktop.
A list of Ruby versions with the "exceptions reset exit codes" bug
Ruby versions with the bug that resets non-zero exit codes if an exception
is raised in an at_exit block. See http://bugs.ruby-lang.org/issues/5218
ruby-1.9.2-p0
ruby-1.9.2-p136
ruby-1.9.2-p180
ruby-1.9.2-p290
ruby-1.9.2-p320
ruby-1.9.3-p0
ruby-1.9.3-p0-falcon
ruby-1.9.3-p125
ruby-1.9.3-p194
ruby-1.9.3-p194-falcon
ruby-1.9.3-p286
ruby-1.9.3-p327
ruby-1.9.3-p327-falcon
ruby-1.9.3-p327-railsexpress
ruby-1.9.3-p362
ruby-1.9.3-p374
ruby-1.9.3-p385
# Sample Ruby script from http://bugs.ruby-lang.org/issues/5218 that triggers the bug
# This script will exit 0 if the bug is present
at_exit do
raise "X" rescue nil
end
at_exit do
nil
end
at_exit do
exit 1
end
at_exit do
exit 2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment