Skip to content

Instantly share code, notes, and snippets.

@morenoh149
Created June 20, 2018 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morenoh149/0cbbe83341a0d4836280d4fabe59b047 to your computer and use it in GitHub Desktop.
Save morenoh149/0cbbe83341a0d4836280d4fabe59b047 to your computer and use it in GitHub Desktop.
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: foo
server: https://bar
name: baz
contexts:
- context:
cluster: baz
user: baz
name: baz
current-context: baz
kind: Config
preferences: {}
users:
- name: baz
user:
auth-provider:
config:
cmd-args: config config-helper --format=json
cmd-path: /Users/foo
expiry-key: '{.credential.token_expiry}'
token-key: '{.credential.access_token}'
name: gcp
$ ○ kubectl version
failed MSpanList_Insert 0xd97000 0x4b68ec567b20 0x0
fatal error: MSpanList_Insert
runtime stack:
runtime.throw(0xc39c0b)
/usr/src/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbfed20 sp=0x7ffeefbfecf0
runtime.MSpanList_Insert(0xc67168, 0xd97000)
/usr/src/go/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbfed48 sp=0x7ffeefbfed20
MHeap_FreeSpanLocked(0xc63d60, 0xd97000, 0x100)
/usr/src/go/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbfed88 sp=0x7ffeefbfed48
MHeap_Grow(0xc63d60, 0x8, 0x0)
/usr/src/go/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbfedc8 sp=0x7ffeefbfed88
MHeap_AllocSpanLocked(0xc63d60, 0x1, 0x0)
/usr/src/go/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbfee08 sp=0x7ffeefbfedc8
mheap_alloc(0xc63d60, 0x1, 0x12, 0x0)
/usr/src/go/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbfee30 sp=0x7ffeefbfee08
runtime.MHeap_Alloc(0xc63d60, 0x1, 0x10000000012, 0xcf39)
/usr/src/go/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbfee68 sp=0x7ffeefbfee30
MCentral_Grow(0xc6bad8, 0x0)
/usr/src/go/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbfeed0 sp=0x7ffeefbfee68
runtime.MCentral_CacheSpan(0xc6bad8, 0x0)
/usr/src/go/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbfef08 sp=0x7ffeefbfeed0
runtime.MCache_Refill(0xd93000, 0x12, 0x0)
/usr/src/go/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbfef30 sp=0x7ffeefbfef08
runtime.mcacheRefill_m()
/usr/src/go/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbfef50 sp=0x7ffeefbfef30
runtime.onM(0x9dbc20)
/usr/src/go/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbfef58 sp=0x7ffeefbfef50
runtime.mallocgc(0x120, 0x80b000, 0x0, 0x0)
/usr/src/go/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbff008 sp=0x7ffeefbfef58
runtime.newobject(0x80b000, 0xd93000)
/usr/src/go/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbff030 sp=0x7ffeefbff008
runtime.newG(0x26dea)
/usr/src/go/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbff048 sp=0x7ffeefbff030
allocg(0xc51560)
/usr/src/go/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbff058 sp=0x7ffeefbff048
runtime.malg(0x8000, 0xc517e0)
/usr/src/go/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbff088 sp=0x7ffeefbff058
runtime.mpreinit(0xc52180)
/usr/src/go/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbff0a0 sp=0x7ffeefbff088
mcommoninit(0xc52180)
/usr/src/go/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbff0c8 sp=0x7ffeefbff0a0
runtime.schedinit()
/usr/src/go/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbff0f0 sp=0x7ffeefbff0c8
runtime.rt0_go(0x7ffeefbff120, 0x2, 0x7ffeefbff120, 0x0, 0x2, 0x7ffeefbff330, 0x7ffeefbff338, 0x0, 0x7ffeefbff340, 0x7ffeefbff374, ...)
/usr/src/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbff0f8 sp=0x7ffeefbff0f0
@morenoh149
Copy link
Author

This is definitely caused by older versions of go running on osx.
For me I removed older versions of go I had installed via brew, you can see all go's on your system by doing

which -a go

make sure you only have one and it's a recent version.

Next you should reinstall the tool gcloud components install kubectl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment