Skip to content

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

Closed

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.

Activity

  1. cvsvensson commented on May 11, 2026

    @cvsvensson
    ContributorAuthor

    Closed by #150.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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