Issue #10579 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: DONE, 2.1: REQUIRED

Backported into `ruby_2_0_0` at r49246.

note: thread.c is a little different from trunk.

----------------------------------------
Bug #10579: Segmentation fault at 0x00000000000000
https://bugs.ruby-lang.org/issues/10579#change-50990

* Author: Arun Kant Sharma
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
* Backport: 2.0.0: DONE, 2.1: REQUIRED
----------------------------------------
Following script cause a Segmentation fault

~~~
$ ruby -rresolv -e 'ObjectSpace.each_object { |obj| p obj }' > temp.output
~~~
But this one not

~~~
$ ruby -e 'ObjectSpace.each_object { |obj| p obj }' > temp.output
~~~

---Files--------------------------------
rubyerror.output (18.7 KB)


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