Issue #5330 has been updated by Nobuyoshi Nakada.

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


----------------------------------------
Bug #5330:  Bug Report: wrong backtrace
https://bugs.ruby-lang.org/issues/5330

Author: Ulrich Kramer
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]


=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 `<main>'"]
  ["a.rb:3:in `<main>'"]

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

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


Mit freundlichen Grƥn | best regards,

Ulrich Kramer
Senior Developer
=end



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