https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112019-05-15T21:52:01ZRuby Issue Tracking SystemRuby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=780352019-05-15T21:52:01Ztest35965@gmail.com (Alexander Riccio)
<ul></ul><p>Uhh, I don't know how to add maintainers, sorry!</p> Ruby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=902912021-02-08T20:03:05Ztest35965@gmail.com (Alexander Riccio)
<ul></ul><p>Still active as of Ruby 3.0.0p0 (x64-mingw32). I've done some more digging, and it appears to be freeing the Thread_Mutex in rb_call_inits (inits.c), aka the Init_Thread_Mutex function in thread.c.</p> Ruby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=902922021-02-08T20:08:52Ztest35965@gmail.com (Alexander Riccio)
<ul></ul><p>How do I assign? It looks like this should go to <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/17">@ko1 (Koichi Sasada)</a> (eval) or <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/4">@nobu (Nobuyoshi Nakada)</a> (mingw)</p> Ruby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=904992021-02-19T03:04:04Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p><code>vm->waitpid_lock</code> and <code>vm->workqueue_lock</code> seem never deleted.<br>
<code>rb_native_mutex_destroy</code> on them are disabled by <code>if (0)</code> in <code>rb_vm_gvl_destroy()</code>, and that function is not called from anywhere too.<br>
I have no idea why these calls are disabled.</p>
<p><a href="https://github.com/nobu/ruby/tree/bug/15852-delete-critsec" class="external">https://github.com/nobu/ruby/tree/bug/15852-delete-critsec</a></p> Ruby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=908112021-03-09T11:11:56Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="Destroy VM-wise locks before freeing [Bug #15852]" href="https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/2a83650b0fd25719fb6c03bfec7bd895734d3ceb">git|2a83650b0fd25719fb6c03bfec7bd895734d3ceb</a>.</p>
<hr>
<p>Destroy VM-wise locks before freeing [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting ruby (Closed)" href="https://bugs.ruby-lang.org/issues/15852">#15852</a>]</p> Ruby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=908752021-03-11T00:57:04Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Backport</strong> changed from <i>2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN</i> to <i>2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED</i></li></ul><p><code>vm->waitpid_lock</code> and <code>vm->workqueue_lock</code> seem never deleted.<br>
<code>rb_native_mutex_destroy</code> on them are disabled by <code>if (0)</code> in <code>rb_vm_gvl_destroy()</code>, and that function is not called from anywhere too.<br>
I have no idea why these calls are disabled.</p> Ruby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=908822021-03-11T11:06:26Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Backport</strong> changed from <i>2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED</i> to <i>2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE</i></li></ul><p>ruby_3_0 0074ea2d83230e10ab0cd769fff203c13d3c592f merged revision(s) 2a83650b0fd25719fb6c03bfec7bd895734d3ceb.</p> Ruby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=910052021-03-20T04:19:57Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE</i> to <i>2.6: REQUIRED, 2.7: DONE, 3.0: DONE</i></li></ul><p>ruby_2_7 30942fc4d89a04792e9eba7d3c4e5009c54e81da merged revision(s) 2a83650b0fd25719fb6c03bfec7bd895734d3ceb.</p> Ruby master - Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting rubyhttps://bugs.ruby-lang.org/issues/15852?journal_id=913042021-04-04T23:51:22Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.6: REQUIRED, 2.7: DONE, 3.0: DONE</i> to <i>2.6: DONE, 2.7: DONE, 3.0: DONE</i></li></ul><p>backported into ruby_2_6 at r67930</p>