[ruby-core:88891] [Ruby trunk Bug#15087] Segmentation fault with splat and block

From: mame@...
Date: 2018-09-07 15:07:16 UTC
List: ruby-core #88891
Issue #15087 has been updated by mame (Yusuke Endoh).


Good catch.  My patch for #15052 will fix this issue.

----------------------------------------
Bug #15087: Segmentation fault with splat and block
https://bugs.ruby-lang.org/issues/15087#change-73934

* Author: jacobevelyn (Jacob Evelyn)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.5.0, 2.5.1, 2.6.0dev (2018-09-07 trunk 64656)
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
The following code produces segmentation faults in Ruby 2.5.0, 2.5.1, and 2.6.0dev (2018-09-07 trunk 64656). This code worked in Ruby 2.4.1.

~~~ ruby
test_proc = Proc.new { "test" }
def foo(bar: 1, &block)
  yield
end
foo(**{}, &test_proc)
~~~

I've attached the crash reports for both Ruby 2.6.0dev (2018-09-07 trunk 64656) and 2.5.1. Let me know if there's anything else I can provide.

---Files--------------------------------
ruby_2.6.0dev-2018-09-07-105158_Jacobs-MacBook-Pro.crash (36.4 KB)
ruby_2.5.1-2018-09-07-105813_Jacobs-MacBook-Pro.crash (36.4 KB)


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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next