Project

General

Profile

Actions

Bug #22083

closed

"should have cvar cache entry" bug on Array#clone

Bug #22083: "should have cvar cache entry" bug on Array#clone

Added by chucke (Tiago Cardoso) 19 days ago. Updated 18 days ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 4.0.5 (2026-05-20 revision 64336ffd0e) +PRISM [x86_64-linux]
[ruby-core:125579]

Description

The httpx test suite has been reliably failing with a core dump on latest ruby 4.

The test suite runs on minitest with parallel mode turned on, although the issue can be reproduced in serial mode. The error happens when running the ssh proxy test, which eventually calls this net-ssh function and produces the core dump sent in attachment.

I couldn't come up with reproduction not involving the httpx test suite docker setup, but I was able to narrow it down. Here are instructions on how to set up the docker container. You can then run this script to reproduce it:

require "httpx"

uri = "http://nghttp2/get"

Ractor.new(uri) do |uri|
  HTTPX.get(uri)
end.value

sess = HTTPX.plugin(:"proxy/ssh")
     .with_proxy(uri: ["ssh://sshproxy:22"],
                 username: "root",
                 auth_methods: %w[publickey],
                 host_key: "ssh-rsa",
                 keys: %w[test/support/ssh/ssh_host_ed25519_key])

The key information is ractors being used before.


Files

test.log (167 KB) test.log chucke (Tiago Cardoso), 05/27/2026 10:29 AM

Related issues 1 (0 open1 closed)

Related to Ruby - Bug #22072: [BUG] should have cvar cache entryClosedActions
Actions

Also available in: PDF Atom