From: Kazuhiro NISHIYAMA <redmine@...>
Date: 2009-08-19T02:02:27+09:00
Subject: [ruby-dev:39116] [Bug #1954] line number 0?

Bug #1954: line number 0?
http://redmine.ruby-lang.org/issues/show/1954

起票者: Kazuhiro NISHIYAMA
ステータス: Open, 優先度: Normal
カテゴリ: core
ruby -v: ruby 1.9.2dev (2009-08-18 trunk 24578) [i686-linux]

$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 `<main>'

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


----------------------------------------
http://redmine.ruby-lang.org