# Random Segmentation Fault on GitHub tests

**URL:** <https://discourse.julialang.org/t/random-segmentation-fault-on-github-tests/88172>\
**Category:** General Usage\
**Tags:** differentialequation\
**Created:** [October 3, 2022, 5:50pm UTC](https://discourse.julialang.org/t/random-segmentation-fault-on-github-tests/88172 "2022-10-03T17:50:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![markowkes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/markowkes/32/43198_2.png) [@markowkes](https://discourse.julialang.org/u/markowkes)\
**Post date:** [October 3, 2022, 5:50pm UTC](https://discourse.julialang.org/t/random-segmentation-fault-on-github-tests/88172/1 "2022-10-03T17:50:26Z")

</div>

A package I have developed randomly fails to pass github tests due to a segmentation fault. For example, this test failed: [https://github.com/markowkes/Biofilm.jl/actions/runs/3175253204/jobs/5173336213](https://github.com/markowkes/Biofilm.jl/actions/runs/3175253204/jobs/5173336213).

I have seen a failed job has been on every OS (Windows or Mac) and Julia version (1.7-nightly) that I’m testing. Rerunning the test without any changes to the code usually works without the error. I have never seen this error on my PC.

The code solves ~100 differential equations using DifferentialEquations.jl.

Any ideas on what is causing the segmentation faults?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [October 4, 2022, 9:00am UTC](https://discourse.julialang.org/t/random-segmentation-fault-on-github-tests/88172/2 "2022-10-04T09:00:39Z")

</div>

Not an answer to the “why” question, but if this happens on x86\_64 Linux you can try capturing the segfault in rr with [GitHub - JuliaLang/BugReporting.jl: Streamlines bug reporting for julia](https://github.com/JuliaLang/BugReporting.jl)

---

<div class="post-metadata">

**Author:** ![markowkes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/markowkes/32/43198_2.png) [@markowkes](https://discourse.julialang.org/u/markowkes)\
**Post date:** [October 4, 2022, 5:18pm UTC](https://discourse.julialang.org/t/random-segmentation-fault-on-github-tests/88172/3 "2022-10-04T17:18:33Z")

</div>

Thanks, @giordano. I haven’t been able to get rr to work with my GitHub tests. I’m getting an error that `ERROR: LoadError: UndefVarError: rr not defined`. Is there a way to load rr in a GitHub workflow?

But, I did find that my initial problem is this issue: [Julia 1.8 `CVODE_BDF` causes segfaults · Issue #367 · SciML/Sundials.jl · GitHub](https://github.com/SciML/Sundials.jl/issues/367)

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [October 4, 2022, 5:25pm UTC](https://discourse.julialang.org/t/random-segmentation-fault-on-github-tests/88172/4 "2022-10-04T17:25:18Z")

</div>

> [@markowkes](#):
>
> Thanks, @giordano. I haven’t been able to get rr to work with my GitHub tests. I’m getting an error that `ERROR: LoadError: UndefVarError: rr not defined`. Is there a way to load rr in a GitHub workflow?

Did you follow the instructions at [GitHub - JuliaLang/BugReporting.jl: Streamlines bug reporting for julia](https://github.com/JuliaLang/BugReporting.jl)?

---

<div class="post-metadata">

**Author:** ![markowkes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/markowkes/32/43198_2.png) [@markowkes](https://discourse.julialang.org/u/markowkes)\
**Post date:** [October 5, 2022, 12:54pm UTC](https://discourse.julialang.org/t/random-segmentation-fault-on-github-tests/88172/5 "2022-10-05T12:54:19Z")

</div>

I missed that this needed to be run on Linux.
