[ruby-core:63410] [ruby-trunk - Bug #9954] Unexpected Hash Modification and Segmentation Fault with Named Arguments

From: nagachika00@...
Date: 2014-06-29 18:23:10 UTC
List: ruby-core #63410
Issue #9954 has been updated by Tomoyuki Chikanaga.

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

Backported into `ruby_2_1` branch at r46619.

----------------------------------------
Bug #9954: Unexpected Hash Modification and Segmentation Fault with Named Arguments
https://bugs.ruby-lang.org/issues/9954#change-47454

* Author: Andrew M
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: core
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [i686-linux]
* Backport: 2.0.0: DONTNEED, 2.1: DONE
----------------------------------------
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)
pry_sample_output.txt (35 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next