Project

General

Profile

Actions

Bug #21090

open

SEGV from require in Thread in Ractor

Added by wanabe (_ wanabe) 10 days ago. Updated 3 days ago.

Status:
Open
Assignee:
-
Target version:
-
ruby -v:
ruby 3.5.0dev (2025-01-18T00:19:17Z origin/master 65a7c69188) +PRISM [x86_64-linux]
[ruby-core:120795]

Description

When ruby calls 'require' in Thread in non-main Ractor, it can cause SEGV sometimes.

$ ruby -e '1000.times { Ractor.new { th = Thread.new { require "rbconfig" }; Thread.pass }.take }' > segv.log 2>&1
Segmentation fault (core dumped)

segv.log is too large to paste in this description, so I attached as a file.


Files

segv.log (36.9 KB) segv.log wanabe (_ wanabe), 01/26/2025 03:17 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0