[PATCH] Check SPECIAL_CONST_P before RBASIC_CLASS to avoid SEGV
It fixes SEGV when a special constant is passed to
I think it needs to be backported to 2.1 and 2.2.
Updated by sorah (Sorah Fukumori) over 6 years ago
- Status changed from Open to Closed
Applied in changeset r50982.
ext/objspace/objspace_dump.c(dump_object): Return empty JSON object when
passed object is a special const, instead of SEGV.
Based patch by Kohei Suzuki (eagletmt). [ruby-core:69692] [Bug #11291]
test/objspace/test_objspace.rb(test_dump_special_consts): Test for above fix.