Bug 1666247
| Summary: | openshift master api crashes due to SIGABRT | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | ggore |
| Component: | openshift-apiserver | Assignee: | Stefan Schimanski <sttts> |
| Status: | CLOSED DEFERRED | QA Contact: | Xingxing Xia <xxia> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.9.0 | CC: | aos-bugs, ggore, jokerman, mfojtik, mmccomas, rbost, ssadhale |
| Target Milestone: | --- | ||
| Target Release: | 3.9.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-11-20 18:58:47 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
ggore
2019-01-15 10:34:03 UTC
I think the fix is here: https://github.com/openshift/origin/commit/90cd6c37622a97aaa00f9244a834cdd8646b55f8, included in v3.10 and later. @mfojtik, Can this be backported? Looks fairly simple. @ggore, Can the customer go and check their git repository history (`git log` in the feature/DDJ-2654-connect-bitbucket-webhook-to-openshift branch). Analysis ======== Here's the failing line: https://github.com/openshift/origin/blob/71543b2d15e53f4ae56272988a6604bf2f790dfd/pkg/build/webhook/bitbucket/bitbucket.go#L158 lastCommit := event.Push.Changes[0].Commits[0] In the coredump, I can see that Commits is empty so trying to access [0] is going to cause the `index out of range' seen in logging: (dlv) frame 8 (dlv) locals data.len = 773 data.cap = 1536 author.Name.len = 85442752 revision = (*github.com/openshift/origin/pkg/build/apis/build.SourceRevision)(0xc42c162a20) data.ptr = (*uint8)(0xc42aa7c600) author.Name.ptr = (*uint8)(0xb) event = github.com/openshift/origin/pkg/build/webhook/bitbucket.pushEvent {Push: (*github.com/openshift/origin/pkg/build/webhook/bitbucket.push)(0xc437162700)} lastCommit = github.com/openshift/origin/pkg/build/webhook/bitbucket.commit {Hash: (unreadable could not read string at 0x9 due to EOF), Message: "H�D$\x18H�L$ H�D$@H�L$HH�l$(H��0���XF��������������dH�\f%����H�D$�H;...+842553239970 more", Author: (*github.com/openshift/origin/pkg/build/webhook/bitbucket.user)(0xc43a3bf8c8)} (dlv) print event.Push.Changes[0] github.com/openshift/origin/pkg/build/webhook/bitbucket.change { Commits: []github.com/openshift/origin/pkg/build/webhook/bitbucket.commit len: 0, cap: 0, nil, <------- LEN IS ZERO Old: github.com/openshift/origin/pkg/build/webhook/bitbucket.info { Type: "branch", Name: "feature/DDJ-2654-connect-bitbucket-webhook-to-openshift",},} (dlv) print event.Push.Changes[0].Commits[0] Command failed: can not index "event.Push.Changes[0].Commits" OCP 3.6-3.10 is no longer on full support [1]. Marking CLOSED DEFERRED. If you have a customer case with a support exception or have reproduced on 3.11+, please reopen and include those details. When reopening, please set the Target Release to the appropriate version where needed. [1]: https://access.redhat.com/support/policy/updates/openshift |