Project

General

Profile

Bug #10719

empty splatting literal hash after other keywords causes SEGV

Added by nobu (Nobuyoshi Nakada) over 4 years ago. Updated over 4 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 resultsClosedActions

Associated revisions

Revision 17a65c32
Added by nobu (Nobuyoshi Nakada) over 4 years ago

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 49193
Added by nobu (Nobuyoshi Nakada) over 4 years ago

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.

Revision 49193
Added by nobu (Nobuyoshi Nakada) over 4 years ago

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.

Revision 49193
Added by nobu (Nobuyoshi Nakada) over 4 years ago

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.

Revision 49193
Added by nobu (Nobuyoshi Nakada) over 4 years ago

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.

Revision 49193
Added by nobu (Nobuyoshi Nakada) over 4 years ago

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.

Revision 6170db40
Added by naruse (Yui NARUSE) over 4 years ago

merge revision(s) 49193: [Backport #10719]

    * parse.y (assocs, assoc): eliminate splatting empty literal
      hashes.  [ruby-core:67446] [Bug #10719]

    * compile.c (compile_array_): supprt splatted hash in hash type.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 49302
Added by naruse (Yui NARUSE) over 4 years ago

merge revision(s) 49193: [Backport #10719]

* parse.y (assocs, assoc): eliminate splatting empty literal
  hashes.  [ruby-core:67446] [Bug #10719]

* compile.c (compile_array_): supprt splatted hash in hash type.

History

Updated by nobu (Nobuyoshi Nakada) over 4 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) over 4 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 4 years ago

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

Also available in: Atom PDF