Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: cgo argument has Go pointer to Go pointer #69

Closed
rahulsom opened this issue Sep 14, 2016 · 1 comment
Closed

panic: runtime error: cgo argument has Go pointer to Go pointer #69

rahulsom opened this issue Sep 14, 2016 · 1 comment

Comments

@rahulsom
Copy link

I'm running on go 1.7.1, and when I try to run devd with livereload, I get this error.

# rahul @ cds-rahulretina in ~/Documents/ad [9:41:07] C:2
$ go version
go version go1.7.1 darwin/amd64

# rahul @ cds-rahulretina in ~/Documents/ad [9:41:10] 
$ devd -ol .
panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 1 [running]:
panic(0x440e9e0, 0xc420594020)
    /usr/local/Cellar/go/1.7.1/libexec/src/runtime/panic.go:500 +0x1a1
github.com/rjeczalik/notify.(*stream).Start(0xc4204d7a80, 0xc4204d7a80, 0xc42057e3f0)
    /Users/rahul/go/src/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:131 +0x1e4
github.com/rjeczalik/notify.(*fsevents).watch(0xc420509f20, 0xc420501e80, 0x19, 0x100001b00, 0x440bd00, 0xc42057e3c0)
    /Users/rahul/go/src/github.com/rjeczalik/notify/watcher_fsevents.go:206 +0x299
github.com/rjeczalik/notify.(*fsevents).RecursiveWatch(0xc420509f20, 0xc420501e80, 0x19, 0x1b0000001b00, 0x0, 0xc4204cf860)
    /Users/rahul/go/src/github.com/rjeczalik/notify/watcher_fsevents.go:258 +0x4f
go.(*struct { github.com/rjeczalik/notify.watcher; github.com/rjeczalik/notify.recursiveWatcher }).RecursiveWatch(0xc420501620, 0xc420501e80, 0x19, 0xc400001b00, 0xc4204cf860, 0x201b00)
    <autogenerated>:50 +0x66
github.com/rjeczalik/notify.(*recursiveTree).Watch(0xc42050c370, 0xc420501e80, 0x19, 0xc4204cf860, 0xc42055a7e4, 0x1, 0x1, 0x0, 0x0)
    /Users/rahul/go/src/github.com/rjeczalik/notify/tree_recursive.go:286 +0xe5d
github.com/rjeczalik/notify.Watch(0xc42055a7e0, 0x3, 0xc4204cf860, 0xc42055a7e4, 0x1, 0x1, 0x46aa500, 0xc4204cf800)
    /Users/rahul/go/src/github.com/rjeczalik/notify/notify.go:64 +0x78
github.com/cortesi/modd.Watch(0xc42055a7c0, 0x1, 0x1, 0x0, 0x0, 0x0, 0xbebc200, 0xc4204cf800, 0x400f2f1, 0xc42057d550)
    /Users/rahul/go/src/github.com/cortesi/modd/modd.go:286 +0x147
github.com/cortesi/devd.Route.Watch(0x0, 0x0, 0x44866c6, 0x1, 0x467c7a0, 0xc42055a590, 0xc4204cf7a0, 0x0, 0x0, 0x0, ...)
    /Users/rahul/go/src/github.com/cortesi/devd/watch.go:19 +0x143
github.com/cortesi/devd.WatchRoutes(0xc4205075c0, 0x467c820, 0xc4204d7a00, 0x0, 0x0, 0x0, 0x4682c00, 0xc420501c80, 0xc4204d79c0, 0x46aa500)
    /Users/rahul/go/src/github.com/cortesi/devd/watch.go:55 +0x168
github.com/cortesi/devd.(*Devd).Router(0xc42008d780, 0x4682c00, 0xc420501c80, 0xc420507740, 0x200000003, 0xc420020a00, 0xc4200001a0, 0xc420057868)
    /Users/rahul/go/src/github.com/cortesi/devd/server.go:255 +0x6e4
github.com/cortesi/devd.(*Devd).Serve(0xc42008d780, 0x448b0f9, 0x9, 0x0, 0x0, 0x0, 0x4682c00, 0xc420501c80, 0xc42057dcf0, 0x28, ...)
    /Users/rahul/go/src/github.com/cortesi/devd/server.go:289 +0x156
main.main()
    /Users/rahul/go/src/github.com/cortesi/devd/cmd/devd/devd.go:214 +0x2766

Is there a compatibility restriction?

@cortesi
Copy link
Owner

cortesi commented Sep 22, 2016

Hi Rahul, I believe you're seeing this issue in the notify library:

rjeczalik/notify#90

Since this has been fixed for a while now, this must mean you have a stale installation of rjeczalik/notify. Upgrade that, and you should be good to go.

@cortesi cortesi closed this as completed Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants