[#92063] [Ruby trunk Misc#15723] Reconsider numbered parameters — zverok.offline@...
Issue #15723 has been updated by zverok (Victor Shepelev).
3 messages
2019/03/31
[ruby-core:91850] [Ruby trunk Bug#15087] Segmentation fault with splat and block
From:
msiegel@...
Date:
2019-03-15 18:37:46 UTC
List:
ruby-core #91850
Issue #15087 has been updated by RubyBugs (A Nonymous).
**Hurray**! Confirmed that this no longer crashes and works as expected on _2.5.4_ and _2.6.2_
----------------------------------------
Bug #15087: Segmentation fault with splat and block
https://bugs.ruby-lang.org/issues/15087#change-77121
* Author: jacobevelyn (Jacob Evelyn)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: 2.5.0, 2.5.1, 2.6.0dev (2018-09-07 trunk 64656)
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE
----------------------------------------
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:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>