# Segmentation fault in dot function

**URL:** <https://discourse.julialang.org/t/segmentation-fault-in-dot-function/47308>\
**Category:** General Usage\
**Tags:** question\
**Created:** [September 26, 2020, 11:39am UTC](https://discourse.julialang.org/t/segmentation-fault-in-dot-function/47308 "2020-09-26T11:39:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)\
**Post date:** [September 26, 2020, 12:05pm UTC](https://discourse.julialang.org/t/segmentation-fault-in-dot-function/47308/2 "2020-09-26T12:05:22Z")

</div>

Something weird is happening with `dot`, simpler examples:

```julia
julia> using LinearAlgebra

julia> dot(ones(10), view(ones(10), 1:10))
10.0

julia> dot(ones(10), view(ones(10), 10:-1:1))
1.0

julia> [dot(ones(10), view(ones(10), 10:-1:1)) for _ in 1:5, _ in 1:10]
5×10 Array{Float64,2}:
 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
 1.0 1.0 1.0 1.0 1.0 1.0 1.16189e165 1.0 1.0 1.0
 1.0 1.0 1.0 1.0 1.0 1.0 1.0 2.52324e180 1.0 1.0
 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
 1.0 1.0 1.0 1.0 2.52324e180 1.0 1.0 1.0 1.0 1.0

julia> view(ones(10), 10:-1:1) isa StridedArray
true

```

---

_[View the full topic](https://discourse.julialang.org/t/segmentation-fault-in-dot-function/47308)._
