Project

General

Profile

Bug #15385 » reproduce.rb

reproduction script - pawelpacana (Paweł Pacana), 12/06/2018 01:42 AM

 
1
require 'timeout'
2

    
3
puts Process.pid
4

    
5
def raise_before_returning
6
  raise
7
  []
8
end
9

    
10
def doh
11
  value = raise_before_returning
12
ensure
13
  # p value # <-- that unblocks it
14
  value if nil
15
end
16

    
17
Timeout.timeout(3) do
18
  doh
19
end