Skip to content

Conversation

@IanButterworth
Copy link
Member

@IanButterworth IanButterworth commented Nov 16, 2025

Adds a SIGUSR1/SIGINFO profile before timeout cancellation by intercepting the cancellation signals.

There may be a better way to implement this.. ideally gh would provide a way to natively do this before sending the cancellation signal, but I didn't find anything.

@codecov
Copy link

codecov bot commented Nov 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (013f11f) to head (198ed29).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #155   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            2         2           
=========================================
  Hits             2         2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IanButterworth
Copy link
Member Author

macOS is hanging on startup on julia nightly. This is what we see with this PR (with buildpkg disabled so it doesn't hang there)

======================================================================================
Information request received. A stacktrace will print followed by a 1.0 second profile.
--trace-compile is enabled during profile collection.
======================================================================================
signal (29): Information request: 29
__psynch_cvwait at /usr/lib/system/libsystem_kernel.dylib (unknown line)
unknown function (ip: 0x0) at (unknown file)
__psynch_mutexwait at /usr/lib/system/libsystem_kernel.dylib (unknown line)
unknown function (ip: 0x0) at (unknown file)
==============================================================
Profile collected. A report will print at the next yield point.
Disabling --trace-compile
==============================================================
[2411] signal 15: Terminated: 15
in expression starting at none:0
__psynch_cvwait at /usr/lib/system/libsystem_kernel.dylib (unknown line)
unknown function (ip: 0x0) at (unknown file)
__psynch_mutexwait at /usr/lib/system/libsystem_kernel.dylib (unknown line)
unknown function (ip: 0x0) at (unknown file)
Allocations: 1 (Pool: 1; Big: 0); GC: 0
Error: The operation was canceled.

giordano added a commit to JuliaLang/julia that referenced this pull request Nov 22, 2025
…#60196)

Reverts #60105. Nightly builds of aarch64-darwin Julia
hang at startup on some systems, notably on GitHub Actions, making all
nightly jobs timeout (after 6 hours...), see
https://discourse.julialang.org/t/ci-testing-hangs-on-macos-nightly/133909
(I had previously reported this issue on Slack at
https://julialang.slack.com/archives/CPWJ5DGG1/p1763055610279379). See
also julia-actions/julia-runtest#155. The error
message when the process receives a SIGTERM signal is
```
in expression starting at none:0
__psynch_cvwait at /usr/lib/system/libsystem_kernel.dylib (unknown line)
unknown function (ip: 0x0) at (unknown file)
__psynch_mutexwait at /usr/lib/system/libsystem_kernel.dylib (unknown line)
unknown function (ip: 0x0) at (unknown file)
Allocations: 1 (Pool: 1; Big: 0); GC: 0
```
I can reliably reproduce it locally on a M1 box with MacOSX 12.6 21.6.0,
I can provide more information as needed.

I bisected the issue to #60105.
@IanButterworth IanButterworth marked this pull request as ready for review November 23, 2025 14:27
@IanButterworth IanButterworth requested a review from a team as a code owner November 23, 2025 14:27
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.

2 participants