Bug #5330

Bug Report: wrong backtrace

Added by Ulrich Kramer over 2 years ago. Updated about 2 years ago.

[ruby-core:39572]
Status:Assigned
Priority:Normal
Assignee:Akira Tanaka
Category:-
Target version:-
ruby -v:ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] Backport:

Description

=begin
I would like to report a ruby1.9 bug. I tried to create a new ticket in redmine. After registration(wonderix) I tried to login, but I didn't succeed. After 4 password resets I gave up.

So here is my description:

a.rb:
test = Class.new(Object)
test.class_eval(File.read("b.rb"),"b.rb",1)
test.run

b.rb:
p caller
def self.run()
p caller
end

When I run a.rb I got:
["a.rb:2:in class_eval'", "a.rb:2:in'"]
["a.rb:3:in `'"]

Should be:
["b.rb:1:in class_eval'", "a.rb:2:in'"]
["b.rb:3:in `'"]

ruby -v:
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

Mit freundlichen Grüßen | best regards,

Ulrich Kramer
Senior Developer
=end

History

#1 Updated by Nobuyoshi Nakada about 2 years ago

  • ruby -v changed from - to ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

#2 Updated by Koichi Sasada about 2 years ago

  • Assignee set to Akira Tanaka

#3 Updated by Shyouhei Urabe about 2 years ago

  • Status changed from Open to Assigned

Also available in: Atom PDF