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

crash on startup #1243

Closed
scoheb opened this issue Nov 7, 2024 · 7 comments
Closed

crash on startup #1243

scoheb opened this issue Nov 7, 2024 · 7 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@scoheb
Copy link

scoheb commented Nov 7, 2024

Expected Behavior

Chains should startup normally and remain running

Actual Behavior

Chains controller keeps crashing due to:

{"level":"error","ts":"2024-11-07T17:44:59.117Z","logger":"watcher","caller":"pipelinerun/pipelinerun.go:123","msg":"Mismatch in number of steps for task run postgresql-16-9-5-on-pull-request-25wpn-build-images-0. TaskSpec steps: 7, Status steps: 0","commit":"1390c44","knative.dev/controller":"git.luolix.top.tektoncd.chains.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"fe6ca274-8bf0-4846-9bbb-bf96875cadeb","knative.dev/key":"osci-rhel-containers-tenant/postgresql-16-9-5-on-pull-request-25wpn","stacktrace":"github.com/tektoncd/chains/pkg/chains/formats/slsa/v1/pipelinerun.buildConfig\n\t/go/src/github.com/tektoncd/chains/pkg/chains/formats/slsa/v1/pipelinerun/pipelinerun.go:123\ngit.luolix.top/tektoncd/chains/pkg/chains/formats/slsa/v1/pipelinerun.GenerateAttestation\n\t/go/src/github.com/tektoncd/chains/pkg/chains/formats/slsa/v1/pipelinerun/pipelinerun.go:69\ngit.luolix.top/tektoncd/chains/pkg/chains/formats/slsa/v1.(*InTotoIte6).CreatePayload\n\t/go/src/git...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x29586ed]
goroutine 164 [running]:
github.com/tektoncd/chains/pkg/chains/formats/slsa/v1/pipelinerun.buildConfig({0x3d77928?, 0xc0059356e0?}, 0xc005df0ae0)
	/go/src/github.com/tektoncd/chains/pkg/chains/formats/slsa/v1/pipelinerun/pipelinerun.go:122 +0x5ad

Additional Info

  • Tekton Pipeline version:

    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

kubectl get pods -n openshift-pipelines -l app=tekton-chains-controller -ojson | jq '.items[0].metadata.labels.version'
"v0.22.2"

@scoheb scoheb added the kind/bug Categorizes issue or PR as related to a bug. label Nov 7, 2024
@scoheb
Copy link
Author

scoheb commented Nov 7, 2024

@lcarva
Copy link
Contributor

lcarva commented Nov 7, 2024

Thanks for reporting the issue!

We fixed a couple of nil-pointer dereferences in v0.23.0:

This seems like one of those.

@lcarva
Copy link
Contributor

lcarva commented Nov 7, 2024

NOTE: The issue seems to manifest in different way. One of them is if a TaskRun does not contain a status.

ralphbean added a commit to ralphbean/chains that referenced this issue Nov 13, 2024
Is this scenario possible?

Signed-off-by: Ralph Bean <rbean@redhat.com>
@ralphbean
Copy link

Taking another stab at this in:

@jkhelil
Copy link
Member

jkhelil commented Nov 18, 2024

Fixed

@lcarva
Copy link
Contributor

lcarva commented Nov 18, 2024

@jkhelil, thanks! Do the two PRs I linked earlier capture the fix?

@scoheb, ok to close this out?

@scoheb
Copy link
Author

scoheb commented Nov 18, 2024

Ok to close

@lcarva lcarva closed this as completed Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants