Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created July 12, 2024 02:29
Show Gist options
  • Save hsbt/378fe2ba47e734f2562ba9a154e1795b to your computer and use it in GitHub Desktop.
Save hsbt/378fe2ba47e734f2562ba9a154e1795b to your computer and use it in GitHub Desktop.
$ make test-all -j TESTS='ruby -j8'
revision.h updated
generating arm64-darwin24-fake.rb
arm64-darwin24-fake.rb updated
BASERUBY = /Users/hsbt/.local/share/rbenv/shims/ruby --disable=gems
CC = clang
LD = ld
LDSHARED = clang -dynamiclib
CFLAGS = -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -pipe -arch arm64
XCFLAGS = -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -fPIE -I. -I.ext/include/arm64-darwin24 -I./include -I. -I./prism -I./enc/unicode/15.0.0 -I/opt/homebrew/Cellar/gmp/6.3.0/include
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT
DLDFLAGS = -L/opt/homebrew/Cellar/gmp/6.3.0/lib -Wl,-undefined,dynamic_lookup -fstack-protector-strong -Wl,-pie -framework CoreFoundation -arch arm64
SOLIBS = -lgmp -ldl -lobjc -lpthread
LANG = en_US.UTF-8
LC_ALL =
LC_CTYPE = UTF-8
MFLAGS = -j
RUSTC = rustc
YJIT_RUSTC_ARGS = --crate-name=yjit --crate-type=staticlib --edition=2021 -g -C lto=thin -C opt-level=3 -C overflow-checks=on '--out-dir=/Users/hsbt/Documents/github.com/ruby/ruby/yjit/target/release/' ./yjit/src/lib.rs
generating enc.mk
Apple clang version 16.0.0 (clang-1600.0.22.7)
Target: arm64-apple-darwin24.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
making enc
making srcs under enc
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Nothing to be done for 'enc'.
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Nothing to be done for 'srcs'.
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
generating transdb.h
transdb.h unchanged
generating makefiles ext/configure-ext.mk
making trans
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Nothing to be done for 'trans'.
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
making encs
ext/configure-ext.mk updated
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Nothing to be done for 'encs'.
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
generating makefile exts.mk
exts.mk unchanged
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/digest'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/date'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/coverage'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/monitor'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/io/console'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/pathname'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/json'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/rubyvm'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/objspace'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/pty'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/psych'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/ripper'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/fiddle'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/bigdecimal-3.1.8/ext/bigdecimal'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/debug-1.9.2/ext/debug'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/racc-1.8.0/ext/racc/cparse'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/rbs-3.5.2/ext/rbs_extension'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/coverage'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/openssl'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/bigdecimal-3.1.8/ext/bigdecimal'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/objspace'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/date'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/socket'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/monitor'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/debug-1.9.2/ext/debug'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/json'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/digest'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/pathname'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/syslog-0.1.2/ext/syslog'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/nkf-0.2.0/ext/nkf'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/racc-1.8.0/ext/racc/cparse'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/fiddle'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/io/console'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/rubyvm'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/rbs-3.5.2/ext/rbs_extension'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/pty'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/nkf-0.2.0/ext/nkf'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/ripper'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/digest/sha2'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/.bundle/gems/syslog-0.1.2/ext/syslog'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/psych'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/socket'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/digest/sha2'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby/ext/openssl'
make[2]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
compiling version.c
linking miniruby
builtin_binary.inc updated
ln -sf ../../rbconfig.rb .ext/arm64-darwin24/rbconfig.rb
7b8cea726236e2e07ac7a2f888d27e6154b62092696753a4fea6e9e6610a0cca builtin_binary.inc
compiling builtin.c
linking static-library libruby.3.4-static.a
linking ruby
ld: warning: ignoring duplicate libraries: '-ldl', '-lgmp', '-lobjc', '-lpthread'
make[2]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby'
make[1]: Nothing to be done for 'note'.
make[1]: Leaving directory '/Users/hsbt/Documents/github.com/ruby/ruby'
Run options:
--seed=13266
"--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems"
--excludes-dir=./test/.excludes
--name=!/memory_leak/
-j8
# Running tests:
objc[34107]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called.26=test_rubyoptions 32727=test_m17n_comb
objc[34107]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
sudo: a password is requiredce 32721=test_syntax 32724=test_vm_dump 32726=test_rubyoptions 32727=test_ast
sudo: a password is required 32726=test_rubyoptions 32727=test_ast
sudo: a password is required 32726=test_rubyoptions 32727=test_ast
sudo: a password is required 32726=test_rubyoptions
sudo: a password is required 32726=test_rubyoptions
sudo: a password is required 32726=test_rubyoptions
sudo: a password is required 32726=test_rubyoptions
sudo: a password is required 32726=test_rubyoptions
sudo: a password is required 32726=test_rubyoptions
sudo: a password is required 32726=test_rubyoptions
Failed tests:
TestProcess#test_daemon_noclose: Test::Unit::AssertionFailedError: <"ok\n" + "/\n"> expected but was
TestProcess#test_maxgroups: Test::Unit::PendedError: not limited to NGROUPS_MAX
TestRubyOptions#test_crash_report_pipe: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (10 sec)
TestRubyOptions#test_crash_report_script_path: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (10 sec)
TestRubyOptions#test_crash_report_script: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (10 sec)
TestRubyOptions#test_crash_report_executable_path: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (10 sec)
TestRubyOptions#test_segv_test: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (10 sec)
TestRubyOptions#test_crash_report: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (10 sec)
TestRubyOptions#test_segv_setproctitle: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (10 sec)
TestRubyOptions#test_segv_loaded_features: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (10 sec)
TestVMDump#test_darwin_invalid_call: Test::Unit::AssertionFailedError: pid 33238 killed by SIGABRT (signal 6)
TestVMDump#test_darwin_segv_in_syscall: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (60 sec)
TestVMDump#test_darwin_invalid_access: Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_in_out_err expired timeout (60 sec)
Retrying...
[ 71/227] TestProcess#test_daemon_nocloseobjc[36101]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called.
objc[36101]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
= 0.00 s
1) Failure:
TestProcess#test_daemon_noclose [/Users/hsbt/Documents/github.com/ruby/ruby/test/ruby/test_process.rb:1877]:
<"ok\n" + "/\n"> expected but was
<"">.
[160/227] TestRubyOptions#test_crash_report_pipesudo: a password is required
= 14.08 s
2) Timeout:
TestRubyOptions#test_crash_report_pipe
[171/227] TestRubyOptions#test_crash_report_script_pathsudo: a password is required
= 14.08 s
3) Timeout:
TestRubyOptions#test_crash_report_script_path
[175/227] TestRubyOptions#test_crash_report_scriptsudo: a password is required
= 14.08 s
4) Timeout:
TestRubyOptions#test_crash_report_script
[189/227] TestRubyOptions#test_crash_report_executable_pathsudo: a password is required
= 14.08 s
5) Timeout:
TestRubyOptions#test_crash_report_executable_path
[190/227] TestRubyOptions#test_segv_testsudo: a password is required
= 14.08 s
6) Timeout:
TestRubyOptions#test_segv_test
[200/227] TestRubyOptions#test_crash_reportsudo: a password is required
= 14.05 s
7) Timeout:
TestRubyOptions#test_crash_report
[201/227] TestRubyOptions#test_segv_setproctitlesudo: a password is required
= 14.06 s
8) Timeout:
TestRubyOptions#test_segv_setproctitle
[208/227] TestRubyOptions#test_segv_loaded_featuressudo: a password is required
= 14.05 s
9) Timeout:
TestRubyOptions#test_segv_loaded_features
[225/227] TestVMDump#test_darwin_invalid_call = 3.07 s
10) Failure:
TestVMDump#test_darwin_invalid_call [/Users/hsbt/Documents/github.com/ruby/ruby/test/ruby/test_vm_dump.rb:12]:
pid 37531 killed by SIGABRT (signal 6)
| -e:1: [BUG] Bus Error at 0x0000000000000001
| ruby 3.4.0dev (2024-07-12T00:15:12Z master 9acc0efdc1) +MN [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:0003 p:---- s:0011 e:000010 CFUNC :invalid_call
| c:0002 p:0005 s:0006 e:000005 EVAL -e:1 [FINISH]
| c:0001 p:0000 s:0003 E:0003c0 DUMMY [FINISH]
|
| -- Ruby level backtrace information ----------------------------------------
| -e:1:in '<main>'
| -e:1:in 'invalid_call'
|
| -- Threading information ---------------------------------------------------
| Total ractor count: 1
| Ruby thread count for this ractor: 1
|
| -- Machine register context ------------------------------------------------
| x0: 0x000000011c857d08 x1: 0x0000000000000001 x2: 0x0000000148008038
| x3: 0x000000011d263e0c x4: 0x0000000148008038 x5: 0x0000000148008030
| x6: 0x000060000077b230 x7: 0x0000000000000001 x18: 0x0000000000000000
| x19: 0x0000000157e05d20 x20: 0x000000011c857d08 x21: 0x0000000148107f90
| x22: 0x0000000000000001 x23: 0x0000000148008038 x24: 0x0000000148008030
| x25: 0x000000011d2578a8 x26: 0x0000000055550083 x27: 0x0000600000b51ef0
| x28: 0x0000000000000000 lr: 0x0000000102edcd7c fp: 0x000000016d17de90
| sp: 0x000000016d17ddd0
|
| -- C level backtrace information -------------------------------------------
| SEGV received in BUS handler
.
1. [2/2] Assertion for "stderr"
| Expected /^\[IMPORTANT\]/ to match "-e:1: [BUG] Bus Error at 0x0000000000000001\n" +
| "ruby 3.4.0dev (2024-07-12T00:15:12Z master 9acc0efdc1) +MN [arm64-darwin24]\n" +
| "\n" +
| "-- Crash Report log information --------------------------------------------\n" +
| " See Crash Report log file in one of the following locations:\n" +
| " * ~/Library/Logs/DiagnosticReports\n" +
| " * /Library/Logs/DiagnosticReports\n" +
| " for more details.\n" +
| "Don't forget to include the above Crash Report log file in bug reports.\n" +
| "\n" +
| "-- Control frame information -----------------------------------------------\n" +
| "c:0003 p:---- s:0011 e:000010 CFUNC :invalid_call\n" +
| "c:0002 p:0005 s:0006 e:000005 EVAL -e:1 [FINISH]\n" +
| "c:0001 p:0000 s:0003 E:0003c0 DUMMY [FINISH]\n" +
| "\n" +
| "-- Ruby level backtrace information ----------------------------------------\n" +
| "-e:1:in '<main>'\n" +
| "-e:1:in 'invalid_call'\n" +
| "\n" +
| "-- Threading information ---------------------------------------------------\n" +
| "Total ractor count: 1\n" +
| "Ruby thread count for this ractor: 1\n" +
| "\n" +
| "-- Machine register context ------------------------------------------------\n" +
| " x0: 0x000000011c857d08 x1: 0x0000000000000001 x2: 0x0000000148008038\n" +
| " x3: 0x000000011d263e0c x4: 0x0000000148008038 x5: 0x0000000148008030\n" +
| " x6: 0x000060000077b230 x7: 0x0000000000000001 x18: 0x0000000000000000\n" +
| " x19: 0x0000000157e05d20 x20: 0x000000011c857d08 x21: 0x0000000148107f90\n" +
| " x22: 0x0000000000000001 x23: 0x0000000148008038 x24: 0x0000000148008030\n" +
| " x25: 0x000000011d2578a8 x26: 0x0000000055550083 x27: 0x0000600000b51ef0\n" +
| " x28: 0x0000000000000000 lr: 0x0000000102edcd7c fp: 0x000000016d17de90\n" +
| " sp: 0x000000016d17ddd0\n" +
| "\n" +
| "-- C level backtrace information -------------------------------------------\n" +
| "SEGV received in BUS handler\n".
[226/227] TestVMDump#test_darwin_segv_in_syscallsudo: a password is required
= 64.06 s
11) Timeout:
TestVMDump#test_darwin_segv_in_syscall
[227/227] TestVMDump#test_darwin_invalid_accesssudo: a password is required
= 64.09 s
12) Timeout:
TestVMDump#test_darwin_invalid_access
Finished tests in 396.442182s, 26.2535 tests/s, 13614.8277 assertions/s.
10408 tests, 5397492 assertions, 2 failures, 10 errors, 87 skips
ruby -v: ruby 3.4.0dev (2024-07-12T00:15:12Z master 9acc0efdc1) +MN [arm64-darwin24]
make: *** [uncommon.mk:965: yes-test-all] Error 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment