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

Segfault with PackageCompiler and Unitful on Julia v1.5 (regression) #38719

Closed
oschulz opened this issue Dec 5, 2020 · 6 comments
Closed

Segfault with PackageCompiler and Unitful on Julia v1.5 (regression) #38719

oschulz opened this issue Dec 5, 2020 · 6 comments

Comments

@oschulz
Copy link
Contributor

oschulz commented Dec 5, 2020

Using PackageCompiler with Unitful now crashes on Julia v1.5.3 but works on v1.3.1 and v1.4.2:

Using a "precompile_exec.jl"

using Unitful 

# PackageCompiler crashes here:
u"m"

and running

import PackageCompiler, Libdl

PackageCompiler.create_sysimage(
    [:Unitful],
    sysimage_path = "JuliaSysimage.so",
    precompile_execution_file = "precompile_exec.jl",
    cpu_target=PackageCompiler.default_app_cpu_target()
)

results in

signal (11): Segmentation fault
in expression starting at /[...]/precompile_exec.jl:4
jl_subtype_env at /buildworker/worker/package_linux64/build/src/subtype.c:1850
jl_isa at /buildworker/worker/package_linux64/build/src/subtype.c:2115
jl_static_show_x_ at /buildworker/worker/package_linux64/build/src/rtutils.c:1005
jl_static_show_x_ at /buildworker/worker/package_linux64/build/src/rtutils.c:1074
jl_static_show_x_ at /buildworker/worker/package_linux64/build/src/rtutils.c:1074
jl_static_show_next_ at /buildworker/worker/package_linux64/build/src/rtutils.c:1154
jl_static_show_next_ at /buildworker/worker/package_linux64/build/src/rtutils.c:751 [inlined]
jl_static_show_x at /buildworker/worker/package_linux64/build/src/rtutils.c:1099 [inlined]

on Julia v1.5 (Linux x64_64). On Julia v1.3.1 and v1.4.2, this runs fine and produces a functional system image.

Tested using PackageCompiler v1.2.3 and Unitful v1.5.0 (no other packages in environment).

System info:

julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
@KristofferC
Copy link
Member

#38049 broke it.

Fixed by #38399.

Was a mistake to backport it -.-

@oschulz
Copy link
Contributor Author

oschulz commented Dec 5, 2020

Thanks @KristofferC ! Do you know if there will be a v1.5.4 before v1.6?

@oschulz
Copy link
Contributor Author

oschulz commented Dec 5, 2020

Oh, and should I close this, then?

@KristofferC
Copy link
Member

Thanks @KristofferC ! Do you know if there will be a v1.5.4 before v1.6?

I am not sure. I think @NHDaly said the might push for a 1.5.4 release, but again, not sure.

@oschulz
Copy link
Contributor Author

oschulz commented Dec 5, 2020

Thanks - I'll close this for now, then.

@oschulz oschulz closed this as completed Dec 5, 2020
@NHDaly
Copy link
Member

NHDaly commented Dec 6, 2020

Thanks @KristofferC ! Do you know if there will be a v1.5.4 before v1.6?

I am not sure. I think @NHDaly said the might push for a 1.5.4 release, but again, not sure.

Lemme know if I/we can help with that in any way~

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

3 participants