Project

General

Profile

Bug #16442

Segmentation fault when calling a method with array splat and empty kwargs splat

Added by tompng (tomoya ishida) 3 months ago. Updated 3 months ago.

Status:
Closed
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]
[ruby-core:96392]

Description

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]

Also available in: Atom PDF