[ruby-core:96392] [Ruby master Bug#16442] Segmentation fault when calling a method with array splat and empty kwargs splat

[email protected]
Newsgroups gmane.comp.lang.ruby.core
Message-ID <redmine.issue-16442.20191221163821.56dce1b321d27f33@ruby-lang.org>
Issue #16442 has been reported by tompng (tomoya ishida).

----------------------------------------
Bug #16442: Segmentation fault when calling a method with array splat and empty kwargs splat
https://bugs.ruby-lang.org/issues/16442

* Author: tompng (tomoya ishida)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0preview3 (2019-11-23 master b563439274) [x86_64-darwin19] 〜 ruby 2.7.0dev (2019-12-21T14:08:52Z master 85a337f986) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
`a=[1];b(*a, 2, **{})`

~~~
$ ruby -e "a=[1];b(*a, 2, **{})" 
-e:1: [BUG] Segmentation fault at 0x0000000000000005
ruby 2.7.0preview3 (2019-11-23 master b563439274) [x86_64-darwin19]
~~~

~~~
$ ./miniruby -e "a=[1];b(*a, 2, **{})" 
-e:1: [BUG] Segmentation fault at 0x0000000000000005
ruby 2.7.0dev (2019-12-14T15:21:19Z trunk db2ea9b0c5) [x86_64-darwin19]
~~~

~~~
$ ruby -ve "a=[nil];{}.instance_exec(*a, nil, **{}, &->(a,b){})" 
ruby 2.7.0dev (2019-12-21T14:08:52Z master 85a337f986) [x86_64-linux]
-e:1: [BUG] Segmentation fault at 0x0000000000000008
ruby 2.7.0dev (2019-12-21T14:08:52Z master 85a337f986) [x86_64-linux]
~~~




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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.