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

🧹 add query in panic when compiling #5089

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

jaym
Copy link
Contributor

@jaym jaym commented Jan 13, 2025

panic: something bad [recovered]
	panic: panic compiling "asset { kind platform runtime version family }": something bad

goroutine 1 [running]:
go.mondoo.com/cnquery/v11/mqlc.Compile.func1()
	/home/jaym/workspace/mondoo/cnquery/mqlc/mqlc.go:2189 +0xb3
panic({0x256d240?, 0x30aef10?})
	/usr/lib/go/src/runtime/panic.go:785 +0x132
go.mondoo.com/cnquery/v11/mqlc.compile({0x2c3a735?, 0xc000a5fcf0?}, 0x0, {{0x30ec1f0, 0xc000742290}, 0x0, {0x30fa3d8, 0x49908a0}})
	/home/jaym/workspace/mondoo/cnquery/mqlc/mqlc.go:2177 +0x248
go.mondoo.com/cnquery/v11/mqlc.Compile({0x2c3a735?, 0x2?}, 0x2?, {{0x30ec1f0, 0xc000742290}, 0x0, {0x30fa3d8, 0x49908a0}})
	/home/jaym/workspace/mondoo/cnquery/mqlc/mqlc.go:2193 +0xbe
go.mondoo.com/cnquery/v11/explorer/executor.MustCompile({0x2c3a735, 0x2e})
	/home/jaym/workspace/mondoo/cnquery/explorer/executor/mustcompile.go:14 +0xf3
go.mondoo.com/cnspec/v11/policy/scan.init()
	/home/jaym/workspace/mondoo/cnspec/policy/scan/local_scanner.go:900 +0x25
exit status 2

```
panic: something bad [recovered]
	panic: panic compiling "asset { kind platform runtime version family }": something bad

goroutine 1 [running]:
go.mondoo.com/cnquery/v11/mqlc.Compile.func1()
	/home/jaym/workspace/mondoo/cnquery/mqlc/mqlc.go:2189 +0xb3
panic({0x256d240?, 0x30aef10?})
	/usr/lib/go/src/runtime/panic.go:785 +0x132
go.mondoo.com/cnquery/v11/mqlc.compile({0x2c3a735?, 0xc000a5fcf0?}, 0x0, {{0x30ec1f0, 0xc000742290}, 0x0, {0x30fa3d8, 0x49908a0}})
	/home/jaym/workspace/mondoo/cnquery/mqlc/mqlc.go:2177 +0x248
go.mondoo.com/cnquery/v11/mqlc.Compile({0x2c3a735?, 0x2?}, 0x2?, {{0x30ec1f0, 0xc000742290}, 0x0, {0x30fa3d8, 0x49908a0}})
	/home/jaym/workspace/mondoo/cnquery/mqlc/mqlc.go:2193 +0xbe
go.mondoo.com/cnquery/v11/explorer/executor.MustCompile({0x2c3a735, 0x2e})
	/home/jaym/workspace/mondoo/cnquery/explorer/executor/mustcompile.go:14 +0xf3
go.mondoo.com/cnspec/v11/policy/scan.init()
	/home/jaym/workspace/mondoo/cnspec/policy/scan/local_scanner.go:900 +0x25
exit status 2
```
Copy link
Contributor

Test Results

3 208 tests  +2 351   3 204 ✅ +2 349   1m 53s ⏱️ + 1m 21s
  379 suites +  279       4 💤 +    3 
   29 files   +   28       0 ❌  -     1 

Results for commit 0237c0c. ± Comparison against base commit 954a86f.

@vjeffrey vjeffrey merged commit f7589bf into main Jan 13, 2025
17 checks passed
@vjeffrey vjeffrey deleted the jdm/compile-panic-context branch January 13, 2025 19:04
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants