Looks like xcode 8.3.x breaks newtmgr with "newtmgr Killed: 9" Confirmed fix seems to be just using -ldflags -s on either go build or go install https://github.com/golang/go/issues/19734
Further when I run I get "cgo argument has Go pointer to Go pointer" Googling seems to indicate maybe it needs refactoring? https://github.com/ry/v8worker/issues/31 Ive tried back to mynewt_1_0_0_b2_tag and it still happens so I think its tied to again either xcode update or maybe a go point release? Jacobs-MacBook-Air:newtmgr jacobrosenthal$ go version go version go1.7.5 darwin/amd64 My xcode is 8.3.2 But I can confirm the listed workaround is to use GODEBUG=cgocheck=0 works but I get (possibly unrelated?) unhandled xpc events as well Jacobs-MacBook-Air:newtmgr jacobrosenthal$ GODEBUG=cgocheck=0 newtmgr -cble image list 2017/04/23 16:28:31 Unhandled event: xpc.Dict{"kCBMsgId":81, "kCBMsgArgs":xpc.Dict{"kCBMsgArgSupervisionTimeout":256, "kCBMsgArgDeviceUUID":xpc.UUID{0x2f, 0xd, 0xcb, 0x60, 0xf, 0x3e, 0x47, 0x52, 0xb7, 0x74, 0x13, 0x29, 0x3a, 0x3, 0xd4, 0xd0}, "kCBMsgArgConnectionInterval":33, "kCBMsgArgConnectionLatency":0}} 2017/04/23 16:28:31 Unhandled event: xpc.Dict{"kCBMsgId":53, "kCBMsgArgs":xpc.Dict{"kCBMsgArgDeviceUUID":xpc.UUID{0x2f, 0xd, 0xcb, 0x60, 0xf, 0x3e, 0x47, 0x52, 0xb7, 0x74, 0x13, 0x29, 0x3a, 0x3, 0xd4, 0xd0}, "kCBMsgArgATTMTU":104}} Images: slot=0 version: 0.0.0 bootable: true flags: active confirmed hash: 22b68129ed7a43bf8b363974f184ea185bec0925a33ec701733148efa52f1512 slot=1 version: 0.0.0 bootable: false flags: hash: b10f6c890e775cf8a07ccc258513c38ba471f6c335ea2ad60e4978ba35fb843b Split status: matching Jacobs-MacBook-Air:newtmgr jacobrosenthal$
Jacobs-MacBook-Air:newtmgr jacobrosenthal$ newtmgr -cble image list panic: runtime error: cgo argument has Go pointer to Go pointer goroutine 1 [running]: panic(0x4539460, 0xc42014e9a0) /usr/local/Cellar/go@1.7/1.7.5/libexec/src/runtime/panic.go:500 +0x1a1 mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc._cgoCheckPointer0(0xc42014e970, 0xc42014e980, 0x1, 0x1, 0xc42014e990) ??:0 +0x59 mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc.XpcConnect(0x45ecc37, 0xf, 0x484a340, 0xc420018600, 0x0) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc/xpc_darwin.go:169 +0x13d mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt.NewDevice(0x4894540, 0x0, 0x0, 0x1, 0x1, 0x0, 0x4876280) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/device_darwin.go:67 +0x25c mynewt.apache.org/newt/newtmgr/transport.(*ConnBLE).Open(0xc4201504b0, 0x48508e0, 0xc420014cd0, 0x0, 0x601, 0x400cc29) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/transport/connble.go:169 +0x1dd mynewt.apache.org/newt/newtmgr/transport.newConn(0x48508e0, 0xc420014cd0, 0x0, 0x0, 0x0, 0xc4201502a0, 0xc42002a288) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/transport/conn.go:110 +0x213 mynewt.apache.org/newt/newtmgr/transport.NewConn(0x48508e0, 0xc420014cd0, 0x3, 0xc420014cd0, 0x0, 0x0) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/transport/conn.go:75 +0x3e mynewt.apache.org/newt/newtmgr/cli.getTargetCmdRunner(0x0, 0x0, 0xc42004bcd8) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/cli/common.go:39 +0x8b mynewt.apache.org/newt/newtmgr/cli.imageStateListCmd(0xc420156000, 0xc42014e820, 0x0, 0x1) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/cli/image.go:86 +0x26 mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).execute(0xc420156000, 0xc42014e810, 0x1, 0x1, 0xc420156000, 0xc42014e810) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:636 +0x443 mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420124240, 0xc4201246c0, 0xc420124480, 0xc42014e580) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:722 +0x367 mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420124240, 0x40d779c, 0xc4200001a0) /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:681 +0x2b main.main() /Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/newtmgr.go:25 +0x2f