Project

General

Profile

Actions

Bug #11756

closed

SEGV Thread#inspect when sets the thread#name as a OpenStruct

Added by lucasamorim (Lucas Amorim) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0preview1 (2015-11-11 trunk 52539) [x86_64-darwin15]
[ruby-core:71774]

Description

How to reproduce:

Run this script:

require 'ostruct'

thread = Thread.new { 0 }
thread.name = OpenStruct.new

puts thread.inspect

Result:

../thread_name.rb:6: [BUG] Segmentation fault at 0x00000000000000
ruby 2.3.0preview1 (2015-11-11 trunk 52539) [x86_64-darwin15]

I'll try to provide a patch ASAP.

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Description updated (diff)
  • Backport set to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r52834.


thread.c: check name argument

Actions

Also available in: Atom PDF

Like0
Like0Like0