Project

General

Profile

Actions

Bug #12662

closed

rb_hash_fetch() Segmentation fault on an empty hash table

Added by rocco (Rocco Carbone) over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
[ruby-core:76789]

Description

I am writing HTM (Hash Table Machine - a C benchmark program for hash table) and libruby aborts with

ruby: [BUG] Segmentation fault at 0x00000000000018
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

while attempting to get an entry from an empty hash table.

Attached is a simple program that reproduces the bug.

Hope it helps.

ciao

/rocco


Files

ruby-bug.c (652 Bytes) ruby-bug.c I am on a Debian stretch/sid and compile the example program with gcc -g `pkg-config --cflags ruby` ruby-bug.c `pkg-config --libs ruby` -o ruby-bug rocco (Rocco Carbone), 08/09/2016 08:51 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0