# Tests passing on 1.6, segfault on 1.7

**URL:** <https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487>\
**Category:** Internals & Design\
**Created:** [April 14, 2022, 12:50pm UTC](https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487 "2022-04-14T12:50:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cscherrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cscherrer/32/7631_2.png) [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Post date:** [April 14, 2022, 12:50pm UTC](https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487/1 "2022-04-14T12:50:44Z")

</div>

I’m seeing some strange behavior [here](https://github.com/cscherrer/MeasureTheory.jl/actions/runs/2164159114). I have some tests that pass for Julia 1.6, and also pass locally for Julia 1.7.0, but cause a segfault on 1.7 in Github actions (I think that’s 1.7.2?).

Especially surprising is that the error is very low-level,

```julia
signal (11): Segmentation fault
in expression starting at /home/runner/work/MeasureTheory.jl/MeasureTheory.jl/test/runtests.jl:29
typekeyvalue_hash at /buildworker/worker/package_linux64/build/src/jltypes.c:1150 [inlined]
lookup_typevalue at /buildworker/worker/package_linux64/build/src/jltypes.c:720
jl_inst_arg_tuple_type at /buildworker/worker/package_linux64/build/src/jltypes.c:1587
arg_type_tuple at /buildworker/worker/package_linux64/build/src/gf.c:1845 [inlined]
jl_lookup_generic_ at /buildworker/worker/package_linux64/build/src/gf.c:2373 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2425
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1788 [inlined]
do_apply at /buildworker/worker/package_linux64/build/src/builtins.c:713
vcat at ./abstractarray.jl:1772

```

My code in the package is much higher-level than this. Could this be a Julia bug?

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [April 14, 2022, 12:55pm UTC](https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487/2 "2022-04-14T12:55:37Z")

</div>

I can’t reproduce this when testing `MeasureTheory#master` on my local Julia 1.7.2.  
However I get this instead (twice):

```julia
Error During Test at /home/guillaume/.julia/packages/MeasureBase/OhpR8/src/interface.jl:30
  Got exception outside of a @test
  TypeError: non-boolean (Static.True) used in boolean context

```

---

<div class="post-metadata">

**Author:** ![cscherrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cscherrer/32/7631_2.png) [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Post date:** [April 14, 2022, 1:03pm UTC](https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487/3 "2022-04-14T13:03:35Z")

</div>

Thanks @gdalle . That’s very weird, and I want to address it. Let’s come back to it after we figure out the segfault issue

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [April 14, 2022, 1:36pm UTC](https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487/4 "2022-04-14T13:36:17Z")

</div>

When this has happened to me before, I’ve pasted the output of the package resolution that appears in the log in a file, and run a diff tool comparing with the local resolution to try to spot any differences in package versions. If the difference is due to a difference in package versions, this works quite well.

---

<div class="post-metadata">

**Author:** ![cscherrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cscherrer/32/7631_2.png) [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Post date:** [April 14, 2022, 1:37pm UTC](https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487/5 "2022-04-14T13:37:01Z")

</div>

Good idea, I’ll try that

EDIT: Nope, identical aside from directory names

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [April 22, 2022, 1:08am UTC](https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487/6 "2022-04-22T01:08:49Z")

</div>

Try running with `--check-bounds=yes`, and if that still fails, running with rr (e.g. `--bug-report=help`)

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [April 22, 2022, 1:09am UTC](https://discourse.julialang.org/t/tests-passing-on-1-6-segfault-on-1-7/79487/7 "2022-04-22T01:09:35Z")

</div>

But 1.7 is also going to be soon replaced with 1.8, so you might want to check also if you can get the bug to still happen there
