Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A TypeError crashes Julia #56248

Closed
olivierverdier opened this issue Oct 19, 2024 · 6 comments · Fixed by #56264
Closed

A TypeError crashes Julia #56248

olivierverdier opened this issue Oct 19, 2024 · 6 comments · Fixed by #56264
Labels
bug Indicates an unexpected problem or unintended behavior compiler:inference Type inference

Comments

@olivierverdier
Copy link

The following code crashes Julia

using Test
import Pkg
Pkg.add("Manifolds")
using Manifolds



@testset "Julia crash" for M in
    [
        Sphere(2),
    ]
    @test_throws TypeError [] isa Vector{<:Sphere(3)}
end

See a discussion in this issue and a reproduction of the problem in this repo.

@nsajko

This comment has been minimized.

@nsajko nsajko added bug Indicates an unexpected problem or unintended behavior compiler:inference Type inference labels Oct 19, 2024
@nsajko

This comment has been minimized.

@nsajko

This comment has been minimized.

@nsajko

This comment has been minimized.

@nsajko
Copy link
Contributor

nsajko commented Oct 19, 2024

Minimal reproducer:

f() = TypeVar(:x, 3)
f()

@nsajko
Copy link
Contributor

nsajko commented Oct 19, 2024

Crashes Julia all the way back to v0.7.0, v0.6.4 doesn't crash after the TypeError.

nsajko added a commit to nsajko/julia that referenced this issue Oct 19, 2024
olivierverdier added a commit to olivierverdier/JuliaCrash.jl that referenced this issue Oct 20, 2024
KristofferC pushed a commit that referenced this issue Oct 30, 2024
KristofferC pushed a commit that referenced this issue Oct 30, 2024
KristofferC pushed a commit that referenced this issue Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior compiler:inference Type inference
Projects
None yet
2 participants