From: "byroot (Jean Boussier) via ruby-core" Date: 2025-03-10T20:42:36+00:00 Subject: [ruby-core:121279] [Ruby master Bug#21178] Socket fails in Ractor Issue #21178 has been updated by byroot (Jean Boussier). Status changed from Open to Closed Sorry, I didn't see you opened an issue already. I'm marking yours as duplicate because it has less context. ---------------------------------------- Bug #21178: Socket fails in Ractor https://bugs.ruby-lang.org/issues/21178#change-112239 * Author: getajobmike (Mike Perham) * Status: Closed * ruby -v: 3.4.1 * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- I think these structures need to be frozen. ``` /Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:1043:in 'Socket::HostnameResolutionStore#get_addrinfo': can not access non-shareable objects in constant Socket::HostnameResolutionStore::PRIORITY_ON_V6 by non-main ractor. (Ractor::IsolationError) from /Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:724:in 'block in Socket.tcp_with_fast_fallback' from :168:in 'Kernel#loop' from /Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:720:in 'Socket.tcp_with_fast_fallback' from /Users/mperham/.rubies/ruby-3.4.1/lib/ruby/3.4.0/socket.rb:661:in 'Socket.tcp' ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/