Project

General

Profile

Actions

Bug #9954

closed

Unexpected Hash Modification and Segmentation Fault with Named Arguments

Added by Ajedi32 (Andrew M) almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [i686-linux]
[ruby-core:63224]

Description

While experimenting with named arguments in Ruby 2.1.2, I encountered some strange behavior where a hash was modified after being passed as a set of named arguments with the double-splat operator. While attempting to examine the issue further, I encountered a segmentation fault which I believe to be related.

I have attached a log of my experiment, and a .rb file which reproduces both the unexpected hash modification and the segfault.


Files

segfault.rb (1.2 KB) segfault.rb File which reproduces the problem Ajedi32 (Andrew M), 06/18/2014 04:32 PM
pry_sample_output.txt (35 KB) pry_sample_output.txt Sample output my console (with PRY) Ajedi32 (Andrew M), 06/18/2014 04:36 PM

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #9898: Keyword argument odditiesClosed06/03/2014Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0