Project

General

Profile

Bug #14577 » backtrace_bug.rb

francois (François Jacques), 03/05/2018 06:19 PM

 
class Crash < RuntimeError
def backtrace
IO.readlines($0)
end
end

puts 'Wait for it. Starting in 0.5 sec. Once the dots stop, kill the process with SIGKILL.'
sleep 0.5

loop do
begin
raise Crash.new 'boo!'
rescue => e
putc '.'
ensure
end
end
    (1-1/1)