Forum: Ruby-dev [ruby-trunk - Bug #8492][Assigned] ObjectSpace.after_gc_start_hook aborts with GC.stress

9361878d459f1709feec780518946ee5?d=identicon&s=25 naruse (Yui NARUSE) (Guest)
on 2013-06-05 05:45
(Received via mailing list)
Issue #8492 has been reported by naruse (Yui NARUSE).

----------------------------------------
Bug #8492: ObjectSpace.after_gc_start_hook aborts with GC.stress
https://bugs.ruby-lang.org/issues/8492

Author: naruse (Yui NARUSE)
Status: Assigned
Priority: Normal
Assignee: ko1 (Koichi Sasada)
Category: core
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-06-05 trunk 41080) [x86_64-freebsd9.1]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


以下を実行すると assert(during_gc > 0) に失敗して abort します。
ruby -robjspace
-e'ObjectSpace.after_gc_start_hook=proc{};GC.stress=true;{}'
gc.c:3818 の
 gc_event_hook(objspace, RUBY_INTERNAL_EVENT_GC_START, 0 /* TODO: pass
minor/immediate flag? */);
実行後に、during_gc が 0 になっている模様。
C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 ko1 (Koichi Sasada) (Guest)
on 2013-10-10 11:07
(Received via mailing list)
Issue #8492 has been updated by ko1 (Koichi Sasada).


随分放置してしまってすみません。
これ、今でもなりますか? 手元ではなんか

$ ./ruby -robjspace
-e'ObjectSpace.after_gc_start_hook=proc{};GC.stress=true;{}'
セグメンテーション違反です

などと出てしまう。これはこれでまずかろう、という気もしますが...。
----------------------------------------
Bug #8492: ObjectSpace.after_gc_start_hook aborts with GC.stress
https://bugs.ruby-lang.org/issues/8492#change-42411

Author: naruse (Yui NARUSE)
Status: Assigned
Priority: Normal
Assignee: ko1 (Koichi Sasada)
Category: core
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-06-05 trunk 41080) [x86_64-freebsd9.1]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


以下を実行すると assert(during_gc > 0) に失敗して abort します。
ruby -robjspace
-e'ObjectSpace.after_gc_start_hook=proc{};GC.stress=true;{}'
gc.c:3818 の
 gc_event_hook(objspace, RUBY_INTERNAL_EVENT_GC_START, 0 /* TODO: pass
minor/immediate flag? */);
実行後に、during_gc が 0 になっている模様。
5cf8f058a4c094bb708174fb43e7a387?d=identicon&s=25 nagachika (Tomoyuki Chikanaga) (Guest)
on 2013-10-11 12:53
(Received via mailing list)
Issue #8492 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED,
2.0.0: DONTNEED


----------------------------------------
Bug #8492: ObjectSpace.after_gc_start_hook aborts with GC.stress
https://bugs.ruby-lang.org/issues/8492#change-42425

Author: naruse (Yui NARUSE)
Status: Closed
Priority: Normal
Assignee: ko1 (Koichi Sasada)
Category: core
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-06-05 trunk 41080) [x86_64-freebsd9.1]
Backport: 1.9.3: DONTNEED, 2.0.0: DONTNEED


以下を実行すると assert(during_gc > 0) に失敗して abort します。
ruby -robjspace
-e'ObjectSpace.after_gc_start_hook=proc{};GC.stress=true;{}'
gc.c:3818 の
 gc_event_hook(objspace, RUBY_INTERNAL_EVENT_GC_START, 0 /* TODO: pass
minor/immediate flag? */);
実行後に、during_gc が 0 になっている模様。
This topic is locked and can not be replied to.