Actions
Bug #22389
closedHang on GC.compact
Bug #22389:
Hang on GC.compact
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 4.1.0dev (2026-09-29T07:26:07Z master 64a4a372d7) +PRISM [arm64-darwin25]
Backport:
Actions
Added by rkh (Konstantin Haase) about 2 months ago. Updated about 13 hours ago.
Applied in changeset git|e131720215251851efab1811a24c4d59a0fc979d.
Use pthread_sigmask in the GC read barrier signal handler
sigprocmask() is unspecified in multithreaded processes; on macOS it
left SIGSEGV/SIGBUS blocked on the faulting thread, so a second
read-barrier fault was never delivered and the process hung on the
faulting instruction. [Bug #22389]
ruby_3_4 0b4e70bbd94ce4383b733860bd265dbf51764e6b merged revision(s) e131720215251851efab1811a24c4d59a0fc979d.
After I backported for [Bug #22467], the CI on macOS starts to hang-up. I suppose this change is also necessary.
ruby_4_0 fc954f71ce2004b36b307ceef679c93f3a3ac27f merged revision(s) e131720215251851efab1811a24c4d59a0fc979d.