<p dir="auto">My tests fail due to a segfault.</p>
<p dir="auto">I am not sure if I am doing 'something unsafe', but I am pretty sure the tests were almost identical on 0.7beta where things went fine.</p>
<p dir="auto"><a href="https://discourse.julialang.org/t/segmentation-fault-on-0-7/13065/2" rel="nofollow">https://discourse.julialang.org/t/segmentation-fault-on-0-7/13065/2</a></p>
<p dir="auto">any ideas?</p>
<p dir="auto">the error occurs on 0.7, 1.0 and 1.1 too<br>
<a href="https://travis-ci.org/kafisatz/DecisionTrees.jl/builds/415879916" rel="nofollow">https://travis-ci.org/kafisatz/DecisionTrees.jl/builds/415879916</a></p>
<p dir="auto">While updating Homebrew's Julia to 1.7.0 (cf. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1067611951" data-permission-text="Title is private" data-url="https://github.com/Homebrew/homebrew-core/issues/90194" data-hovercard-type="pull_request" data-hovercard-url="/Homebrew/homebrew-core/pull/90194/hovercard" href="https://github.com/Homebrew/homebrew-core/pull/90194">Homebrew/homebrew-core#90194</a>), I found that running <code class="notranslate">Base.runtests("core")</code> fails with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  Error in testset core:
  Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3519
    Expression: (Vararg{Int, N} where N &lt;: T) where T
      Expected: ErrorException
    No exception thrown
  Error in testset core:
  Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3520
    Expression: Vararg{Int, N} where N &lt;: Integer
      Expected: ErrorException
    No exception thrown
  Error in testset core:
  Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3521
    Expression: Vararg{Int, N} where N &gt;: Integer
      Expected: ErrorException
    No exception thrown
  ERROR: LoadError: Test run finished with errors
  in expression starting at /usr/local/Cellar/julia/1.7.0/share/julia/test/runtests.jl:93
  ERROR: A test has failed. Please submit a bug report (https://github.com/JuliaLang/julia/issues)
  including error messages above and the output of versioninfo():
  Julia Version 1.7.0
  Commit 3bf9d17731 (2021-11-30 12:12 UTC)
  Platform Info:
    OS: macOS (x86_64-apple-darwin21.1.0)
    CPU: Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-12.0.1 (ORCJIT, ivybridge)"><pre class="notranslate"><code class="notranslate">  Error in testset core:
  Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3519
    Expression: (Vararg{Int, N} where N &lt;: T) where T
      Expected: ErrorException
    No exception thrown
  Error in testset core:
  Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3520
    Expression: Vararg{Int, N} where N &lt;: Integer
      Expected: ErrorException
    No exception thrown
  Error in testset core:
  Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3521
    Expression: Vararg{Int, N} where N &gt;: Integer
      Expected: ErrorException
    No exception thrown
  ERROR: LoadError: Test run finished with errors
  in expression starting at /usr/local/Cellar/julia/1.7.0/share/julia/test/runtests.jl:93
  ERROR: A test has failed. Please submit a bug report (https://github.com/JuliaLang/julia/issues)
  including error messages above and the output of versioninfo():
  Julia Version 1.7.0
  Commit 3bf9d17731 (2021-11-30 12:12 UTC)
  Platform Info:
    OS: macOS (x86_64-apple-darwin21.1.0)
    CPU: Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-12.0.1 (ORCJIT, ivybridge)
</code></pre></div>
<p dir="auto">This reproduces on macOS 11 and 12. CI logs available here: <a href="https://github.com/Homebrew/homebrew-core/actions/runs/1522862535">https://github.com/Homebrew/homebrew-core/actions/runs/1522862535</a></p>
<p dir="auto">To make sure that this isn't something peculiar to our build, I downloaded the official binary and encountered the exact same failure. Here's <code class="notranslate">versioninfo()</code> from the machine I ran that on:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.5.0)
  CPU: Intel(R) Core(TM) i3-1000NG4 CPU @ 1.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, icelake-client)"><pre class="notranslate"><code class="notranslate">Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.5.0)
  CPU: Intel(R) Core(TM) i3-1000NG4 CPU @ 1.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, icelake-client)
</code></pre></div>
<p dir="auto">Is it just a matter of these tests being outdated?</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/JuliaLang/julia/blob/3bf9d1773144bc4943232dc2ffaac307a700853d/test/core.jl#L3519-L3521">julia/test/core.jl</a>
    </p>
    <p class="mb-0 color-fg-muted">
        Lines 3519 to 3521
      in
      <a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/3bf9d1773144bc4943232dc2ffaac307a700853d">3bf9d17</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L3519" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="3519"></td>
          <td id="LC3519" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">@test_throws</span> ErrorException Vararg{Int, N} <span class="pl-k">where</span> N<span class="pl-k">&lt;:</span><span class="pl-c1">T</span> <span class="pl-k">where</span> T </td>
        </tr>

        <tr class="border-0">
          <td id="L3520" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="3520"></td>
          <td id="LC3520" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">@test_throws</span> ErrorException Vararg{Int, N} <span class="pl-k">where</span> N<span class="pl-k">&lt;:</span><span class="pl-c1">Integer</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L3521" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="3521"></td>
          <td id="LC3521" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">@test_throws</span> ErrorException Vararg{Int, N} <span class="pl-k">where</span> N<span class="pl-k">&gt;:</span><span class="pl-c1">Integer</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">Those <a href="https://github.com/JuliaLang/julia/blob/f53de735d8524304e0e4eb973d82432189135c83/test/core.jl#L3521-L3523">tests</a> are still there on master, so I am wondering why this doesn't trip in CI here.</p>