Skip to content

Deadlock in checker caused by cyclic type dependency #5960

@FrancisTheCat

Description

@FrancisTheCat

Context

Operating System & Odin Version:

Odin:    dev-2025-11:5e3648b83
OS:      Arch Linux, Linux 6.17.8-arch1-1
CPU:     AMD Ryzen 5 7640U w/ Radeon 760M Graphics
RAM:     19798 MiB
Backend: LLVM 21.1.5

Failure Information (for bugs)

Neither -no-threaded-checker nor -thread-count:1 help.
The checker seems to get stuck waiting here:

wait_signal_until_available(&type->Struct.fields_wait_signal);

Steps to Reproduce

package test

Bar :: struct {
	foo: Foo,
}

Foo :: Bar{}.foo

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