alcideio / rbac-tool

Rapid7 | insightCloudSec | Kubernetes RBAC Power Toys - Visualize, Analyze, Generate & Query
Apache License 2.0
966 stars 68 forks source link

segmentation fault on who-can #85

Closed Nightreaver closed 1 year ago

Nightreaver commented 1 year ago

What happened: I'm getting segmentation fault on kubectl rbac-tool who-can create clusterrolebinding

What you expected to happen: print out who can create clusterrolebinding

How to reproduce it (as minimally and precisely as possible): not sure

Anything else we need to know?:

``` unexpected fault address 0x0 fatal error: fault [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x4631bf] goroutine 1 [running]: runtime.throw({0x1535804?, 0x30?}) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/panic.go:1047 +0x5d fp=0xc000510938 sp=0xc000510908 pc=0x435afd runtime.sigpanic() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/signal_unix.go:842 +0x2c5 fp=0xc000510988 sp=0xc000510938 pc=0x44b505 aeshashbody() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1366 +0x39f fp=0xc000510990 sp=0xc000510988 pc=0x4631bf runtime.mapiternext(0xc0004f47c0) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/map.go:936 +0x2eb fp=0xc000510a00 sp=0xc000510990 pc=0x40fe2b runtime.mapiterinit(0x1?, 0x7?, 0x1?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/map.go:863 +0x236 fp=0xc000510a20 sp=0xc000510a00 pc=0x40faf6 reflect.mapiterinit(0x146cd00?, 0xc0001283c0?, 0x4dfdc7?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/map.go:1375 +0x19 fp=0xc000510a48 sp=0xc000510a20 pc=0x45ff99 github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...) /home/runner/pkg/mod/github.com/modern-go/reflect2@v1.0.1/unsafe_map.go:112 github.com/json-iterator/go.(*sortKeysMapEncoder).Encode(0xc000432060, 0xc0000104f0, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_map.go:291 +0x236 fp=0xc000510bb8 sp=0xc000510a48 pc=0x7c37b6 github.com/json-iterator/go.(*placeholderEncoder).Encode(0x13a5e00?, 0x1767501?, 0xc00008b338?) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x22 fp=0xc000510be0 sp=0xc000510bb8 pc=0x7bc3c2 github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0004324e0, 0x12bd69b?, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x56 fp=0xc000510c58 sp=0xc000510be0 pc=0x7d0ff6 github.com/json-iterator/go.(*structEncoder).Encode(0xc000432540, 0x900?, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x765 fp=0xc000510d40 sp=0xc000510c58 pc=0x7d1a05 github.com/json-iterator/go.(*OptionalEncoder).Encode(0xc00008b320?, 0xc000130960?, 0xc000510dd0?) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_optional.go:70 +0xb0 fp=0xc000510d90 sp=0xc000510d40 pc=0x7c8b90 github.com/json-iterator/go.(*placeholderEncoder).Encode(0x13a5e00?, 0xc0004f4601?, 0xc00008b338?) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x22 fp=0xc000510db8 sp=0xc000510d90 pc=0x7bc3c2 github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0004e0360, 0x12ed259?, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x56 fp=0xc000510e30 sp=0xc000510db8 pc=0x7d0ff6 github.com/json-iterator/go.(*structEncoder).Encode(0xc0004e0420, 0xc0001306c0?, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x765 fp=0xc000510f18 sp=0xc000510e30 pc=0x7d1a05 github.com/json-iterator/go.(*placeholderEncoder).Encode(0x13a5e00?, 0x7d0801?, 0xc00008b338?) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x22 fp=0xc000510f40 sp=0xc000510f18 pc=0x7bc3c2 github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0004e06c0, 0x12bd603?, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x56 fp=0xc000510fb8 sp=0xc000510f40 pc=0x7d0ff6 github.com/json-iterator/go.(*structEncoder).Encode(0xc0004e0720, 0x135e5e0?, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x765 fp=0xc0005110a0 sp=0xc000510fb8 pc=0x7d1a05 github.com/json-iterator/go.(*sliceEncoder).Encode(0xc0003768d0, 0xc0000df448, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_slice.go:38 +0x2e4 fp=0xc000511158 sp=0xc0005110a0 pc=0x7c9644 github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0004e14d0, 0x12c3059?, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x56 fp=0xc0005111d0 sp=0xc000511158 pc=0x7d0ff6 github.com/json-iterator/go.(*structEncoder).Encode(0xc0004e1620, 0x0?, 0xc00008b320) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x765 fp=0xc0005112b8 sp=0xc0005111d0 pc=0x7d1a05 github.com/json-iterator/go.(*OptionalEncoder).Encode(0xc000202f00?, 0x0?, 0x0?) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_optional.go:70 +0xb0 fp=0xc000511308 sp=0xc0005112b8 pc=0x7c8b90 github.com/json-iterator/go.(*onePtrEncoder).Encode(0xc0003ce670, 0xc0000df3f0, 0xc0004e08d0?) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:219 +0x82 fp=0xc000511340 sp=0xc000511308 pc=0x7bb982 github.com/json-iterator/go.(*Stream).WriteVal(0xc00008b320, {0x14098c0, 0xc0000df3f0}) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:98 +0x166 fp=0xc0005113b0 sp=0xc000511340 pc=0x7baca6 github.com/json-iterator/go.(*frozenConfig).Marshal(0xc000202f00, {0x14098c0, 0xc0000df3f0}) /home/runner/pkg/mod/github.com/json-iterator/go@v1.1.10/config.go:299 +0xc9 fp=0xc000511448 sp=0xc0005113b0 pc=0x7b1f29 k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).doEncode(0x12a470f?, {0x175b5a0?, 0xc0000df3f0?}, {0x1752e20, 0xc00009fe30}) /home/runner/pkg/mod/k8s.io/apimachinery@v0.19.16/pkg/runtime/serializer/json/json.go:305 +0x6d fp=0xc0005114e0 sp=0xc000511448 pc=0xbe9c6d k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).Encode(0xc0003a2aa0, {0x175b5a0, 0xc0000df3f0}, {0x1752e20, 0xc00009fe30}) /home/runner/pkg/mod/k8s.io/apimachinery@v0.19.16/pkg/runtime/serializer/json/json.go:300 +0xfc fp=0xc000511540 sp=0xc0005114e0 pc=0xbe9b9c k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).doEncode(0xc000381400, {0x175b550?, 0xc00008b260}, {0x1752e20, 0xc00009fe30}) /home/runner/pkg/mod/k8s.io/apimachinery@v0.19.16/pkg/runtime/serializer/versioning/versioning.go:244 +0x946 fp=0xc0005118c8 sp=0xc000511540 pc=0xbf7b86 k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).Encode(0xc000381400, {0x175b550, 0xc00008b260}, {0x1752e20, 0xc00009fe30}) /home/runner/pkg/mod/k8s.io/apimachinery@v0.19.16/pkg/runtime/serializer/versioning/versioning.go:184 +0x106 fp=0xc000511928 sp=0xc0005118c8 pc=0xbf71e6 k8s.io/apimachinery/pkg/runtime.Encode({0x7fb15533bad8, 0xc000381400}, {0x175b550, 0xc00008b260}) /home/runner/pkg/mod/k8s.io/apimachinery@v0.19.16/pkg/runtime/codec.go:50 +0x64 fp=0xc000511968 sp=0xc000511928 pc=0x80f164 k8s.io/client-go/tools/clientcmd.Write(...) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/tools/clientcmd/loader.go:469 k8s.io/client-go/tools/clientcmd.WriteToFile({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0xc000543c20}, 0xc000543c50, 0xc000543c80, 0xc000543cb0, {0xc0005500b0, ...}, ...}, ...) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/tools/clientcmd/loader.go:422 +0xa8 fp=0xc0005119e0 sp=0xc000511968 pc=0x1019aa8 k8s.io/client-go/tools/clientcmd.ModifyConfig({0x1769560, 0xc0003a3720}, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0xc000542ea0}, 0xc000542ed0, 0xc000542f00, ...}, ...) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/tools/clientcmd/config.go:291 +0xcf8 fp=0xc000512108 sp=0xc0005119e0 pc=0x1015c78 k8s.io/client-go/tools/clientcmd.(*persister).Persist(0xc0004de240, 0xc000542210) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/tools/clientcmd/config.go:374 +0x11a fp=0xc0005121f8 sp=0xc000512108 pc=0x101661a k8s.io/client-go/plugin/pkg/client/auth/oidc.(*oidcAuthProvider).idToken(0xc00012ab10) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/plugin/pkg/client/auth/oidc/oidc.go:282 +0x966 fp=0xc0005123f8 sp=0xc0005121f8 pc=0xfe7666 k8s.io/client-go/plugin/pkg/client/auth/oidc.(*roundTripper).RoundTrip(0xc000182b10, 0xc00054c400) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/plugin/pkg/client/auth/oidc/oidc.go:200 +0x67 fp=0xc000512500 sp=0xc0005123f8 pc=0xfe69a7 k8s.io/client-go/transport.(*userAgentRoundTripper).RoundTrip(0xc0000544e0, 0xc00054c300) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/transport/round_trippers.go:159 +0x350 fp=0xc0005125f8 sp=0xc000512500 pc=0xf52b90 net/http.send(0xc00054c200, {0x1755600, 0xc0000544e0}, {0x14d7960?, 0x4c0301?, 0x21de500?}) /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/client.go:251 +0x5f7 fp=0xc0005127f0 sp=0xc0005125f8 pc=0x731f77 net/http.(*Client).send(0xc0004f8000, 0xc00054c200, {0x0?, 0xc000512898?, 0x21de500?}) /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/client.go:175 +0x9b fp=0xc000512868 sp=0xc0005127f0 pc=0x7317fb net/http.(*Client).do(0xc0004f8000, 0xc00054c200) /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/client.go:715 +0x8fc fp=0xc000512a58 sp=0xc000512868 pc=0x733b7c net/http.(*Client).Do(...) /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/client.go:581 k8s.io/client-go/rest.(*Request).request(0xc0001484b0, {0x1767c50, 0xc00004c320}, 0x1?) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/rest/request.go:881 +0x51e fp=0xc000512c48 sp=0xc000512a58 pc=0xf7147e k8s.io/client-go/rest.(*Request).Do(0x153570a?, {0x1767c50?, 0xc00004c320?}) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/rest/request.go:954 +0xc7 fp=0xc000512cf8 sp=0xc000512c48 pc=0xf72087 k8s.io/client-go/discovery.(*DiscoveryClient).ServerGroups(0xc000054540) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/discovery/discovery_client.go:159 +0xae fp=0xc000512fd8 sp=0xc000512cf8 pc=0xf76a2e k8s.io/client-go/discovery.ServerPreferredResources({0x176e1a0, 0xc000054540}) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/discovery/discovery_client.go:287 +0x42 fp=0xc0005137a8 sp=0xc000512fd8 pc=0xf77da2 k8s.io/client-go/discovery.(*DiscoveryClient).ServerPreferredResources.func1() /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/discovery/discovery_client.go:387 +0x25 fp=0xc0005137c8 sp=0xc0005137a8 pc=0xf78f65 k8s.io/client-go/discovery.withRetries(0x2, 0xc0005137f0) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/discovery/discovery_client.go:450 +0x72 fp=0xc0005137e0 sp=0xc0005137c8 pc=0xf797b2 k8s.io/client-go/discovery.(*DiscoveryClient).ServerPreferredResources(0xc0003a3770?) /home/runner/pkg/mod/k8s.io/client-go@v0.19.16/discovery/discovery_client.go:386 +0x3a fp=0xc000513810 sp=0xc0005137e0 pc=0xf78efa github.com/alcideio/rbac-tool/pkg/kube.NewClient({0x0, 0x0}) /home/runner/work/rbac-tool/rbac-tool/pkg/kube/client.go:60 +0x1a5 fp=0xc0005138e0 sp=0xc000513810 pc=0x101e225 github.com/alcideio/rbac-tool/cmd.NewCommandWhoCan.func1(0xc0004cf600?, {0xc0004de2a0?, 0x2?, 0x2?}) /home/runner/work/rbac-tool/rbac-tool/cmd/whocan_cmd.go:122 +0x1fc fp=0xc000513da8 sp=0xc0005138e0 pc=0x129685c github.com/spf13/cobra.(*Command).execute(0xc0004cf600, {0xc0004de260, 0x2, 0x2}) /home/runner/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842 +0x67c fp=0xc000513e80 sp=0xc000513da8 pc=0x11966dc github.com/spf13/cobra.(*Command).ExecuteC(0xc0004ce000) /home/runner/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x39d fp=0xc000513f38 sp=0xc000513e80 pc=0x1196cbd github.com/spf13/cobra.(*Command).Execute(...) /home/runner/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887 main.main() /home/runner/work/rbac-tool/rbac-tool/main.go:65 +0x1e fp=0xc000513f80 sp=0xc000513f38 pc=0x1297bbe runtime.main() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:250 +0x212 fp=0xc000513fe0 sp=0xc000513f80 pc=0x438352 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000513fe8 sp=0xc000513fe0 pc=0x465c81 goroutine 2 [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc000068fb0 sp=0xc000068f90 pc=0x438716 runtime.goparkunlock(...) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:369 runtime.forcegchelper() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:302 +0xad fp=0xc000068fe0 sp=0xc000068fb0 pc=0x4385ad runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000068fe8 sp=0xc000068fe0 pc=0x465c81 created by runtime.init.6 /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:290 +0x25 goroutine 3 [GC sweep wait]: runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc000069790 sp=0xc000069770 pc=0x438716 runtime.goparkunlock(...) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:369 runtime.bgsweep(0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgcsweep.go:297 +0xd7 fp=0xc0000697c8 sp=0xc000069790 pc=0x424e37 runtime.gcenable.func1() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:178 +0x26 fp=0xc0000697e0 sp=0xc0000697c8 pc=0x419a86 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000697e8 sp=0xc0000697e0 pc=0x465c81 created by runtime.gcenable /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:178 +0x6b goroutine 4 [GC scavenge wait]: runtime.gopark(0xc000088000?, 0x1750558?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc000069f70 sp=0xc000069f50 pc=0x438716 runtime.goparkunlock(...) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:369 runtime.(*scavengerState).park(0x21de720) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgcscavenge.go:389 +0x53 fp=0xc000069fa0 sp=0xc000069f70 pc=0x422e93 runtime.bgscavenge(0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgcscavenge.go:622 +0x65 fp=0xc000069fc8 sp=0xc000069fa0 pc=0x423485 runtime.gcenable.func2() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:179 +0x26 fp=0xc000069fe0 sp=0xc000069fc8 pc=0x419a26 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000069fe8 sp=0xc000069fe0 pc=0x465c81 created by runtime.gcenable /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:179 +0xaa goroutine 5 [finalizer wait]: runtime.gopark(0x438a97?, 0x49?, 0xe8?, 0xda?, 0xc000068770?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc000068628 sp=0xc000068608 pc=0x438716 runtime.goparkunlock(...) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:369 runtime.runfinq() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mfinal.go:180 +0x10f fp=0xc0000687e0 sp=0xc000068628 pc=0x418b8f runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000687e8 sp=0xc0000687e0 pc=0x465c81 created by runtime.createfing /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mfinal.go:157 +0x45 goroutine 6 [chan receive]: runtime.gopark(0xc00006a6d8?, 0x43e57b?, 0x20?, 0xa7?, 0x454245?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc00006a6c8 sp=0xc00006a6a8 pc=0x438716 runtime.chanrecv(0xc000180000, 0xc00006a7a0, 0x1) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/chan.go:583 +0x49b fp=0xc00006a758 sp=0xc00006a6c8 pc=0x406cdb runtime.chanrecv2(0x12a05f200?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/chan.go:447 +0x18 fp=0xc00006a780 sp=0xc00006a758 pc=0x406818 k8s.io/klog.(*loggingT).flushDaemon(0x0?) /home/runner/pkg/mod/k8s.io/klog@v1.0.0/klog.go:1010 +0x6a fp=0xc00006a7c8 sp=0xc00006a780 pc=0x50964a k8s.io/klog.init.0.func1() /home/runner/pkg/mod/k8s.io/klog@v1.0.0/klog.go:411 +0x26 fp=0xc00006a7e0 sp=0xc00006a7c8 pc=0x507326 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00006a7e8 sp=0xc00006a7e0 pc=0x465c81 created by k8s.io/klog.init.0 /home/runner/pkg/mod/k8s.io/klog@v1.0.0/klog.go:411 +0xef goroutine 7 [chan receive]: runtime.gopark(0x1b17c9725b8?, 0x0?, 0x20?, 0xaf?, 0x454245?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc00006aec8 sp=0xc00006aea8 pc=0x438716 runtime.chanrecv(0xc000114000, 0xc00006afa0, 0x1) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/chan.go:583 +0x49b fp=0xc00006af58 sp=0xc00006aec8 pc=0x406cdb runtime.chanrecv2(0x12a05f200?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/chan.go:447 +0x18 fp=0xc00006af80 sp=0xc00006af58 pc=0x406818 k8s.io/klog/v2.(*loggingT).flushDaemon(0x0?) /home/runner/pkg/mod/k8s.io/klog/v2@v2.2.0/klog.go:1131 +0x6a fp=0xc00006afc8 sp=0xc00006af80 pc=0x6279ea k8s.io/klog/v2.init.0.func1() /home/runner/pkg/mod/k8s.io/klog/v2@v2.2.0/klog.go:416 +0x26 fp=0xc00006afe0 sp=0xc00006afc8 pc=0x625646 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00006afe8 sp=0xc00006afe0 pc=0x465c81 created by k8s.io/klog/v2.init.0 /home/runner/pkg/mod/k8s.io/klog/v2@v2.2.0/klog.go:416 +0xef goroutine 8 [GC worker (idle)]: runtime.gopark(0x5d8781874f?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc00006b750 sp=0xc00006b730 pc=0x438716 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:1235 +0xf1 fp=0xc00006b7e0 sp=0xc00006b750 pc=0x41bbd1 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00006b7e8 sp=0xc00006b7e0 pc=0x465c81 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:1159 +0x25 goroutine 17 [GC worker (idle)]: runtime.gopark(0x5d8784fecc?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc000064750 sp=0xc000064730 pc=0x438716 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:1235 +0xf1 fp=0xc0000647e0 sp=0xc000064750 pc=0x41bbd1 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0000647e8 sp=0xc0000647e0 pc=0x465c81 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:1159 +0x25 goroutine 33 [GC worker (idle)]: runtime.gopark(0x5d86fd0988?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc00019a750 sp=0xc00019a730 pc=0x438716 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:1235 +0xf1 fp=0xc00019a7e0 sp=0xc00019a750 pc=0x41bbd1 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00019a7e8 sp=0xc00019a7e0 pc=0x465c81 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:1159 +0x25 goroutine 34 [GC worker (idle)]: runtime.gopark(0x5d87845fec?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc00019af50 sp=0xc00019af30 pc=0x438716 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:1235 +0xf1 fp=0xc00019afe0 sp=0xc00019af50 pc=0x41bbd1 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00019afe8 sp=0xc00019afe0 pc=0x465c81 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/mgc.go:1159 +0x25 goroutine 9 [select]: runtime.gopark(0xc000064fa0?, 0x3?, 0x0?, 0x0?, 0xc000064f82?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc000064e08 sp=0xc000064de8 pc=0x438716 runtime.selectgo(0xc000064fa0, 0xc000064f7c, 0x0?, 0x0, 0x0?, 0x1) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/select.go:328 +0x7bc fp=0xc000064f48 sp=0xc000064e08 pc=0x447a9c net/http.setRequestCancel.func4() /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/client.go:397 +0x8b fp=0xc000064fe0 sp=0xc000064f48 pc=0x732e2b runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000064fe8 sp=0xc000064fe0 pc=0x465c81 created by net/http.setRequestCancel /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/client.go:396 +0x44a goroutine 21 [IO wait]: runtime.gopark(0x1d21?, 0xb?, 0x0?, 0x0?, 0x3?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/proc.go:363 +0xd6 fp=0xc000079618 sp=0xc0000795f8 pc=0x438716 runtime.netpollblock(0x4b2f85?, 0xa?, 0x0?) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/netpoll.go:526 +0xf7 fp=0xc000079650 sp=0xc000079618 pc=0x4312d7 internal/poll.runtime_pollWait(0x7fb1554a5ef8, 0x72) /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/netpoll.go:305 +0x89 fp=0xc000079670 sp=0xc000079650 pc=0x4608e9 internal/poll.(*pollDesc).wait(0xc00011ca00?, 0xc000018a00?, 0x0) /opt/hostedtoolcache/go/1.19.9/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32 fp=0xc000079698 sp=0xc000079670 pc=0x4cd0b2 internal/poll.(*pollDesc).waitRead(...) /opt/hostedtoolcache/go/1.19.9/x64/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc00011ca00, {0xc000018a00, 0x2500, 0x2500}) /opt/hostedtoolcache/go/1.19.9/x64/src/internal/poll/fd_unix.go:167 +0x25a fp=0xc000079718 sp=0xc000079698 pc=0x4ce41a net.(*netFD).Read(0xc00011ca00, {0xc000018a00?, 0xc0002bb280?, 0xc0000191df?}) /opt/hostedtoolcache/go/1.19.9/x64/src/net/fd_posix.go:55 +0x29 fp=0xc000079760 sp=0xc000079718 pc=0x5e5b29 net.(*conn).Read(0xc00011a0a0, {0xc000018a00?, 0x4b5?, 0xc0002bb280?}) /opt/hostedtoolcache/go/1.19.9/x64/src/net/net.go:183 +0x45 fp=0xc0000797a8 sp=0xc000079760 pc=0x5f3905 crypto/tls.(*atLeastReader).Read(0xc00063ff38, {0xc000018a00?, 0x0?, 0x479008?}) /opt/hostedtoolcache/go/1.19.9/x64/src/crypto/tls/conn.go:787 +0x3d fp=0xc0000797f0 sp=0xc0000797a8 pc=0x6df53d bytes.(*Buffer).ReadFrom(0xc000536978, {0x1752f20, 0xc00063ff38}) /opt/hostedtoolcache/go/1.19.9/x64/src/bytes/buffer.go:202 +0x98 fp=0xc000079848 sp=0xc0000797f0 pc=0x4794d8 crypto/tls.(*Conn).readFromUntil(0xc000536700, {0x1755820?, 0xc00011a0a0}, 0x1d26?) /opt/hostedtoolcache/go/1.19.9/x64/src/crypto/tls/conn.go:809 +0xe5 fp=0xc000079888 sp=0xc000079848 pc=0x6df725 crypto/tls.(*Conn).readRecordOrCCS(0xc000536700, 0x0) /opt/hostedtoolcache/go/1.19.9/x64/src/crypto/tls/conn.go:616 +0x116 fp=0xc000079c10 sp=0xc000079888 pc=0x6dcb76 crypto/tls.(*Conn).readRecord(...) /opt/hostedtoolcache/go/1.19.9/x64/src/crypto/tls/conn.go:582 crypto/tls.(*Conn).Read(0xc000536700, {0xc000666000, 0x1000, 0x744380?}) /opt/hostedtoolcache/go/1.19.9/x64/src/crypto/tls/conn.go:1315 +0x16f fp=0xc000079c80 sp=0xc000079c10 pc=0x6e2aef bufio.(*Reader).Read(0xc000323920, {0xc0000faf20, 0x9, 0x7527c5?}) /opt/hostedtoolcache/go/1.19.9/x64/src/bufio/bufio.go:237 +0x1bb fp=0xc000079cb8 sp=0xc000079c80 pc=0x4fccfb io.ReadAtLeast({0x1752dc0, 0xc000323920}, {0xc0000faf20, 0x9, 0x9}, 0x9) /opt/hostedtoolcache/go/1.19.9/x64/src/io/io.go:332 +0x9a fp=0xc000079d00 sp=0xc000079cb8 pc=0x471afa io.ReadFull(...) /opt/hostedtoolcache/go/1.19.9/x64/src/io/io.go:351 net/http.http2readFrameHeader({0xc0000faf20?, 0x9?, 0xc000542030?}, {0x1752dc0?, 0xc000323920?}) /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/h2_bundle.go:1565 +0x6e fp=0xc000079d50 sp=0xc000079d00 pc=0x73c32e net/http.(*http2Framer).ReadFrame(0xc0000faee0) /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/h2_bundle.go:1829 +0x95 fp=0xc000079e00 sp=0xc000079d50 pc=0x73cb95 net/http.(*http2clientConnReadLoop).run(0xc000079f98) /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/h2_bundle.go:8874 +0x130 fp=0xc000079f60 sp=0xc000079e00 pc=0x74f670 net/http.(*http2ClientConn).readLoop(0xc000538000) /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/h2_bundle.go:8770 +0x6f fp=0xc000079fc8 sp=0xc000079f60 pc=0x74eb8f net/http.(*http2Transport).newClientConn.func1() /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/h2_bundle.go:7477 +0x26 fp=0xc000079fe0 sp=0xc000079fc8 pc=0x747866 runtime.goexit() /opt/hostedtoolcache/go/1.19.9/x64/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000079fe8 sp=0xc000079fe0 pc=0x465c81 created by net/http.(*http2Transport).newClientConn /opt/hostedtoolcache/go/1.19.9/x64/src/net/http/h2_bundle.go:7477 +0xaaa ```

It also creates a config.lock file which is not getting removed after seg-fault Config file contains only 1 cluster, regular access to the cluster via kubectl work without any noticable issues.

I actually have no clue yet where to start debugging

Environment:

gadinaor-r7 commented 1 year ago

@Nightreaver - v1.14.5 updates an indirect dependency that was directly related to this seg fault .

can you please check against your environment whether this issue is resolved ?

gadinaor-r7 commented 1 year ago

Closing for now