Skip to content

Segfault from out of bounds access in @inbounds block #149

Description

@cvsvensson

Start Julia with --check-bounds=yes. A BoundsError occurs when running

partialschur(ComplexF64[1;;]) 
#ERROR: BoundsError: attempt to access 1×1 view(::Matrix{ComplexF64}, Base.OneTo(1), :) with eltype ComplexF64 index [1, 0]

which comes from the line

H[from, from-1] = zero(T)

This is inside an @inbounds block and can give segfaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions