Bug #416

core_set_method_alias

Added by Shyouhei Urabe about 7 years ago. Updated about 1 year ago.

[ruby-dev:35820]
Status:Closed
Priority:Normal
Assignee:Koichi Sasada
ruby -v:r17576 Backport:2.0.0: DONE, 2.1: DONE

Description

バックトレースにcore_set_method_aliasという謎のメソッド名が出現することがあります

% ~/target/trunk/bin/ruby -ve 'alias foo bar'
ruby 1.9.0 (2008-08-11 revision 17576) [x86_64-linux]
-e:1:in `core_set_method_alias': undefined method `bar' for class `Object' (NameError)
        from -e:1:in `<main>'

Associated revisions

Revision 46036
Added by Nobuyoshi Nakada over 1 year ago

test_backtrace.rb: r18554 tests

  • test/ruby/test_backtrace.rb (test_core_backtrace_{alias,undef}): add tests for r18554. [Bug #416]

Revision 46036
Added by Nobuyoshi Nakada over 1 year ago

test_backtrace.rb: r18554 tests

  • test/ruby/test_backtrace.rb (test_core_backtrace_{alias,undef}): add tests for r18554. [Bug #416]

Revision 46037
Added by Nobuyoshi Nakada over 1 year ago

vm.c: rewind cfp

  • vm.c (m_core_hash_{from_ary,merge_{ary,ptr,kwd}}): rewind cfp to show proper backtrace. [Bug #416]

Revision 46037
Added by Nobuyoshi Nakada over 1 year ago

vm.c: rewind cfp

  • vm.c (m_core_hash_{from_ary,merge_{ary,ptr,kwd}}): rewind cfp to show proper backtrace. [Bug #416]

Revision 46628
Added by Tomoyuki Chikanaga about 1 year ago

merge revision(s) r45399,r45400,r46036,r46037: [Backport #416]

vm.c: merge code

* vm.c (m_core_hash_from_ary, m_core_hash_merge_ary): merge

duplicated code.

Revision 46736
Added by Usaku NAKAMURA about 1 year ago

merge revision(s) 45399,45400,46036,46037: [Backport #416]

vm.c: merge code

* vm.c (m_core_hash_from_ary, m_core_hash_merge_ary): merge

duplicated code.

History

#1 Updated by Koichi Sasada about 7 years ago

  • Assignee set to Koichi Sasada

#2 Updated by Nobuyoshi Nakada about 7 years ago

  • Status changed from Open to Closed

Applied in changeset r18554

#3 Updated by Nobuyoshi Nakada over 1 year ago

  • Description updated (diff)
  • ruby -v set to r17576

#4 Updated by Tomoyuki Chikanaga over 1 year ago

  • Backport set to 2.0.0: REQUIRED, 2.1: REQUIRED

Hi,

Obviously r18554 is already contained in 2.0.0/2.1, but r46037 should be backported to ruby_2_0_0 and ruby_2_1.

#5 Updated by Tomoyuki Chikanaga about 1 year ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE

r45399, r45400, r46036 and r46037 were backported into ruby_2_1 branch at r46628.

#6 Updated by Usaku NAKAMURA about 1 year ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: DONE to 2.0.0: DONE, 2.1: DONE

backported into ruby_2_0_0 at r46736.

Also available in: Atom PDF