From: Joseph Jones Date: 2015-12-17T21:06:54-07:00 Subject: [ruby-core:72289] [Ruby trunk - Bug #11756] SEGV Thread#inspect when sets the thread#name as a OpenStruct --5673865e_70c6a529_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 1, 2015 at 07:12:= 58 MST, nobu=40ruby-lang.org wrote:Issue =2311756 has been updated by Nob= uyoshi Nakada.Description updatedBackport set to 2.0.0: DONTNEED, 2.1: DO= NTNEED, 2.2: DONTNEED----------------------------------------Bug =2311756= : SEGV Thread=23inspect when sets the thread=23name as a OpenStructhttps:= //bugs.ruby-lang.org/issues/11756=23change-55188* Author: Lucas Amorim* S= tatus: Open* Priority: Normal* Assignee: * ruby -v: ruby 2.3.0preview1 (2= 015-11-11 trunk 52539) =5Bx86=5F64-darwin15=5D* Backport: 2.0.0: DONTNEED= , 2.1: DONTNEED, 2.2: DONTNEED----------------------------------------How= to reproduce:Run this script:=7E=7E=7Erubyrequire 'ostruct'thread =3D Th= read.new =7B 0 =7Dthread.name =3D OpenStruct.newputs thread.inspect=7E=7E= =7EResult:=7E=7E=7E../thread=5Fname.rb:6: =5BBUG=5D Segmentation fault at= 0x00000000000000ruby 2.3.0preview1 (2015-11-11 trunk 52539) =5Bx86=5F64-= darwin15=5D=7E=7E=7EI'll try to provide a patch ASAP.-- https://bugs.ruby= -lang.org/ --5673865e_70c6a529_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 1, 2015 at 07:12:58 MST, nobu=40ruby-lang.org wrote:
Issue =2311756 has been update= d by Nobuyoshi Nakada.

Description updated
Backport set t= o 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED

--------------= --------------------------
Bug =2311756: SEGV Thread=23inspect when = sets the thread=23name as a OpenStruct
https://bugs.ruby-lang.org/is= sues/11756=23change-55188

* Author: Lucas Amorim
* Status= : Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.3= .0preview1 (2015-11-11 trunk 52539) =5Bx86=5F64-darwin15=5D
* Backpo= rt: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED
------------------= ----------------------
How to reproduce:

Run this script:=

=7E=7E=7Eruby
require 'ostruct'

thread =3D Th= read.new =7B 0 =7D
thread.name =3D OpenStruct.new

puts th= read.inspect
=7E=7E=7E

Result:

=7E=7E=7E
= ../thread=5Fname.rb:6: =5BBUG=5D Segmentation fault at 0x00000000000000ruby 2.3.0preview1 (2015-11-11 trunk 52539) =5Bx86=5F64-darwin15=5D=7E=7E=7E

I'll try to provide a patch ASAP.


--
https://bugs.ruby-lang.org/
--5673865e_70c6a529_16c--