Hello,
I’m new to Julia so I don’t know if seg faults are a classic thing but anyway, I have one and I don’t know why.
I installed Julia using Juliaup
I’m on linux, so I just ran the command
curl -fsSL https://install.julialang.org | sh
While trying to understand somethings, I wanted to run the following code, which is a simple profiling code :
using Profile
function myfunc()
A = rand(200, 200, 400)
max_val = maximum(A)
return max_val
end
println("function def ok")
# First run to compile first
myfunc()
println("first run ok")
Profile.clear()
println("Profile clear ok")
@profile for i in 1:5
myfunc()
end
println("profiling ok")
Profile.print()
When I tried to execute the code, by doing “julia code.jl” I got a seg fault.
Here’s the exact output :
function def ok
first run ok
Profile clear ok
Segmentation fault (core dumped)
As you can see, the execution reached the point where the profiling starts.
So I wanted to try another method for profiling and found a package called BenchmarkTools. When installing the package I also got a seg fault :
julia> import Pkg; Pkg.add("BenchmarkTools")
Installing known registries into `~/.julia`
Segmentation fault (core dumped)
Even simple commands such as “pkg> st --manifest” give a seg fault :
(@v1.12) pkg> st --manifest
Installing known registries into `~/.julia`
Segmentation fault (core dumped)
I’m using Julia version 1.12.1 (2025-10-17), installed using Juliaup
I’m on Ubuntu 24.04.2 LTS
Please tell me if you need more info, and thanks in advance for any help.