<p dir="auto">I noticed this problem on my machine. I think it may be a bug as another person was able to reproduce it on their machine.</p>
<p dir="auto">The problem is that julia crashes when I use the <code class="notranslate">dot</code> function from <code class="notranslate">LinearAlgebra.jl</code> on arrays of complex numbers that are longer than 10^4. If the arrays of complex numbers have of length 10001 or more,  it crashes. If the arrays are real  <code class="notranslate">dot</code> works just fine. If the arrays are complex and are less than 10001 entries <code class="notranslate">dot</code> works fine.</p>
<p dir="auto">Another interesting point is that when I run the code for the dot function (found in the repository for LinearAlgebra) and use that function it works as it should in this case. So, when I run</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function dot end

function dot(x, y) # arbitrary iterables
    ix = iterate(x)
    iy = iterate(y)
    if ix === nothing
        if iy !== nothing
            throw(DimensionMismatch(&quot;x and y are of different lengths!&quot;))
        end
        return dot(zero(eltype(x)), zero(eltype(y)))
    end
    if iy === nothing
        throw(DimensionMismatch(&quot;x and y are of different lengths!&quot;))
    end
    (vx, xs) = ix
    (vy, ys) = iy
    s = dot(vx, vy)
    while true
        ix = iterate(x, xs)
        iy = iterate(y, ys)
        ix === nothing &amp;&amp; break
        iy === nothing &amp;&amp; break
        (vx, xs), (vy, ys) = ix, iy
        s += dot(vx, vy)
    end
    if !(iy === nothing &amp;&amp; ix === nothing)
        throw(DimensionMismatch(&quot;x and y are of different lengths!&quot;))
    end
    return s
end

dot(x::Number, y::Number) = conj(x) * y

function dot(x::AbstractArray, y::AbstractArray)
    lx = length(x)
    if lx != length(y)
        throw(DimensionMismatch(&quot;first array has length $(lx) which does not match the length of the second, $(length(y)).&quot;))
    end
    if lx == 0
        return dot(zero(eltype(x)), zero(eltype(y)))
    end
    s = zero(dot(first(x), first(y)))
    for (Ix, Iy) in zip(eachindex(x), eachindex(y))
        @inbounds s += dot(x[Ix], y[Iy])
    end
    s
end

foo(n) = randn(n) + im*randn(n)

dot(foo(10^7),foo(10^7))"><pre class="notranslate"><span class="pl-k">function</span> dot <span class="pl-k">end</span>

<span class="pl-k">function</span> <span class="pl-en">dot</span>(x, y) <span class="pl-c"><span class="pl-c">#</span> arbitrary iterables</span>
    ix <span class="pl-k">=</span> <span class="pl-c1">iterate</span>(x)
    iy <span class="pl-k">=</span> <span class="pl-c1">iterate</span>(y)
    <span class="pl-k">if</span> ix <span class="pl-k">===</span> <span class="pl-c1">nothing</span>
        <span class="pl-k">if</span> iy <span class="pl-k">!==</span> <span class="pl-c1">nothing</span>
            <span class="pl-c1">throw</span>(<span class="pl-c1">DimensionMismatch</span>(<span class="pl-s"><span class="pl-pds">"</span>x and y are of different lengths!<span class="pl-pds">"</span></span>))
        <span class="pl-k">end</span>
        <span class="pl-k">return</span> <span class="pl-c1">dot</span>(<span class="pl-c1">zero</span>(<span class="pl-c1">eltype</span>(x)), <span class="pl-c1">zero</span>(<span class="pl-c1">eltype</span>(y)))
    <span class="pl-k">end</span>
    <span class="pl-k">if</span> iy <span class="pl-k">===</span> <span class="pl-c1">nothing</span>
        <span class="pl-c1">throw</span>(<span class="pl-c1">DimensionMismatch</span>(<span class="pl-s"><span class="pl-pds">"</span>x and y are of different lengths!<span class="pl-pds">"</span></span>))
    <span class="pl-k">end</span>
    (vx, xs) <span class="pl-k">=</span> ix
    (vy, ys) <span class="pl-k">=</span> iy
    s <span class="pl-k">=</span> <span class="pl-c1">dot</span>(vx, vy)
    <span class="pl-k">while</span> <span class="pl-c1">true</span>
        ix <span class="pl-k">=</span> <span class="pl-c1">iterate</span>(x, xs)
        iy <span class="pl-k">=</span> <span class="pl-c1">iterate</span>(y, ys)
        ix <span class="pl-k">===</span> <span class="pl-c1">nothing</span> <span class="pl-k">&amp;&amp;</span> <span class="pl-k">break</span>
        iy <span class="pl-k">===</span> <span class="pl-c1">nothing</span> <span class="pl-k">&amp;&amp;</span> <span class="pl-k">break</span>
        (vx, xs), (vy, ys) <span class="pl-k">=</span> ix, iy
        s <span class="pl-k">+=</span> <span class="pl-c1">dot</span>(vx, vy)
    <span class="pl-k">end</span>
    <span class="pl-k">if</span> <span class="pl-k">!</span>(iy <span class="pl-k">===</span> <span class="pl-c1">nothing</span> <span class="pl-k">&amp;&amp;</span> ix <span class="pl-k">===</span> <span class="pl-c1">nothing</span>)
        <span class="pl-c1">throw</span>(<span class="pl-c1">DimensionMismatch</span>(<span class="pl-s"><span class="pl-pds">"</span>x and y are of different lengths!<span class="pl-pds">"</span></span>))
    <span class="pl-k">end</span>
    <span class="pl-k">return</span> s
<span class="pl-k">end</span>

<span class="pl-en">dot</span>(x<span class="pl-k">::</span><span class="pl-c1">Number</span>, y<span class="pl-k">::</span><span class="pl-c1">Number</span>) <span class="pl-k">=</span> <span class="pl-c1">conj</span>(x) <span class="pl-k">*</span> y

<span class="pl-k">function</span> <span class="pl-en">dot</span>(x<span class="pl-k">::</span><span class="pl-c1">AbstractArray</span>, y<span class="pl-k">::</span><span class="pl-c1">AbstractArray</span>)
    lx <span class="pl-k">=</span> <span class="pl-c1">length</span>(x)
    <span class="pl-k">if</span> lx <span class="pl-k">!=</span> <span class="pl-c1">length</span>(y)
        <span class="pl-c1">throw</span>(<span class="pl-c1">DimensionMismatch</span>(<span class="pl-s"><span class="pl-pds">"</span>first array has length <span class="pl-v">$(lx)</span> which does not match the length of the second, <span class="pl-v">$(<span class="pl-c1">length</span>(y))</span>.<span class="pl-pds">"</span></span>))
    <span class="pl-k">end</span>
    <span class="pl-k">if</span> lx <span class="pl-k">==</span> <span class="pl-c1">0</span>
        <span class="pl-k">return</span> <span class="pl-c1">dot</span>(<span class="pl-c1">zero</span>(<span class="pl-c1">eltype</span>(x)), <span class="pl-c1">zero</span>(<span class="pl-c1">eltype</span>(y)))
    <span class="pl-k">end</span>
    s <span class="pl-k">=</span> <span class="pl-c1">zero</span>(<span class="pl-c1">dot</span>(<span class="pl-c1">first</span>(x), <span class="pl-c1">first</span>(y)))
    <span class="pl-k">for</span> (Ix, Iy) <span class="pl-k">in</span> <span class="pl-c1">zip</span>(<span class="pl-c1">eachindex</span>(x), <span class="pl-c1">eachindex</span>(y))
        <span class="pl-c1">@inbounds</span> s <span class="pl-k">+=</span> <span class="pl-c1">dot</span>(x[Ix], y[Iy])
    <span class="pl-k">end</span>
    s
<span class="pl-k">end</span>

<span class="pl-en">foo</span>(n) <span class="pl-k">=</span> <span class="pl-c1">randn</span>(n) <span class="pl-k">+</span> im<span class="pl-k">*</span><span class="pl-c1">randn</span>(n)

<span class="pl-c1">dot</span>(<span class="pl-c1">foo</span>(<span class="pl-c1">10</span><span class="pl-k">^</span><span class="pl-c1">7</span>),<span class="pl-c1">foo</span>(<span class="pl-c1">10</span><span class="pl-k">^</span><span class="pl-c1">7</span>))</pre></div>
<p dir="auto">It works fine but if I run:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using LinearAlgebra: dot

foo(n) = randn(n) + im*randn(n)

dot(foo(10001),foo(10001))"><pre class="notranslate"><span class="pl-k">using</span> LinearAlgebra<span class="pl-k">:</span> dot

<span class="pl-en">foo</span>(n) <span class="pl-k">=</span> <span class="pl-c1">randn</span>(n) <span class="pl-k">+</span> im<span class="pl-k">*</span><span class="pl-c1">randn</span>(n)

<span class="pl-c1">dot</span>(<span class="pl-c1">foo</span>(<span class="pl-c1">10001</span>),<span class="pl-c1">foo</span>(<span class="pl-c1">10001</span>))</pre></div>
<p dir="auto">julia crashes.</p>
<p dir="auto">The error message I get before julia dies is here:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception:
Please submit a bug repor
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 -- OLATION at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --"><pre class="notranslate"><code class="notranslate">Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception:
Please submit a bug repor
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 -- OLATION at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --  at 0x1d407280 -- OLATION with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1d407280 --
</code></pre></div>
<p dir="auto">Here are my configurations</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo()
Julia Version 1.5.2
Commit 539f3ce943 (2020-09-23 23:17 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)"><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo()
Julia Version 1.5.2
Commit 539f3ce943 (2020-09-23 23:17 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
</code></pre></div>
<p dir="auto">I am happy to supply any other help information.<br>
Thank you.</p>
<p dir="auto">To reproduce</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x = zeros(ComplexF64, 10001)
x' * x"><pre class="notranslate">x <span class="pl-k">=</span> <span class="pl-c1">zeros</span>(ComplexF64, <span class="pl-c1">10001</span>)
x<span class="pl-k">'</span> <span class="pl-k">*</span> x</pre></div>
<p dir="auto">The error message is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION  with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1a3e7280 --  at 0x1a3e7280 --  OLATION  with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1a3e7280 --  OLATION  with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1a3e7280 -- unknown function (ip: 000000001A3E7280)
in expression starting at REPL[10]:1
in expression starting at REPL[10]:1
 )
  reproduce this fault, and any error messages that follow (in their entirety). Thanks."><pre class="notranslate"><code class="notranslate">Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION  with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1a3e7280 --  at 0x1a3e7280 --  OLATION  with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1a3e7280 --  OLATION  with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x1a3e7280 -- unknown function (ip: 000000001A3E7280)
in expression starting at REPL[10]:1
in expression starting at REPL[10]:1
 )
  reproduce this fault, and any error messages that follow (in their entirety). Thanks.
</code></pre></div>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo()
Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">versioninfo</span>()
Julia Version <span class="pl-c1">1.5</span>.<span class="pl-c1">0</span>
Commit <span class="pl-c1">96786e22</span>cc (<span class="pl-c1">2020</span><span class="pl-k">-</span><span class="pl-c1">08</span><span class="pl-k">-</span><span class="pl-c1">01</span> <span class="pl-c1">23</span><span class="pl-k">:</span><span class="pl-c1">44</span> UTC)
Platform Info<span class="pl-k">:</span>
  OS<span class="pl-k">:</span> Windows (x86_64<span class="pl-k">-</span>w64<span class="pl-k">-</span>mingw32)
  CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i5<span class="pl-k">-</span><span class="pl-c1">8265</span>U CPU @ <span class="pl-c1">1.60</span>GHz
  WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span>
  LIBM<span class="pl-k">:</span> libopenlibm
  LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">9.0</span>.<span class="pl-c1">1</span> (ORCJIT, skylake)</pre></div>
<p dir="auto">Does not happen on julia 1.4.2.</p>