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

From: andrewm.bpi@...
Date: 2014-06-19 03:39:28 UTC
List: ruby-core #63232
Issue #9954 has been updated by Andrew M.


Hmm... that doesn't really seem like the same issue (it has totally different symptoms from what I described here) but I'll trust your judgement on this one.

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

* 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: REQUIRED
----------------------------------------
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