-
-
Save slyphon/2702502 to your computer and use it in GitHub Desktop.
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
require 'thread' | |
# This seems to crash 1.8.7 | |
10.times { Thread.new { Queue.new.pop } } | |
Process.waitpid fork { GC.start; puts "In child: #{$$}" } |
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
require 'thread' | |
# This seems to crash 1.8.7 as well | |
10.times { Thread.new { m = Mutex.new; c = ConditionVariable.new; m.synchronize { c.wait(m) } } } | |
Process.waitpid fork { GC.start; puts "In child: #{$$}" } |
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
$ ruby crash_a_187.rb | |
crash_a_187.rb:5: [BUG] Segmentation fault | |
ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0] | |
$ ruby crash_an_187.rb | |
crash_an_187.rb:5: [BUG] Segmentation fault | |
ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0] | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment