Skip to content

Error in SSA conversion (crashes on several Julia versions including 1.9 and master) #45494

Closed
@GHTaarn

Description

@GHTaarn

The following relatively simple script dumps core on Linux:

#!/usr/bin/julia

struct Aa
  train!::Function
end

function createa()
  x::Vector{T} where T<:Real = fill(NaN,0)

  train = () -> begin
    a = zeros(1, 100)

    x = ones(size(a,2)-1)
    a * vcat(x, 1)
    return x
  end

  Aa(train)
end

a = createa()
a.train!()

Linux: Versions 1.7.2 and 1.7.3 on x86_64 and version 1.7.0 on aarch64 exhibit the problem.

Windows 10: Version 1.6.2 on x86_64 crashes the REPL.

Linux: Version 1.4.2 on x86_64 does not have the problem.

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorcompiler:loweringSyntax lowering (compiler front end, 2nd stage)regressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions