Project

General

Profile

Actions

Bug #1000

closed

Segmentation fault in Hash#[]

Added by mog (Morgan Christiansson) over 15 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:21249]

Description

=begin
Ruby crashes when creating a Hash using the [] public method.
For some reason it works the first time but segfaults the second time.

$ irb
irb(main):001:0> Hash[{:k=>["empty"]}]
=> {"empty"=>false}
irb(main):002:0> Hash[
{:k=>["empty"]}]
/usr/lib/ruby/1.8/irb.rb:302: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

Aborted
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #1385: Wonderful undocumented feature in Ruby 1.8.7 & 1.9Closedyugui (Yuki Sonoda)04/17/2009Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0