Project

General

Profile

Actions

Bug #10719

closed

empty splatting literal hash after other keywords causes SEGV

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

Status:
Closed
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 1 (0 open1 closed)

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

Updated by nobu (Nobuyoshi Nakada) almost 10 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 10 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.

Actions #3

Updated by shugo (Shugo Maeda) almost 10 years ago

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

Also available in: Atom PDF

Like0
Like0Like0Like0