Skip to content

evaluator: infinite loop on cycle with embeddings #2526

Closed
@perelo

Description

@perelo

What version of CUE are you using (cue version)?

$ cue version
cue version v0.5.0-rc.1

go version go1.20.2
      -buildmode exe
       -compiler gc
       -trimpath true
     CGO_ENABLED 0
          GOARCH amd64
            GOOS linux
         GOAMD64 v1

Also loops on tags v0.6.0-beta.1 and v0.6.0-rc.1, but not v0.4.3.

Bisected to 887f5649

What did you do?

x
x: {
	y
	y: x
}

What did you expect to see?

Something like
x.y: structural cycle

What did you see instead?

Apparently a non terminating evaluation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions