Project

General

Profile

Actions

Bug #1954

closed

line number 0?

Added by znz (Kazuhiro NISHIYAMA) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-08-18 trunk 24578) [i686-linux]
Backport:
[ruby-dev:39116]

Description

=begin
$DEBUG = true の時に出てくる例外発生位置の行番号が 0 になってしまうことがあるようです。

% cat t0.rb
$DEBUG = true
Thread.start do
begin
Process.kill(:INT, $$)
ensure
raise
end
end.join
% ruby-trunk t0.rb
Exception Interrupt' at t0.rb:2 - Exception RuntimeError' at t0.rb:6 -
Exception RuntimeError' at t0.rb:0 - t0.rb:2:in join': Interrupt
from t0.rb:2:in `'

% ruby-trunk -v
ruby 1.9.2dev (2009-08-18 trunk 24578) [i686-linux]
%
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0