Project

General

Profile

Actions

Bug #4478

closed

hash order preservation fails on 64bit machine

Bug #4478: hash order preservation fails on 64bit machine

Added by JWuttke (Joachim Wuttke) over 14 years ago. Updated over 14 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
1.9.0
Backport:
[ruby-core:35447]

Description

=begin
On a 32bit machine:

~$ uname -r
2.6.32-5-686
~$ ruby1.9 -e "x={};x[:a]=1;x[:b]=2;p x"
{:a=>1, :b=>2} # as it should

On a 64bit machine:
~$ uname -r
2.6.24-etchnhalf.1-amd64
~$ ruby1.9 -e "x={};x[:a]=1;x[:b]=2;p x"
{:b=>2, :a=>1} # failure

=end

Updated by naruse (Yui NARUSE) over 14 years ago Actions #1 [ruby-core:35454]

  • Status changed from Open to Feedback

=begin
I can't reproduce this.
Can you show ruby -v ?
=end

Updated by JWuttke (Joachim Wuttke) over 14 years ago Actions #2

=begin
~$ ruby1.9 -v
ruby 1.9.0 (2006-06-08) [x86_64-linux]

=end

Updated by naruse (Yui NARUSE) over 14 years ago Actions #3 [ruby-core:37462]

  • Status changed from Feedback to Rejected

1.9.0 is too old (and this is pre released one) and obsoleted.
Please reopen this if it still happens on the latest version of ruby.

Actions

Also available in: PDF Atom