[
https://issues.apache.org/jira/browse/MYNEWT-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049631#comment-16049631
]
Jacob commented on MYNEWT-755:
------------------------------
Last login: Sun Jun 11 16:22:02 on ttys007
Jacobs-MacBook-Air:~ jacobrosenthal$ cd $GOPATH
Jacobs-MacBook-Air:go jacobrosenthal$ cd src/mynewt.apache.org/newt/
Jacobs-MacBook-Air:newt jacobrosenthal$ git branch
image_erase
* master
newtmgr-erase
Jacobs-MacBook-Air:newt jacobrosenthal$ git pull origin master
remote: Counting objects: 29, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 29 (delta 20), reused 23 (delta 14), pack-reused 0
Unpacking objects: 100% (29/29), done.
>From https://github.com/apache/incubator-mynewt-newt
* branch master -> FETCH_HEAD
97bb88d6..cd248f80 master -> origin/master
Updating 97bb88d6..cd248f80
Fast-forward
newt/cli/image_cmds.go | 60 ++++++++++++++++++++++++++++++++++++++++++++
newt/cli/run_cmds.go | 9 +++----
newt/image/image.go | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 131 insertions(+), 5 deletions(-)
Jacobs-MacBook-Air:newt jacobrosenthal$ cd newt
Jacobs-MacBook-Air:newt jacobrosenthal$ go install
Jacobs-MacBook-Air:newt jacobrosenthal$ cd ../newtmgr/
Jacobs-MacBook-Air:newtmgr jacobrosenthal$ go install
Jacobs-MacBook-Air:newtmgr jacobrosenthal$ pwd
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr
Jacobs-MacBook-Air:newtmgr jacobrosenthal$ newtmgr
Newtmgr helps you manage remote devices running the Mynewt OS
Usage:
newtmgr [flags]
newtmgr [command]
Available Commands:
config Read or write a config value on a device
conn Manage newtmgr connection profiles
crash Send a crash command to a device
datetime Manage datetime on a device
echo Send data to a device and display the echoed back data
fs Access files on a device
image Manage images on a device
log Manage logs on a device
mpstats Read memory pool statistics from a device
reset Send reset request to a device
run Run test procedures on a device
stat Read statistics from a device
taskstats Read task statistics from a device
Flags:
-c, --conn string connection profile to use
-h, --help Help for newtmgr commands
-l, --loglevel string log level to use (default "info")
-t, --trace print all bytes transmitted and received
Use "newtmgr [command] --help" for more information about a command.
Jacobs-MacBook-Air:newtmgr jacobrosenthal$ newtmgr image list -cnimble_bleprph
panic: runtime error: cgo argument has Go pointer to Go pointer
goroutine 1 [running]:
mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc.XpcConnect.func2(0x4b00120,
0xc420149290, 0x4b00120)
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc/xpc_darwin.go:169
+0xaf
mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc.XpcConnect(0x4627b26,
0xf, 0x48973c0, 0xc420144300, 0x0)
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/xpc/xpc_darwin.go:169
+0xc2
mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt.NewDevice(0x48f1580,
0x0, 0x0, 0x1, 0x1, 0x0, 0x48d3240)
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/device_darwin.go:67
+0x239
mynewt.apache.org/newt/newtmgr/transport.(*ConnBLE).Open(0xc42012e660,
0x489dec0, 0xc42013c230, 0x0, 0x7fff5fbffbad, 0xe)
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/transport/connble.go:169
+0x1ce
mynewt.apache.org/newt/newtmgr/transport.newConn(0x489dec0, 0xc42013c230, 0x0,
0x0, 0x0, 0xc42012e420, 0xc420132050)
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/transport/conn.go:110
+0x230
mynewt.apache.org/newt/newtmgr/transport.NewConn(0x489dec0, 0xc42013c230, 0xe,
0xc42013c230, 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, 0xc42010dd18)
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/cli/common.go:39
+0x8b
mynewt.apache.org/newt/newtmgr/cli.imageStateListCmd(0xc420151d40,
0xc420149120, 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(0xc420151d40,
0xc420149110, 0x1, 0x1, 0xc420151d40, 0xc420149110)
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:636
+0x231
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420150000,
0xc4201518c0, 0xc420151200, 0xc420148e80)
/Users/jacobrosenthal/dev/go/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:722
+0x339
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420150000,
0xc4200001a0, 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
Jacobs-MacBook-Air:newtmgr jacobrosenthal$
Jacobs-MacBook-Air:newtmgr jacobrosenthal$ go version
go version go1.8.1 darwin/amd64
> newtmgr panic: runtime error: cgo argument has Go pointer to Go pointer
> -----------------------------------------------------------------------
>
> Key: MYNEWT-755
> URL: https://issues.apache.org/jira/browse/MYNEWT-755
> Project: Mynewt
> Issue Type: Bug
> Security Level: Public(Viewable by anyone)
> Components: Newtmgr
> Reporter: Jacob
> Assignee: Christopher Collins
> Fix For: v1_1_0_rel
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)