Skip to content

Fix hanging system image creation if multiple threads are set #1042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PatrickHaecker
Copy link
Contributor

@PatrickHaecker PatrickHaecker commented Apr 22, 2025

Make sure, that the final system image is built single-threaded and override any values set by "-t", "--threads" in sysimage_build_argsor provided via JULIA_NUM_THREADS. This is needed until the underlying bug is fixed (see #963 and especially #990 containing agit bisect` to the commit introducing the problem)

Fixes #963 and #990

Supersedes #1041.

Thanks a lot to @KristofferC for the close hit with #1041 limiting down the search area enormously and also to everyone reporting or contributing to the discussions around #963 and #990, especially to @dpinol, @juanromerohb, @matthewgcooper and last, but certainly not least for a lot of patience with git bisect, to @paulmelis.

Make sure, that the final system image is built single-threaded and
override any values set by "-t", "--threads" in sysimage_build_args`
or provided via JULIA_NUM_THREADS.
This is needed until the underlying bug is fixed (see JuliaLang#963 and especially
JuliaLang#990 containing a `git bisect` to the commit introducing the problem)

Fixes JuliaLang#963 and JuliaLang#990
@PatrickHaecker
Copy link
Contributor Author

I have a wish:
As this issue already sparked some discussions on Discourse, can we have this merged and released quickly if there are no issues?
This would also help me, because I could skip creating an internal workaround, which I am lacking a bit the time for because I rather spent the time to fix the problem upstream.

Copy link

codecov bot commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.16%. Comparing base (a32fe6b) to head (0f2d3b7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1042   +/-   ##
=======================================
  Coverage   86.16%   86.16%           
=======================================
  Files           3        3           
  Lines         795      795           
=======================================
  Hits          685      685           
  Misses        110      110           

☔ 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.

@donovaly
Copy link

Thanks. I can confirm it fixes the problem, see also my post in Discourse

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.

PackageCompiler never ends on julia 1.11.0 with --threads=6
2 participants