rackspace / rack

A CLI for Rackspace (unmaintained)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rack does not work on OS X High Sierra

spiralman opened this issue · comments

I just downloaded the latest build of rack following the instructions here: https://developer.rackspace.com/docs/rack-cli/

Upon running the command with no arguments, I get the following stack trace:

failed MSpanList_Insert 0x9e0000 0x1cc20c41362df 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.throw(0x8b022b)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/panic.go:491 +0xad fp=0x7ffeefbfdbf0 sp=0x7ffeefbfdbc0
runtime.MSpanList_Insert(0x8e0a48, 0x9e0000)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mheap.c:692 +0x8f fp=0x7ffeefbfdc18 sp=0x7ffeefbfdbf0
MHeap_FreeSpanLocked(0x8dd640, 0x9e0000, 0x100)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mheap.c:583 +0x163 fp=0x7ffeefbfdc58 sp=0x7ffeefbfdc18
MHeap_Grow(0x8dd640, 0x8, 0x0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mheap.c:420 +0x1a8 fp=0x7ffeefbfdc98 sp=0x7ffeefbfdc58
MHeap_AllocSpanLocked(0x8dd640, 0x1, 0x0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mheap.c:298 +0x365 fp=0x7ffeefbfdcd8 sp=0x7ffeefbfdc98
mheap_alloc(0x8dd640, 0x1, 0x12, 0x0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mheap.c:190 +0x121 fp=0x7ffeefbfdd00 sp=0x7ffeefbfdcd8
runtime.MHeap_Alloc(0x8dd640, 0x1, 0x10000000012, 0x158a9)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mheap.c:240 +0x66 fp=0x7ffeefbfdd38 sp=0x7ffeefbfdd00
MCentral_Grow(0x8e53b8, 0x0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mcentral.c:197 +0x8b fp=0x7ffeefbfdda0 sp=0x7ffeefbfdd38
runtime.MCentral_CacheSpan(0x8e53b8, 0x0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mcentral.c:85 +0x167 fp=0x7ffeefbfddd8 sp=0x7ffeefbfdda0
runtime.MCache_Refill(0x9dc000, 0x12, 0x0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/mcache.c:90 +0xa0 fp=0x7ffeefbfde00 sp=0x7ffeefbfddd8
runtime.mcacheRefill_m()
	/home/travis/.gimme/versions/go1.4.src/src/runtime/malloc.c:368 +0x57 fp=0x7ffeefbfde20 sp=0x7ffeefbfde00
runtime.onM(0x6d63c0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/asm_amd64.s:273 +0x9a fp=0x7ffeefbfde28 sp=0x7ffeefbfde20
runtime.mallocgc(0x120, 0x5a0700, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/malloc.go:178 +0x849 fp=0x7ffeefbfded8 sp=0x7ffeefbfde28
runtime.newobject(0x5a0700, 0x9dc000)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/malloc.go:353 +0x49 fp=0x7ffeefbfdf00 sp=0x7ffeefbfded8
runtime.newG(0x2fd6a)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/proc.go:233 +0x2a fp=0x7ffeefbfdf18 sp=0x7ffeefbfdf00
allocg(0x8cce00)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/proc.c:925 +0x1f fp=0x7ffeefbfdf28 sp=0x7ffeefbfdf18
runtime.malg(0x8000, 0x8ccfc0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/proc.c:2106 +0x1f fp=0x7ffeefbfdf58 sp=0x7ffeefbfdf28
runtime.mpreinit(0x8cd5e0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/os_darwin.c:137 +0x27 fp=0x7ffeefbfdf70 sp=0x7ffeefbfdf58
mcommoninit(0x8cd5e0)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/proc.c:201 +0xc9 fp=0x7ffeefbfdf98 sp=0x7ffeefbfdf70
runtime.schedinit()
	/home/travis/.gimme/versions/go1.4.src/src/runtime/proc.c:138 +0x55 fp=0x7ffeefbfdfc0 sp=0x7ffeefbfdf98
runtime.rt0_go(0x7ffeefbfdff8, 0x1, 0x7ffeefbfdff8, 0x0, 0x0, 0x1, 0x7ffeefbfe370, 0x0, 0x7ffeefbfe375, 0x7ffeefbfe390, ...)
	/home/travis/.gimme/versions/go1.4.src/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ffeefbfdfc8 sp=0x7ffeefbfdfc0

After searching for this issue, it seems like this is a common occurrence after switching to High Sierra, and the binary needs to be re-built using a version of Go with High Sierra support. (see, as an example: golang/go#20888)

I'm assuming this is a dead project given the length of time and lack of response since this comment? It still doesn't work on High Sierra.

@lukebennett FYI, rack does work correctly in High Sierra, it just needs to be re-compiled; I was able to fix the issue by installing via homebrew, instead of downloading the pre-compiled binary from Rackspace.

I had it installed via homebrew already, and had already checked for any updates. The error I had was different to your go one, it was a memory issue - segmentation fault: 11 - so I assumed it was still broken.

However, I've just tried removing via homebrew and reinstalling and it's working now 👍

I ran into this myself on macOS Catalina by downloading the rack binary via Rackspace's documentation found here.

As mentioned above however, it does work when installed via Brew (brew install rack). We should either look to fix the version available on the rack CDN which looks to be 1.2-dev vs 1.2. Ideally we shouldn't be running a dev versions either!

rack version 1.2-dev
commit: 09c14b061f4a115c8f1ff07ae6be96d9b11e08df