Actions
Bug #10706
closedSegmentation fault when change visibility of refined new method
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-01-07 trunk 49171) [x86_64-darwin13]
Backport:
Description
following code cause SEGV in ruby-trunk, 2.2.0, 2.1.5, 2.0.0p598
module RefinementBug
refine Object do
def foo
end
end
end
private(:foo)
it should be raise NameError
like:
/Users/sei/tmp/bug.rb:8:in `private': undefined method `foo' for class `Object' (NameError)
from /Users/sei/tmp/bug.rb:8:in `<main>'
Files
Updated by hanachin (Seiei Miyagi) over 10 years ago
- File 0001-vm_method.c-fix-change-refined-new-method-visibility.patch 0001-vm_method.c-fix-change-refined-new-method-visibility.patch added
I wrote a test and patch.
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Updated by nagachika (Tomoyuki Chikanaga) over 10 years ago
- Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED
Updated by naruse (Yui NARUSE) over 10 years ago
- Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE
ruby_2_2 r49297 merged revision(s) 49182,49183.
Updated by usa (Usaku NAKAMURA) over 10 years ago
- Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONE, 2.1: REQUIRED, 2.2: DONE
ruby_2_0_0 r49422 merged revision(s) 49175.
test is a little changed to get rid of a warning about refinement on 2.0.0.
Updated by nagachika (Tomoyuki Chikanaga) about 10 years ago
- Backport changed from 2.0.0: DONE, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONE, 2.1: DONE, 2.2: DONE
Backported into ruby_2_1
at r49786.
Actions
Like0
Like0Like0Like0Like0Like0Like0