-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 calling rand on master #34183
Comments
Can you share how you compiled the custom sysimage? And have you tried recompiling it after you compiled julia? |
The following line from the stack trace has been changed recently in #27936, but I can't see what would be the problem:
|
The following is the script I used to compile the sysimage. The last two lines are what I execute in the terminal. The sysimage was recompiled after compiling julia Base.init_depot_path()
Base.init_load_path()
Base.reinit_stdio()
using Random, LinearAlgebra, Statistics
Random.__init__()
import GR
GR.__init__()
LinearAlgebra.__init__() # for inv required by Colors required by Plots
using Plots
plot(randn(3))
plot(randn(3),randn(3))
heatmap(randn(5,5))
empty!(LOAD_PATH)
empty!(DEPOT_PATH)
# julia --output-o sys.o -J"/home/fredrikb/julia/usr/lib/julia/sys.so" custom_sysimage.jl
# gcc -shared -o sys.so -Wl,--whole-archive sys.o -Wl,--no-whole-archive -L"/home/fredrikb/julia/usr/lib" -ljulia |
Try the method described here https://kristofferc.github.io/PackageCompilerX.jl/dev/devdocs/sysimages_part_1/#Recording-precompile-statements-1. One of the |
I haven't seen this issue arise since, so I think it's okay to close |
I just compiled latest master and got the following segmentation fault. When I got the segfault, I started Julia with a custom build sysimage. If I start julia without this image, the call to
rand
works fine. The sysimage compiled without any errors.It's repeatable on my machine with my custom sysimage.
The text was updated successfully, but these errors were encountered: