# \#segfault

**URL:** https://discourse.julialang.org/tag/segfault/749.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Seg fault when using julia (pakcage installation, profiling)](https://discourse.julialang.org/t/seg-fault-when-using-julia-pakcage-installation-profiling/133991)

<div class="topic-metadata">

**Author:** [@Ahmed\_ALKAF](https://discourse.julialang.org/u/Ahmed_ALKAF)\
**Replies:** 15\
**Last updated:** [November 21, 2025, 2:56pm UTC](https://discourse.julialang.org/t/seg-fault-when-using-julia-pakcage-installation-profiling/133991 "2025-11-21T14:56:15Z")

</div>

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://instal…

---

## [Intermittent Segfault](https://discourse.julialang.org/t/intermittent-segfault/131694)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 2\
**Last updated:** [August 21, 2025, 12:57am UTC](https://discourse.julialang.org/t/intermittent-segfault/131694 "2025-08-21T00:57:42Z")

</div>

Hello, I have recently started experiencing an intermittent segfault when using Julia with the vscode extension. I’ve been developing with this setup for well over a year and never experienced this before. I don’t even …

---

## [Avoiding segfault on exit when using QML.jl](https://discourse.julialang.org/t/avoiding-segfault-on-exit-when-using-qml-jl/128737)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 11\
**Last updated:** [May 7, 2025, 11:02am UTC](https://discourse.julialang.org/t/avoiding-segfault-on-exit-when-using-qml-jl/128737 "2025-05-07T11:02:51Z")

</div>

My real code runs great, but for some reason gives a segfault when exiting the Julia REPL. Then I saw JuliaPropertyMaps should be a function in the docs . I modified the doc example to show my problem (I need “Hi” to be…

---

## [GC error / sefgault in a simple C wrapper](https://discourse.julialang.org/t/gc-error-sefgault-in-a-simple-c-wrapper/127032)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 5\
**Last updated:** [March 17, 2025, 1:27pm UTC](https://discourse.julialang.org/t/gc-error-sefgault-in-a-simple-c-wrapper/127032 "2025-03-17T13:27:39Z")

</div>

I am attempting to make a julia wrapper for a C library. The C library is already available as a jll. I was attempting to use Clang.jl to make the wrapper, but whatever I am doing seems to be causing segfaults on garbage…

---

## [PackageCompiler Segfault in Julia-1.11](https://discourse.julialang.org/t/packagecompiler-segfault-in-julia-1-11/123774)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 6\
**Last updated:** [December 13, 2024, 9:10am UTC](https://discourse.julialang.org/t/packagecompiler-segfault-in-julia-1-11/123774 "2024-12-13T09:10:02Z")

</div>

Hoping for some help because I’m not sure where to even start debugging this issue! I’m developing a scientific HPC code that I run using --check-bounds=no for performance, and often want to build a system image to save…

---

## [Segmentation fault when using ccall to call a BLAS-like extension function from Intel MKL](https://discourse.julialang.org/t/segmentation-fault-when-using-ccall-to-call-a-blas-like-extension-function-from-intel-mkl/123377)

<div class="topic-metadata">

**Author:** [@NatSpring](https://discourse.julialang.org/u/NatSpring)\
**Replies:** 7\
**Last updated:** [December 3, 2024, 9:27am UTC](https://discourse.julialang.org/t/segmentation-fault-when-using-ccall-to-call-a-blas-like-extension-function-from-intel-mkl/123377 "2024-12-03T09:27:02Z")

</div>

I have written many Julia wrapper-functions that call routines from various parts of the Intel oneAPI library via the library’s .so file with ccall. This typically works without issue for BLAS routines, LAPACK routines a…

---

## [Juliacall with SB3 for RL in WSL bings to segmetation fault problems](https://discourse.julialang.org/t/juliacall-with-sb3-for-rl-in-wsl-bings-to-segmetation-fault-problems/122989)

<div class="topic-metadata">

**Author:** [@Claudio](https://discourse.julialang.org/u/Claudio)\
**Replies:** 0\
**Last updated:** [November 23, 2024, 10:41am UTC](https://discourse.julialang.org/t/juliacall-with-sb3-for-rl-in-wsl-bings-to-segmetation-fault-problems/122989 "2024-11-23T10:41:49Z")

</div>

I am trying to train a RL agent using SB3, torch, and Gymnasium. I use a linux environment through wsl2 (Ubuntu-22.04), and VisualStudio Code. To speed up the step phase in my environment, I invoke Julia passing through …

---

## [Curl\_multi\_assign and segmentation fault when installing package](https://discourse.julialang.org/t/curl-multi-assign-and-segmentation-fault-when-installing-package/120901)

<div class="topic-metadata">

**Author:** [@arnerob](https://discourse.julialang.org/u/arnerob)\
**Replies:** 5\
**Last updated:** [October 4, 2024, 5:31pm UTC](https://discourse.julialang.org/t/curl-multi-assign-and-segmentation-fault-when-installing-package/120901 "2024-10-04T17:31:04Z")

</div>

I recently switched to Apple M2 and I tried to install FFTW.jl. I did the following in a fresh REPL: julia\> using Pkg julia\> Pkg.add("FFTW") Resolving package versions... Updating \`~/.julia/environments/v1.10/Pr…

---

## [Segmentation fault using multithreaded julia on new server](https://discourse.julialang.org/t/segmentation-fault-using-multithreaded-julia-on-new-server/114557)

<div class="topic-metadata">

**Author:** [@Loic\_Herviou](https://discourse.julialang.org/u/Loic_Herviou)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 11:46am UTC](https://discourse.julialang.org/t/segmentation-fault-using-multithreaded-julia-on-new-server/114557 "2024-05-22T11:46:05Z")

</div>

On our new server, we get random segmentation fault errors when using julia with multithreading. There is no crash for the same scripts with a single thread, or multithreaded on other machines. It seems to be independe…

---

## [Segmentation fault with SharedArrays when --threads is set?](https://discourse.julialang.org/t/segmentation-fault-with-sharedarrays-when-threads-is-set/113424)

<div class="topic-metadata">

**Author:** [@lmtzx9h4qqnt](https://discourse.julialang.org/u/lmtzx9h4qqnt)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 7:30pm UTC](https://discourse.julialang.org/t/segmentation-fault-with-sharedarrays-when-threads-is-set/113424 "2024-04-25T19:30:20Z")

</div>

I’m getting strange segmentation faults when using SharedArrays and passing --threads to Julia, even when I’m not actually using any of those threads! Here is a minimal example: using Distributed function main() sa = …

---

## [OpenMPI+Threading: Segfault in compilation?](https://discourse.julialang.org/t/openmpi-threading-segfault-in-compilation/105881)

<div class="topic-metadata">

**Author:** [@mmesiti](https://discourse.julialang.org/u/mmesiti)\
**Replies:** 7\
**Last updated:** [November 10, 2023, 1:23pm UTC](https://discourse.julialang.org/t/openmpi-threading-segfault-in-compilation/105881 "2023-11-10T13:23:13Z")

</div>

I have a package that uses multithreading (with Threads.@threads) and I am trying to parallelize it further using MPI.jl, and it segfaults when I run it on our HPC cluster (using the installation of OpenMPI 4.1.5 provide…

---

## [Saving and loading architectures with multiple blocks](https://discourse.julialang.org/t/saving-and-loading-architectures-with-multiple-blocks/104030)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 3\
**Last updated:** [September 20, 2023, 3:49pm UTC](https://discourse.julialang.org/t/saving-and-loading-architectures-with-multiple-blocks/104030 "2023-09-20T15:49:25Z")

</div>

Hi! I’m working on a project where another person has been trying out different architectures in Flux.jl for a given problem, and the one that turned out to be the best one is giving us problems when saving and loading …

---

## [Segfault calling C function, any advice?](https://discourse.julialang.org/t/segfault-calling-c-function-any-advice/94730)

<div class="topic-metadata">

**Author:** [@CodeGodz](https://discourse.julialang.org/u/CodeGodz)\
**Replies:** 7\
**Last updated:** [February 16, 2023, 11:34pm UTC](https://discourse.julialang.org/t/segfault-calling-c-function-any-advice/94730 "2023-02-16T23:34:06Z")

</div>

Hey all, I’m trying to call the libsais\_int function from libsais, with signature: int32\_t libsais\_int(int32\_t \* T, int32\_t \* SA, int32\_t n, int32\_t k, int32\_t fs); I wrote the following (and also tried using pointer(…

---

## [Segfault in DataStructures.jl](https://discourse.julialang.org/t/segfault-in-datastructures-jl/92913)

<div class="topic-metadata">

**Author:** [@Joseph\_Bradley](https://discourse.julialang.org/u/Joseph_Bradley)\
**Replies:** 0\
**Last updated:** [January 13, 2023, 9:44am UTC](https://discourse.julialang.org/t/segfault-in-datastructures-jl/92913 "2023-01-13T09:44:01Z")

</div>

I am getting the following segfault in the midst of some other code: signal (11): Segmentation fault: 11 in expression starting at REPL\[67\]:1 gc\_mark\_loop at /Applications/Julia-1.8.app/Contents/Resources/julia/lib/juli…

---

## [Debugging a segfault with lldb](https://discourse.julialang.org/t/debugging-a-segfault-with-lldb/89103)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [October 22, 2022, 5:05pm UTC](https://discourse.julialang.org/t/debugging-a-segfault-with-lldb/89103 "2022-10-22T17:05:05Z")

</div>

I’m trying to find out why RadeonProRender.jl segfaults on Mac. I put the code at the bottom into a script rpr.jl and then ran this: lldb julia -- rpr.jl (lldb) target create "julia" Current executable set to 'julia' (…

---

## [Segmentation fault when applying PCA to a big dataset on an HPC](https://discourse.julialang.org/t/segmentation-fault-when-applying-pca-to-a-big-dataset-on-an-hpc/76900)

<div class="topic-metadata">

**Author:** [@Ivan](https://discourse.julialang.org/u/Ivan)\
**Replies:** 2\
**Last updated:** [February 22, 2022, 7:15pm UTC](https://discourse.julialang.org/t/segmentation-fault-when-applying-pca-to-a-big-dataset-on-an-hpc/76900 "2022-02-22T19:15:11Z")

</div>

I understand the following may be due to the fact that I am using an HPC remote service. If that’s the case, I would appreciate comments on where to ask this question best. I have a big array (2765 x 12212224), and I wa…

---

## [Segfault that I cannot explain, possibly related to Zygote](https://discourse.julialang.org/t/segfault-that-i-cannot-explain-possibly-related-to-zygote/74509)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 0\
**Last updated:** [January 12, 2022, 8:20pm UTC](https://discourse.julialang.org/t/segfault-that-i-cannot-explain-possibly-related-to-zygote/74509 "2022-01-12T20:20:18Z")

</div>

Naively maybe, I assumed that segfaults will only occur if I access memory I don’t own. Therefore, in Julia, with bounds checking turned on, it simply shouldn’t occur? I’ve now run into a case where the opposite happens…

---

## [Massive crash](https://discourse.julialang.org/t/massive-crash/72552)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 6\
**Last updated:** [December 5, 2021, 9:23pm UTC](https://discourse.julialang.org/t/massive-crash/72552 "2021-12-05T21:23:29Z")

</div>

This is very hard to figure out. I’ll try the debugger to find the exact line that crashes. Most of the code works, but there is new code that is run based on one input parameter, so I at least know what code file causes…

---

## [Segfaults on Julia 1.7 Apple M1](https://discourse.julialang.org/t/segfaults-on-julia-1-7-apple-m1/72566)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 2\
**Last updated:** [December 4, 2021, 10:43am UTC](https://discourse.julialang.org/t/segfaults-on-julia-1-7-apple-m1/72566 "2021-12-04T10:43:22Z")

</div>

Julia 1.7 is extremely unstable for me, to the point of being unusable. Getting segfaults in some apps about 50% of the times. It’s been like that since pre-release days but I hoped the issue would go away in the final r…

---

## [Deserialization error (StackOverflow) crashes Julia and can not be caught](https://discourse.julialang.org/t/deserialization-error-stackoverflow-crashes-julia-and-can-not-be-caught/65748)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 0\
**Last updated:** [August 3, 2021, 1:26pm UTC](https://discourse.julialang.org/t/deserialization-error-stackoverflow-crashes-julia-and-can-not-be-caught/65748 "2021-08-03T13:26:28Z")

</div>

I have the following function which retrieves the content of a cache stored as a serialized Julia object: """ fromcache(key::Any, expiration::Int; dir::String = "") :: Union{Nothing,Any} Retrieves from cache the ob…
