https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-12-05T08:26:11ZRuby Issue Tracking SystemRuby master - Bug #9212: Segmentation fault in test/objspace/test_objspace.rb#test_dump_allhttps://bugs.ruby-lang.org/issues/9212?journal_id=434172013-12-05T08:26:11Ztmm1 (Aman Karmani)ruby@tmm1.net
<ul></ul><blockquote>
<p>ruby/ruby(rb_class_path+0x83) [0x2b1ca09be963]<br>
ruby/.ext/x86_64-linux/objspace.so(+0x3490) [0x2b1ca22bb490] ../../../../mirrors/trunk-git/ext/objspace/object_tracing.c:84</p>
</blockquote>
<p>This is a known issue in the current implementation.<br>
We need an allocation-free variant of rb_class_path that is safe to use from this context.</p> Ruby master - Bug #9212: Segmentation fault in test/objspace/test_objspace.rb#test_dump_allhttps://bugs.ruby-lang.org/issues/9212?journal_id=434882013-12-07T16:49:36Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Category</strong> set to <i>core</i></li><li><strong>Assignee</strong> set to <i>tmm1 (Aman Karmani)</i></li><li><strong>Target version</strong> set to <i>2.1.0</i></li></ul> Ruby master - Bug #9212: Segmentation fault in test/objspace/test_objspace.rb#test_dump_allhttps://bugs.ruby-lang.org/issues/9212?journal_id=435392013-12-09T12:26:09Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r44088.<br>
Alexey, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>object_tracing.c: fix allocation from NEWOBJ hook</p>
<ul>
<li>ext/objspace/object_tracing.c (newobj_i): use cached class path<br>
only to get rid object allocation during NEWOBJ hook.<br>
<a href="/issues/9212">[ruby-core:58853]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Segmentation fault in test/objspace/test_objspace.rb#test_dump_all (Closed)" href="https://bugs.ruby-lang.org/issues/9212">#9212</a>]</li>
</ul>