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

fix panic in eval #371

Closed
wants to merge 1 commit into from
Closed

fix panic in eval #371

wants to merge 1 commit into from

Conversation

komalali
Copy link
Member

@komalali komalali commented Aug 21, 2024

Fixes a panic in the evaluator

Callstack
panic({0x2b282c0?, 0x5f48800?})
    /usr/local/go/src/runtime/panic.go:770 +0x124
[github.com/pulumi/esc/eval.declare[...](0x400370fc78](http://github.com/pulumi/esc/eval.declare[...](0x400370fc78)?, {0x4004796940, 0x7}, {0x3c2d7e0, 0x4004337dd0?}, 0x0)
    /go/src/github.com/pulumi/pulumi-service/vendor/github.com/pulumi/esc/eval/eval.go:318 +0x1808
[github.com/pulumi/esc/eval.(*evalContext).evaluate(0x400370fc78)](http://github.com/pulumi/esc/eval.(*evalContext).evaluate(0x400370fc78))
    /go/src/github.com/pulumi/pulumi-service/vendor/github.com/pulumi/esc/eval/eval.go:369 +0x414
[github.com/pulumi/esc/eval.evalEnvironment({0x3c319f8](http://github.com/pulumi/esc/eval.evalEnvironment(%7B0x3c319f8), 0x40043363c0}, 0x1, {0x32197cf, 0x6}, 0x4003716840, {0x0, 0x0}, {0x3c07520, 0x4003666b48}, ...)
    /go/src/github.com/pulumi/pulumi-service/vendor/github.com/pulumi/esc/eval/eval.go:114 +0x154
[github.com/pulumi/esc/eval.CheckEnvironment(...)](http://github.com/pulumi/esc/eval.CheckEnvironment(...))
    /go/src/github.com/pulumi/pulumi-service/vendor/github.com/pulumi/esc/eval/eval.go:95

@pgavlin
Copy link
Member

pgavlin commented Aug 21, 2024

I think that you can probably repro this with something like this?

values:
  foo:
    bar: baz
    : qux

@komalali
Copy link
Member Author

Hmm no luck, that reasonably errors with: Error: yaml: line 2: did not find expected key

@pgavlin
Copy link
Member

pgavlin commented Aug 22, 2024

Bummer. I'd love to know what the YAML that triggers this looks like...

@komalali
Copy link
Member Author

I'd love to know what the YAML that triggers this looks like...

Yeah, I agree. It would be nice if we had the request payload for Check calls. Either way, I'll let this sit for a while until we see the panic again and see if we can track down the payload.

@komalali komalali closed this Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants