Skip to content
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

System image compiled with 1.7 segfaults. #588

Closed
lassepe opened this issue Oct 8, 2021 · 2 comments
Closed

System image compiled with 1.7 segfaults. #588

lassepe opened this issue Oct 8, 2021 · 2 comments

Comments

@lassepe
Copy link

lassepe commented Oct 8, 2021

I have a script that I use to precompile my default system image. This system image used to work with PackageCompiler 1.6. With PackageCompiler 1.7, I can compile the system image but loading it gives a segfault.

This is on Julia 1.7.0-rc1.

You should be able to reproduce the issue by

  1. cloning the repo
  2. Running ./bin/install to install the packages listed in config/package_setup.jl (potentially set JULIA_PROJECT to something since otherwise this will install globally)
  3. Compiling the system image with ./bin/precompile (will be saved in build)
  4. Try to load the system image with julia --sysimage="./build/1.7.0-rc1-dev.sysimg.so"
@KristofferC
Copy link
Member

#586 should fix that. I'll make a new release.

@lassepe
Copy link
Author

lassepe commented Oct 10, 2021

I just tested: the issue is fixed with 1.7.1. Thank you for the swift update!

@lassepe lassepe closed this as completed Oct 10, 2021
zhubonan added a commit to zhubonan/PackageCompiler.jl that referenced this issue Oct 12, 2021
[Diff since v1.7.1](JuliaLang/PackageCompiler.jl@v1.7.1...v1.7.2)

**Closed issues:**
- System image compiled with 1.7 segfaults. (JuliaLang#588)
- ENAMETOOLONG regression with v1.7.1 (JuliaLang#592)

**Merged pull requests:**
- Fix a typo while gathering dependencies from Manifest.toml (JuliaLang#593) (@zhubonan)
- use a file to run the sysimage code in (JuliaLang#594) (@KristofferC)
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

No branches or pull requests

2 participants