Closed Laci21 closed 2 years ago
The following errors were seen:
unexpected fault address 0x0 fatal error: fault [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x461f5f] goroutine 591 [running]: runtime.throw({0x168d208?, 0x891705?}) /usr/local/go/src/runtime/panic.go:992 +0x71 fp=0xc000c47f70 sp=0xc000c47f40 pc=0x434f11 runtime.sigpanic() /usr/local/go/src/runtime/signal_unix.go:825 +0x305 fp=0xc000c47fc0 sp=0xc000c47f70 pc=0x44a585 aeshashbody() /usr/local/go/src/runtime/asm_amd64.s:1343 +0x39f fp=0xc000c47fc8 sp=0xc000c47fc0 pc=0x461f5f runtime.mapiternext(0xc0007f3140) /usr/local/go/src/runtime/map.go:934 +0x2cb fp=0xc000c48038 sp=0xc000c47fc8 pc=0x40fb0b runtime.mapiterinit(0xc000c480d0?, 0x890ef6?, 0xc0013f7b90?) /usr/local/go/src/runtime/map.go:861 +0x228 fp=0xc000c48058 sp=0xc000c48038 pc=0x40f7e8 reflect.mapiterinit(0xc000c480d0?, 0x8929a7?, 0xc0007f3140?) /usr/local/go/src/runtime/map.go:1373 +0x19 fp=0xc000c48080 sp=0xc000c48058 pc=0x45eb99 github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...) /go/pkg/mod/github.com/modern-go/reflect2@v1.0.1/unsafe_map.go:112 github.com/json-iterator/go.(*sortKeysMapEncoder).IsEmpty(0xc0013c3710?, 0xc0012ef900?) /go/pkg/mod/github.com/json-iterator/go@v1.1.11/reflect_map.go:333 +0x28 fp=0xc000c480c0 sp=0xc000c48080 pc=0x884368 github.com/json-iterator/go.(*structFieldEncoder).IsEmpty(0xc0013f7ec0, 0x1497619?) /go/pkg/mod/github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:118 +0x42 fp=0xc000c480e0 sp=0xc000c480c0 pc=0x8910a2 github.com/json-iterator/go.(*structEncoder).Encode(0xc0013f7f80, 0xc000c48208?, 0xc0013e1e60) /go/pkg/mod/github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:148 +0x565 fp=0xc000c481c8 sp=0xc000c480e0 pc=0x891705 github.com/json-iterator/go.(*OptionalEncoder).Encode(0x1460160?, 0xc000487100?, 0xc000c48258?) /go/pkg/mod/github.com/json-iterator/go@v1.1.11/reflect_optional.go:70 +0xa4 fp=0xc000c48218 sp=0xc000c481c8 pc=0x888ac4 github.com/json-iterator/go.(*onePtrEncoder).Encode(0xc000bb76f0, 0xc0012ef900, 0xc0013c34a0?) /go/pkg/mod/github.com/json-iterator/go@v1.1.11/reflect.go:219 +0x82 fp=0xc000c48250 sp=0xc000c48218 pc=0x87b982 github.com/json-iterator/go.(*Stream).WriteVal(0xc0013e1e60, {0x166ad60, 0xc0012ef900}) /go/pkg/mod/github.com/json-iterator/go@v1.1.11/reflect.go:98 +0x158 fp=0xc000c482c0 sp=0xc000c48250 pc=0x87ac98 github.com/json-iterator/go.(*frozenConfig).Marshal(0xc0000a9900, {0x166ad60, 0xc0012ef900}) /go/pkg/mod/github.com/json-iterator/go@v1.1.11/config.go:299 +0xc9 fp=0xc000c48358 sp=0xc000c482c0 pc=0x871dc9 github.com/banzaicloud/k8s-objectmatcher/patch.(*Annotator).GetModifiedConfiguration(0xc00040a800, {0x18b4228?, 0xc0012ef900}, 0x0) /go/pkg/mod/github.com/banzaicloud/k8s-objectmatcher@v1.7.0/patch/annotation.go:128 +0x15d fp=0xc000c483e0 sp=0xc000c48358 pc=0x1346e1d github.com/banzaicloud/k8s-objectmatcher/patch.(*Annotator).SetLastAppliedAnnotation(0x18af020?, {0x18b4228, 0xc0012ef900}) /go/pkg/mod/github.com/banzaicloud/k8s-objectmatcher@v1.7.0/patch/annotation.go:160 +0x2a fp=0xc000c48428 sp=0xc000c483e0 pc=0x13470ca github.com/banzaicloud/operator-tools/pkg/reconciler.(*GenericResourceReconciler).CreateIfNotExist(0xc0013ee2a0, {0x18b4228?, 0xc0012ef900}, {0x18c2580, 0x18ab390}) /go/pkg/mod/github.com/banzaicloud/operator-tools@v0.24.1-0.20210917222015-90c6c0b3cffe/pkg/reconciler/resource.go:502 +0x38b fp=0xc000c485e8 sp=0xc000c48428 pc=0x134c24b github.com/banzaicloud/operator-tools/pkg/reconciler.(*GenericResourceReconciler).ReconcileResource(0xc0013ee2a0, {0x18b4228?, 0xc0012ef900}, {0x18c2580, 0x18ab390}) /go/pkg/mod/github.com/banzaicloud/operator-tools@v0.24.1-0.20210917222015-90c6c0b3cffe/pkg/reconciler/resource.go:310 +0x3fd fp=0xc000c48bb0 sp=0xc000c485e8 pc=0x134a41d github.com/cisco-open/cluster-registry-controller/controllers.(*ClusterReconciler).provisionLocalClusterReaderSecret(0xc000215b00, {0x18c30c0, 0xc000be06f0}, 0xc000979b00) /workspace/controllers/cluster_reconciler.go:350 +0x25a fp=0xc000c48c70 sp=0xc000c48bb0 pc=0x137fe7a github.com/cisco-open/cluster-registry-controller/controllers.(*ClusterReconciler).reconcileLocalCluster(0xc000215b00, {0x18c30c0, 0xc000be06f0}, 0xc000979b00, 0x0?) /workspace/controllers/cluster_reconciler.go:314 +0x438 fp=0xc000c48f68 sp=0xc000c48c70 pc=0x137fb38 github.com/cisco-open/cluster-registry-controller/controllers.(*ClusterReconciler).Reconcile(0xc000215b00, {0x18c30c0, 0xc000be06f0}, {{{0x0, 0x0}, {0xc0005154a0, 0xa}}}) /workspace/controllers/cluster_reconciler.go:122 +0x69e fp=0xc000c49dc0 sp=0xc000c48f68 pc=0x137d5fe sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0000a8e60, {0x18c3018, 0xc0005244c0}, {0x1526c00?, 0xc00004a7c0?}) /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:298 +0x2f9 fp=0xc000c49ee0 sp=0xc000c49dc0 pc=0x11a1e59 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0000a8e60, {0x18c3018, 0xc0005244c0}) /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:253 +0x1d9 fp=0xc000c49f80 sp=0xc000c49ee0 pc=0x11a16d9 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2() /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:214 +0x85 fp=0xc000c49fe0 sp=0xc000c49f80 pc=0x11a1145 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc000c49fe8 sp=0xc000c49fe0 pc=0x464a21 created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:210 +0x307
Related PR: https://github.com/banzaicloud/k8s-objectmatcher/pull/52
Why?
The following errors were seen:
Additional context
Related PR: https://github.com/banzaicloud/k8s-objectmatcher/pull/52
Checklist