Skip to content

tests: pull_test no longer hangs on macOS - #3740

Merged
ashhart merged 3 commits into
mainfrom
lead/pull-test-mac-hang
Nov 19, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/pull-test-mac-hang

Conversation

@ashhart

@ashhart ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

test-pull-host hung on macOS (0% CPU until its 20-minute deadline). A thread sample showed why: the test's debug allocator captured a stack trace on every free, including frees from the I/O worker threads during the client's connect by host name. Zig's Mach-O unwinder panicked inside its module lock and the panic handler took the same lock, so the worker deadlocked and the main thread waited behind it.

The fake Hub's workers now use their own thread-safe allocator, and the pull client under test runs on its own I/O instance and an allocator that checks leaks without capturing stack traces. Every assertion stays (86), and a planted leak is still caught.

Checked: zig build -Dcpu=apple_m1 --test-timeout 10m test-pull-host on Apple silicon: 34/34 tests pass in 14 s (it hung before). Linux results match main. Test-only: no engine change.

  • Synthena

@ashhart
ashhart force-pushed the lead/pull-test-mac-hang branch from 7cfd0d0 to c18ec5b Compare November 19, 2026 09:58
@ashhart
ashhart merged commit abb3665 into main Nov 19, 2026
2 of 11 checks passed
@ashhart
ashhart deleted the lead/pull-test-mac-hang branch November 19, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant