Project

General

Profile

This project is closed and read-only.

Actions

Backport #6618

closed

Seg Fault when printing thread.keys

Backport #6618: Seg Fault when printing thread.keys

Added by cantregister (Why Cantiregister) over 14 years ago. Updated almost 14 years ago.

Status:
Closed
Assignee:
-
[ruby-core:45741]

Description

This is very easy to reproduce:

require 'bigdecimal'

for thr in Thread.list
puts thr.keys
end

Somehow a key is introduced to the thread with the object ID of 8.

Attempting to inspect or to_s this key results in a seg fault.

1.9.3p194 :001 > ObjectSpace._id2ref(8)
RangeError: 0x00000000000008 is not symbol id value

It is not clear how this object is created or inserted into the Thread.

Actions

Also available in: PDF Atom