[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67648] [ruby-trunk - Bug #10706] Segmentation fault when change visibility of refined new method

From: naruse@...
Date: 2015-01-17 07:38:03 UTC
List: ruby-core #67648
Issue #10706 has been updated by Yui NARUSE.

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.

----------------------------------------
Bug #10706: Segmentation fault when change visibility of refined new method
https://bugs.ruby-lang.org/issues/10706#change-51068

* Author: Seiei Higa
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0dev (2015-01-07 trunk 49171) [x86_64-darwin13]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE
----------------------------------------
following code cause SEGV in ruby-trunk, 2.2.0, 2.1.5, 2.0.0p598

``` ruby
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--------------------------------
miniruby_2015-01-07-213034_Module.crash (10.3 KB)
bug.rb (85 Bytes)
0001-vm_method.c-fix-change-refined-new-method-visibility.patch (1.44 KB)


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

In This Thread

Prev Next