Skip to content

Instantly share code, notes, and snippets.

@superkartoffel
Created May 23, 2022 15:48
Show Gist options
  • Save superkartoffel/528d18e0c2182d2fa2b17464f1f442af to your computer and use it in GitHub Desktop.
Save superkartoffel/528d18e0c2182d2fa2b17464f1f442af to your computer and use it in GitHub Desktop.
$ k9s
unexpected fault address 0x0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x563ebff8115f]
goroutine 1 [running]:
runtime.throw({0x563ec18a5428?, 0x30?})
runtime/panic.go:992 +0x71 fp=0xc0005b7030 sp=0xc0005b7000 pc=0x563ebff52791
runtime.sigpanic()
runtime/signal_unix.go:825 +0x305 fp=0xc0005b7080 sp=0xc0005b7030 pc=0x563ebff68705
aeshashbody()
runtime/asm_amd64.s:1343 +0x39f fp=0xc0005b7088 sp=0xc0005b7080 pc=0x563ebff8115f
runtime.mapiternext(0xc000069680)
runtime/map.go:934 +0x2cb fp=0xc0005b70f8 sp=0xc0005b7088 pc=0x563ebff2c2cb
runtime.mapiterinit(0x1?, 0x7?, 0x1?)
runtime/map.go:861 +0x228 fp=0xc0005b7118 sp=0xc0005b70f8 pc=0x563ebff2bfa8
reflect.mapiterinit(0x563ebff30fc6?, 0x7f00773dbc00?, 0x563ec0008ae7?)
runtime/map.go:1373 +0x19 fp=0xc0005b7140 sp=0xc0005b7118 pc=0x563ebff7d319
github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...)
github.com/modern-go/reflect2@v1.0.1/unsafe_map.go:112
github.com/json-iterator/go.(*sortKeysMapEncoder).Encode(0xc0005ad4d0, 0xc0004e2ad8, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_map.go:291 +0x225 fp=0xc0005b72b0 sp=0xc0005b7140 pc=0x563ec03a93e5
github.com/json-iterator/go.(*placeholderEncoder).Encode(0x563ec1f198a0?, 0x1?, 0xc0004e6f78?)
github.com/json-iterator/go@v1.1.11/reflect.go:332 +0x22 fp=0xc0005b72d8 sp=0xc0005b72b0 pc=0x563ec03a2042
github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0002f29f0, 0x563ec1cceb54?, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:110 +0x56 fp=0xc0005b7350 sp=0xc0005b72d8 pc=0x563ec03b6b76
github.com/json-iterator/go.(*structEncoder).Encode(0xc0002f2ba0, 0x2a80?, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:158 +0x765 fp=0xc0005b7438 sp=0xc0005b7350 pc=0x563ec03b7585
github.com/json-iterator/go.(*OptionalEncoder).Encode(0xc0004e6f60?, 0xc0004de280?, 0xc0005b74c8?)
github.com/json-iterator/go@v1.1.11/reflect_optional.go:70 +0xa4 fp=0xc0005b7488 sp=0xc0005b7438 pc=0x563ec03ae744
github.com/json-iterator/go.(*placeholderEncoder).Encode(0x563ec1f198a0?, 0xc000069501?, 0xc0004e6f78?)
github.com/json-iterator/go@v1.1.11/reflect.go:332 +0x22 fp=0xc0005b74b0 sp=0xc0005b7488 pc=0x563ec03a2042
github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0007a2090, 0x563ec1d346a7?, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:110 +0x56 fp=0xc0005b7528 sp=0xc0005b74b0 pc=0x563ec03b6b76
github.com/json-iterator/go.(*structEncoder).Encode(0xc0007a2150, 0xc0004dcc30?, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:158 +0x765 fp=0xc0005b7610 sp=0xc0005b7528 pc=0x563ec03b7585
github.com/json-iterator/go.(*placeholderEncoder).Encode(0x563ec1f198a0?, 0x563ec03b6301?, 0xc0004e6f78?)
github.com/json-iterator/go@v1.1.11/reflect.go:332 +0x22 fp=0xc0005b7638 sp=0xc0005b7610 pc=0x563ec03a2042
github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0007a23c0, 0x563ec1ccea64?, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:110 +0x56 fp=0xc0005b76b0 sp=0xc0005b7638 pc=0x563ec03b6b76
github.com/json-iterator/go.(*structEncoder).Encode(0xc0007a2420, 0x563ec1e64600?, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:158 +0x765 fp=0xc0005b7798 sp=0xc0005b76b0 pc=0x563ec03b7585
github.com/json-iterator/go.(*sliceEncoder).Encode(0xc0004e30c8, 0xc0004e8688, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_slice.go:38 +0x2bd fp=0xc0005b7850 sp=0xc0005b7798 pc=0x563ec03af19d
github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc0007a2f60, 0x563ec1cd86a2?, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:110 +0x56 fp=0xc0005b78c8 sp=0xc0005b7850 pc=0x563ec03b6b76
github.com/json-iterator/go.(*structEncoder).Encode(0xc0007a3050, 0x0?, 0xc0004e6f60)
github.com/json-iterator/go@v1.1.11/reflect_struct_encoder.go:158 +0x765 fp=0xc0005b79b0 sp=0xc0005b78c8 pc=0x563ec03b7585
github.com/json-iterator/go.(*OptionalEncoder).Encode(0xc0001e15e0?, 0x0?, 0x0?)
github.com/json-iterator/go@v1.1.11/reflect_optional.go:70 +0xa4 fp=0xc0005b7a00 sp=0xc0005b79b0 pc=0x563ec03ae744
github.com/json-iterator/go.(*onePtrEncoder).Encode(0xc000304550, 0xc0004e8630, 0xc0007a3500?)
github.com/json-iterator/go@v1.1.11/reflect.go:219 +0x82 fp=0xc0005b7a38 sp=0xc0005b7a00 pc=0x563ec03a1602
github.com/json-iterator/go.(*Stream).WriteVal(0xc0004e6f60, {0x563ec1ff0b20, 0xc0004e8630})
github.com/json-iterator/go@v1.1.11/reflect.go:98 +0x158 fp=0xc0005b7aa8 sp=0xc0005b7a38 pc=0x563ec03a0918
github.com/json-iterator/go.(*frozenConfig).Marshal(0xc0001e15e0, {0x563ec1ff0b20, 0xc0004e8630})
github.com/json-iterator/go@v1.1.11/config.go:299 +0xc9 fp=0xc0005b7b40 sp=0xc0005b7aa8 pc=0x563ec0397129
k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).doEncode(0x563ec1ca1e5e?, {0x563ec2213f58?, 0xc0004e8630?}, {0x563ec2207f88, 0xc00087c660})
k8s.io/apimachinery@v0.22.3/pkg/runtime/serializer/json/json.go:306 +0x6d fp=0xc0005b7bd8 sp=0xc0005b7b40 pc=0x563ec081c5cd
k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).Encode(0xc000331d60, {0x563ec2213f58, 0xc0004e8630}, {0x563ec2207f88, 0xc00087c660})
k8s.io/apimachinery@v0.22.3/pkg/runtime/serializer/json/json.go:301 +0xfc fp=0xc0005b7c38 sp=0xc0005b7bd8 pc=0x563ec081c4fc
k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).doEncode(0xc0003fa0a0, {0x563ec2213f08?, 0xc0004e6ea0}, {0x563ec2207f88, 0xc00087c660})
k8s.io/apimachinery@v0.22.3/pkg/runtime/serializer/versioning/versioning.go:244 +0x8fa fp=0xc0005b7f90 sp=0xc0005b7c38 pc=0x563ec082b1ba
k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).Encode(0xc0003fa0a0, {0x563ec2213f08, 0xc0004e6ea0}, {0x563ec2207f88, 0xc00087c660})
k8s.io/apimachinery@v0.22.3/pkg/runtime/serializer/versioning/versioning.go:184 +0x106 fp=0xc0005b7ff0 sp=0xc0005b7f90 pc=0x563ec082a866
k8s.io/apimachinery/pkg/runtime.Encode({0x7f006eda0ac0, 0xc0003fa0a0}, {0x563ec2213f08, 0xc0004e6ea0})
k8s.io/apimachinery@v0.22.3/pkg/runtime/codec.go:50 +0x64 fp=0xc0005b8030 sp=0xc0005b7ff0 pc=0x563ec0411904
k8s.io/client-go/tools/clientcmd.Write(...)
k8s.io/client-go@v0.22.3/tools/clientcmd/loader.go:466
k8s.io/client-go/tools/clientcmd.WriteToFile({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0xc0009f4300}, 0xc0009f4330, 0xc0009f4360, 0xc0009f4390, {0xc0004d3e50, ...}, ...}, ...)
k8s.io/client-go@v0.22.3/tools/clientcmd/loader.go:419 +0xa8 fp=0xc0005b80a8 sp=0xc0005b8030 pc=0x563ec0fed2a8
k8s.io/client-go/tools/clientcmd.ModifyConfig({0x563ec2227740, 0xc00059eaa0}, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0xc0009f4de0}, 0xc0009f4e10, 0xc0009f4e40, ...}, ...)
k8s.io/client-go@v0.22.3/tools/clientcmd/config.go:290 +0xcf8 fp=0xc0005b87d0 sp=0xc0005b80a8 pc=0x563ec0fe97d8
k8s.io/client-go/tools/clientcmd.(*persister).Persist(0xc000373de0, 0xc0004d4210)
k8s.io/client-go@v0.22.3/tools/clientcmd/config.go:373 +0x11a fp=0xc0005b88c0 sp=0xc0005b87d0 pc=0x563ec0fea17a
k8s.io/client-go/plugin/pkg/client/auth/azure.(*azureTokenSource).storeTokenInCfg(0xc000069c00, 0xc0004e8420)
k8s.io/client-go@v0.22.3/plugin/pkg/client/auth/azure/azure.go:353 +0x3ae fp=0xc0005b8930 sp=0xc0005b88c0 pc=0x563ec188eece
k8s.io/client-go/plugin/pkg/client/auth/azure.(*azureTokenSource).Token(0xc000069c00)
k8s.io/client-go@v0.22.3/plugin/pkg/client/auth/azure/azure.go:277 +0x585 fp=0xc0005b8b98 sp=0xc0005b8930 pc=0x563ec188dfc5
k8s.io/client-go/plugin/pkg/client/auth/azure.(*azureRoundTripper).RoundTrip(0xc00081e6a0, 0xc0002c7a00)
k8s.io/client-go@v0.22.3/plugin/pkg/client/auth/azure/azure.go:161 +0x6f fp=0xc0005b8d00 sp=0xc0005b8b98 pc=0x563ec188d50f
k8s.io/client-go/transport.(*userAgentRoundTripper).RoundTrip(0xc00081e6c0, 0xc0002c7800)
k8s.io/client-go@v0.22.3/transport/round_trippers.go:160 +0x322 fp=0xc0005b8df8 sp=0xc0005b8d00 pc=0x563ec0c1d3a2
net/http.send(0xc0002c7700, {0x563ec220b4a8, 0xc00081e6c0}, {0x563ec2167500?, 0x563ebffe4801?, 0x563ec345cb60?})
net/http/client.go:252 +0x5d8 fp=0xc0005b8fd8 sp=0xc0005b8df8 pc=0x563ec026a018
net/http.(*Client).send(0xc000811bc0, 0xc0002c7700, {0x7f00758f4410?, 0xf8?, 0x563ec345cb60?})
net/http/client.go:176 +0x9b fp=0xc0005b9050 sp=0xc0005b8fd8 pc=0x563ec026989b
net/http.(*Client).do(0xc000811bc0, 0xc0002c7700)
net/http/client.go:725 +0x8f5 fp=0xc0005b9250 sp=0xc0005b9050 pc=0x563ec026bd95
net/http.(*Client).Do(...)
net/http/client.go:593
k8s.io/client-go/rest.(*Request).request(0xc0002c7500, {0x563ec2224230, 0xc0000b5500}, 0x1?)
k8s.io/client-go@v0.22.3/rest/request.go:980 +0x419 fp=0xc0005b9358 sp=0xc0005b9250 pc=0x563ec0c41bd9
k8s.io/client-go/rest.(*Request).Do(0x0?, {0x563ec22241f8?, 0xc000132008?})
k8s.io/client-go@v0.22.3/rest/request.go:1038 +0xc7 fp=0xc0005b9408 sp=0xc0005b9358 pc=0x563ec0c42607
k8s.io/client-go/discovery.(*DiscoveryClient).ServerGroups(0xc00081e720)
k8s.io/client-go@v0.22.3/discovery/discovery_client.go:160 +0xae fp=0xc0005b9680 sp=0xc0005b9408 pc=0x563ec0c4848e
k8s.io/client-go/discovery/cached/disk.(*CachedDiscoveryClient).ServerGroups(0xc000069c80)
k8s.io/client-go@v0.22.3/discovery/cached/disk/cached_discovery.go:119 +0x17e fp=0xc0005b9790 sp=0xc0005b9680 pc=0x563ec0c5c49e
github.com/derailed/k9s/internal/client.(*APIClient).supportsMetricsResources(0xc0003e6690)
github.com/derailed/k9s/internal/client/client.go:450 +0x16f fp=0xc0005b9980 sp=0xc0005b9790 pc=0x563ec101bf0f
github.com/derailed/k9s/internal/client.InitConnection(0xc0003b3960)
github.com/derailed/k9s/internal/client/client.go:64 +0x11b fp=0xc0005b9a50 sp=0xc0005b9980 pc=0x563ec10191fb
github.com/derailed/k9s/cmd.loadConfiguration()
github.com/derailed/k9s/cmd/root.go:117 +0x5da fp=0xc0005b9b28 sp=0xc0005b9a50 pc=0x563ec18760ba
github.com/derailed/k9s/cmd.run(0x563ec336c820?, {0x563ec18a3f54?, 0x0?, 0x0?})
github.com/derailed/k9s/cmd/root.go:79 +0x2e6 fp=0xc0005b9da8 sp=0xc0005b9b28 pc=0x563ec18758a6
github.com/spf13/cobra.(*Command).execute(0x563ec336c820, {0xc0001181e0, 0x0, 0x0})
github.com/spf13/cobra@v1.2.1/command.go:860 +0x663 fp=0xc0005b9e80 sp=0xc0005b9da8 pc=0x563ec0ffc5e3
github.com/spf13/cobra.(*Command).ExecuteC(0x563ec336c820)
github.com/spf13/cobra@v1.2.1/command.go:974 +0x3b4 fp=0xc0005b9f38 sp=0xc0005b9e80 pc=0x563ec0ffccf4
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.2.1/command.go:902
github.com/derailed/k9s/cmd.Execute()
github.com/derailed/k9s/cmd/root.go:49 +0x25 fp=0xc0005b9f70 sp=0xc0005b9f38 pc=0x563ec1875285
main.main()
./main.go:29 +0x17 fp=0xc0005b9f80 sp=0xc0005b9f70 pc=0x563ec18a0a77
runtime.main()
runtime/proc.go:250 +0x213 fp=0xc0005b9fe0 sp=0xc0005b9f80 pc=0x563ebff551d3
runtime.goexit()
runtime/asm_amd64.s:1571 +0x1 fp=0xc0005b9fe8 sp=0xc0005b9fe0 pc=0x563ebff83de1
goroutine 19 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x0?)
k8s.io/klog/v2@v2.30.0/klog.go:1181 +0x6a
created by k8s.io/klog/v2.init.0
k8s.io/klog/v2@v2.30.0/klog.go:420 +0xf6
goroutine 9 [select]:
net/http.setRequestCancel.func4()
net/http/client.go:398 +0x8b
created by net/http.setRequestCancel
net/http/client.go:397 +0x439
goroutine 16 [IO wait]:
internal/poll.runtime_pollWait(0x7f00758f0728, 0x72)
runtime/netpoll.go:302 +0x89
internal/poll.(*pollDesc).wait(0xc000813b00?, 0xc000143500?, 0x0)
internal/poll/fd_poll_runtime.go:83 +0x32
internal/poll.(*pollDesc).waitRead(...)
internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Read(0xc000813b00, {0xc000143500, 0x1482, 0x1482})
internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc000813b00, {0xc000143500?, 0xc0000a8420?, 0xc00014350d?})
net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc0000107e8, {0xc000143500?, 0x563ec01e88ea?, 0x1003ebff298c5?})
net/net.go:183 +0x45
crypto/tls.(*atLeastReader).Read(0xc0004e2048, {0xc000143500?, 0x0?, 0xc00009f878?})
crypto/tls/conn.go:784 +0x3d
bytes.(*Buffer).ReadFrom(0xc00080e978, {0x563ec22080e8, 0xc0004e2048})
bytes/buffer.go:204 +0x98
crypto/tls.(*Conn).readFromUntil(0xc00080e700, {0x563ec220bb68?, 0xc0000107e8}, 0x563ebff30fc6?)
crypto/tls/conn.go:806 +0xe5
crypto/tls.(*Conn).readRecordOrCCS(0xc00080e700, 0x0)
crypto/tls/conn.go:613 +0x116
crypto/tls.(*Conn).readRecord(...)
crypto/tls/conn.go:581
crypto/tls.(*Conn).Read(0xc00080e700, {0xc0001e7000, 0x1000, 0x1?})
crypto/tls/conn.go:1284 +0x16f
net/http.(*persistConn).Read(0xc00081cfc0, {0xc0001e7000?, 0xc000055980?, 0xc00009fd30?})
net/http/transport.go:1929 +0x4e
bufio.(*Reader).fill(0xc0009e69c0)
bufio/bufio.go:106 +0x103
bufio.(*Reader).Peek(0xc0009e69c0, 0x1)
bufio/bufio.go:144 +0x5d
net/http.(*persistConn).readLoop(0xc00081cfc0)
net/http/transport.go:2093 +0x1ac
created by net/http.(*Transport).dialConn
net/http/transport.go:1750 +0x173e
goroutine 50 [select]:
net/http.(*persistConn).writeLoop(0xc00081cfc0)
net/http/transport.go:2392 +0xf5
created by net/http.(*Transport).dialConn
net/http/transport.go:1751 +0x1791
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment