Ruby 3.2.6 on arm64-darwin24
Testing DNS resolution after fork...
Parent: DNS completed
ruby_dns_fork_bug.rb:24: [BUG] Segmentation fault at 0x000000010a0e8875
ruby 3.2.6 (2024-10-30 revision 63aeb018eb) [arm64-darwin24]

-- Crash Report log information --------------------------------------------
   See Crash Report log file in one of the following locations:
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.
Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0009 p:---- s:0048 e:000047 CFUNC  :getaddrinfo
c:0008 p:0011 s:0040 e:000039 BLOCK  ruby_dns_fork_bug.rb:24
c:0007 p:0027 s:0037 e:000036 BLOCK  timeout.rb:185
c:0006 p:0012 s:0032 e:000031 METHOD timeout.rb:38
c:0005 p:0124 s:0025 E:000f90 METHOD timeout.rb:194
c:0004 p:0014 s:0015 E:000a60 BLOCK  ruby_dns_fork_bug.rb:23 [FINISH]
c:0003 p:---- s:0012 e:000011 CFUNC  :fork
c:0002 p:0062 s:0008 E:002170 EVAL   ruby_dns_fork_bug.rb:20 [FINISH]
c:0001 p:0000 s:0003 E:001c40 DUMMY  [FINISH]

-- Ruby level backtrace information ----------------------------------------
ruby_dns_fork_bug.rb:20:in `<main>'
ruby_dns_fork_bug.rb:20:in `fork'
ruby_dns_fork_bug.rb:23:in `block in <main>'
timeout.rb:194:in `timeout'
timeout.rb:38:in `handle_timeout'
timeout.rb:185:in `block in timeout'
ruby_dns_fork_bug.rb:24:in `block (2 levels) in <main>'
ruby_dns_fork_bug.rb:24:in `getaddrinfo'

-- C level backtrace information -------------------------------------------
libruby.3.2.dylib(rb_vm_bugreport+0x9a0)
libruby.3.2.dylib(rb_bug_for_fatal_signal+0x160)
libruby.3.2.dylib(sig_do_nothing+0x0)
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x38)
/usr/lib/system/libsystem_trace.dylib(_os_log_preferences_refresh+0x24)
