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

I probably have invalid config, but it manages to crash apko #326

Open
xnox opened this issue Jun 10, 2024 · 1 comment
Open

I probably have invalid config, but it manages to crash apko #326

xnox opened this issue Jun 10, 2024 · 1 comment

Comments

@xnox
Copy link
Contributor

xnox commented Jun 10, 2024

│ Error: Invalid index

│   on tflib/versions/main.tf line 100, in locals:
│  100:   versions_no_latest = merge({ for k, v in local.eol_versions : k => v if timecmp(timeadd("${v["eolDate"]}T00:00:00Z", "${local.eol_grace_hours}h"), local.now) >= 0 }, local.active_versions)

│ The given key does not identify an element in this collection value.


Stack trace from the terraform-provider-apko_v0.15.12 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x472dee]

goroutine 35987 [running]:
chainguard.dev/apko/pkg/tarfs.(*memFile).Write(0xc028c2d440, {0xc007296000?, 0x320, 0x0?})
	chainguard.dev/[email protected]/pkg/tarfs/fs.go:924 +0x195
bytes.(*Buffer).WriteTo(0xc0158c2d80, {0x7c6d6e621958?, 0xc028c2d440?})
	bytes/buffer.go:261 +0x7b
io.copyBuffer({0x7c6d6e621958, 0xc028c2d440}, {0x13c6420, 0xc0158c2d80}, {0x0, 0x0, 0x0})
	io/io.go:411 +0x9d
io.Copy(...)
	io/io.go:388
chainguard.dev/apko/pkg/tarfs.(*memFS).WriteFile(0xc0006abf18?, {0xc0127499b0?, 0xc014ed18c0?}, {0xc007296000, 0x320, 0x321}, 0xea05ee8?)
	chainguard.dev/[email protected]/pkg/tarfs/fs.go:563 +0x186
chainguard.dev/apko/pkg/apk/apk.(*APK).InitKeyring.func1()
	chainguard.dev/[email protected]/pkg/apk/apk/implementation.go:439 +0x7f4
golang.org/x/sync/errgroup.(*Group).Go.func1()
	golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 35972
	golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x96

Error: The terraform-provider-apko_v0.15.12 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
@imjasonh
Copy link
Member

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

No branches or pull requests

2 participants