Issue #9718 has been reported by Kenta Murata.

----------------------------------------
Bug #9718: Segmentation fault is occurred on trunk and 2.1
https://bugs.ruby-lang.org/issues/9718

* Author: Kenta Murata
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.2p80 (2014-03-01 revision 45231) [x86_64-darwin13.0]
* Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED
----------------------------------------
The following code occurs segmentation fault on trunk and 2.1.

```ruby
require 'thread'

queue = Queue.new

thread = Thread.start do
  loop do
    queue.pop.call
  end
end

loop do
  queue << -> do
    p Time.now
    sleep 1
  end
end
```



-- 
https://bugs.ruby-lang.org/