# Julia segmentation core dump error

**URL:** <https://discourse.julialang.org/t/julia-segmentation-core-dump-error/125599>\
**Category:** General Usage\
**Tags:** linux, environment-variable\
**Created:** [February 6, 2025, 6:29am UTC](https://discourse.julialang.org/t/julia-segmentation-core-dump-error/125599 "2025-02-06T06:29:47Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [February 12, 2025, 12:25pm UTC](https://discourse.julialang.org/t/julia-segmentation-core-dump-error/125599/22 "2025-02-12T12:25:11Z")

</div>

It is now not clear to me what works and what doesn’t work for you. Does the selected solution still works for you?

> [@nsajko](#):
>
> ```julia-auto
> unset LD_LIBRARY_PATH
> unset LD_PRELOAD
> julia
> 
> ```

---

<div class="post-metadata">

**Author:** ![Sachin\_thorat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sachin_thorat/32/215094_2.png) [@Sachin\_thorat](https://discourse.julialang.org/u/Sachin_thorat)\
**Post date:** [February 12, 2025, 12:38pm UTC](https://discourse.julialang.org/t/julia-segmentation-core-dump-error/125599/23 "2025-02-12T12:38:51Z")

</div>

it worked until I tried installing IJulia package which has dependencies on VoronoiFVM and PDELab and they are not getting installed. The error shown is mentioned in previous comment. Also, it is required to unset the variables every time i wish to enter the julia env.

```julia
sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin$ ./julia 
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.11.3 (2025-01-21)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.11) pkg> Segmentation fault (core dumped)
sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin$ unset LD_LIBRARY_PATH 
sachin@sachin-Lenovo-IdeaPad-S340-14IIL:~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/bin$ ./julia 
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.11.3 (2025-01-21)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.11) pkg> add "IJulia"
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.11/Project.toml`
  No Changes to `~/.julia/environments/v1.11/Manifest.toml`
Precompiling project...
  ✗ VoronoiFVM
  ✗ PDELib
  0 dependencies successfully precompiled in 12 seconds. 280 already precompiled.
  2 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> err
PkgPrecompileError: The following 2 direct dependencies failed to precompile:

PDELib 

Failed to precompile PDELib [89250b5f-5002-42e4-96e5-388c85c70594] to "/home/sachin/.julia/compiled/v1.11/PDELib/jl_noEadR".
ERROR: LoadError: UndefVarError: `umf_ctrl` not defined in `SparseArrays.UMFPACK`
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:42
 [2] top-level scope
   @ ~/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
 [3] include(mod::Module, _path::String)
   @ Base ./Base.jl:557
 [4] include(x::String)
   @ VoronoiFVM ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:6
 [5] top-level scope
   @ ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:35
 [6] include
   @ ./Base.jl:557 [inlined]
 [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
   @ Base ./loading.jl:2881
 [8] top-level scope
   @ stdin:6
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile VoronoiFVM [82b139dc-5afc-11e9-35da-9b9bdfd336f3] to "/home/sachin/.julia/compiled/v1.11/VoronoiFVM/jl_DfmNuD".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
    @ Base ./loading.jl:3174
  [3] (::Base.var"#1110#1111"{Base.PkgId})()
    @ Base ./loading.jl:2579
  [4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
  [5] #mkpidlock#6
    @ ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
  [7] #invokelatest#2
    @ ./essentials.jl:1057 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1052 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3698
 [10] maybe_cachefile_lock
    @ ./loading.jl:3695 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2565
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [13] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [14] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [16] macro expansion
    @ ./loading.jl:2314 [inlined]
 [17] macro expansion
    @ ./lock.jl:273 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [19] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [20] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
 [22] include
    @ ./Base.jl:557 [inlined]
 [23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2881
 [24] top-level scope
    @ stdin:6
in expression starting at /home/sachin/.julia/packages/PDELib/fQsBc/src/PDELib.jl:1
in expression starting at stdin:6
VoronoiFVM 

Failed to precompile VoronoiFVM [82b139dc-5afc-11e9-35da-9b9bdfd336f3] to "/home/sachin/.julia/compiled/v1.11/VoronoiFVM/jl_PlcS2f".
ERROR: LoadError: UndefVarError: `umf_ctrl` not defined in `SparseArrays.UMFPACK`
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:42
 [2] top-level scope
   @ ~/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
 [3] include(mod::Module, _path::String)
   @ Base ./Base.jl:557
 [4] include(x::String)
   @ VoronoiFVM ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:6
 [5] top-level scope
   @ ~/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:35
 [6] include
   @ ./Base.jl:557 [inlined]
 [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2881
 [8] top-level scope
   @ stdin:6
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/vfvm_newtoncontrol.jl:2
in expression starting at /home/sachin/.julia/packages/VoronoiFVM/J3MrS/src/VoronoiFVM.jl:1
in expression starting at stdin:6

julia>

```

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [February 12, 2025, 12:46pm UTC](https://discourse.julialang.org/t/julia-segmentation-core-dump-error/125599/24 "2025-02-12T12:46:41Z")

</div>

This is a completely unrelated error, so please start a new thread to get help on this.

---

<div class="post-metadata">

**Author:** ![Sachin\_thorat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sachin_thorat/32/215094_2.png) [@Sachin\_thorat](https://discourse.julialang.org/u/Sachin_thorat)\
**Post date:** [February 12, 2025, 1:40pm UTC](https://discourse.julialang.org/t/julia-segmentation-core-dump-error/125599/25 "2025-02-12T13:40:09Z")

</div>

Done.

---

<div class="post-metadata">

**Author:** ![tjb282](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tjb282/32/220354_2.png) [@tjb282](https://discourse.julialang.org/u/tjb282)\
**Post date:** [January 13, 2026, 7:27pm UTC](https://discourse.julialang.org/t/julia-segmentation-core-dump-error/125599/26 "2026-01-13T19:27:32Z")

</div>

I have found that it was _not_ openfoam which messed up my `LD_LIBRARY_PATH` but rather prepending my entire `/lib/x86_64-linux-gnu` directory to `LD_LIBRARY_PATH`. It may be worth trying to make sure openfoam libraries etc (no pun intended) are at the end vs the beginning as most programs will stop after finding the library in earlier directories of the path variables.

[Previous page](https://discourse.julialang.org/t/julia-segmentation-core-dump-error/125599.md?page=1)
