# Segmentation fault when embedding Julia and using DifferentialEquations.jl

**URL:** <https://discourse.julialang.org/t/segmentation-fault-when-embedding-julia-and-using-differentialequations-jl/113274>\
**Category:** General Usage\
**Tags:** embedding\
**Created:** [April 20, 2024, 2:52pm UTC](https://discourse.julialang.org/t/segmentation-fault-when-embedding-julia-and-using-differentialequations-jl/113274 "2024-04-20T14:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dmitry-kabanov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dmitry-kabanov/32/52639_2.png) [@dmitry-kabanov](https://discourse.julialang.org/u/dmitry-kabanov)\
**Post date:** [April 25, 2024, 9:46am UTC](https://discourse.julialang.org/t/segmentation-fault-when-embedding-julia-and-using-differentialequations-jl/113274/2 "2024-04-25T09:46:33Z")

</div>

The problem is with `libgomp.so` version `gcc-13.2`. It uses global variable `environ` (which it did not do before) and there is a mismatch between how `libc` and Python set this variable.

The fix is to replace `libgomp.so` with older version (for example, from Conda-packaged Python) or upgrade to Julia 1.10.3+.

Read for details here: [Julia 1.10.2 crashes when embedded from Python due to `libgomp.so` compiled with GCC 13.2](https://discourse.julialang.org/t/julia-1-10-2-crashes-when-embedded-from-python-due-to-libgomp-so-compiled-with-gcc-13-2/113456)

---

_[View the full topic](https://discourse.julialang.org/t/segmentation-fault-when-embedding-julia-and-using-differentialequations-jl/113274)._
