Project

General

Profile

Bug #10719

empty splatting literal hash after other keywords causes SEGV

Added by nobu (Nobuyoshi Nakada) almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:67446]

Description

$ ruby -e 'foo(a: 1, **{})'
ruby: [BUG] Segmentation fault at 0x00000000000018
ruby 2.3.0dev (2015-01-09 trunk 49192) [universal.x86_64-darwin14]

Related issues

Related to Ruby master - Bug #10856: Splat with empty keyword args gives unexpected resultsClosednobu (Nobuyoshi Nakada)Actions

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset r49193.


parse.y: eliminate empty hashes

  • parse.y (assocs, assoc): eliminate splatting empty literal hashes. [ruby-core:67446] [Bug #10719]
  • compile.c (compile_array_): supprt splatted hash in hash type.

Updated by naruse (Yui NARUSE) almost 6 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

ruby_2_2 r49302 merged revision(s) 49193.

#3

Updated by shugo (Shugo Maeda) over 5 years ago

  • Related to Bug #10856: Splat with empty keyword args gives unexpected results added

Also available in: Atom PDF