Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

gozmqfix panic under go 1.1 #74

Closed
srid opened this Issue · 0 comments

2 participants

Sridhar Ratnakumar Joshua Tacoma
Sridhar Ratnakumar

gozmqfix fails to run for me under go 1.1 and mac.

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x8 pc=0x8464]

goroutine 1 [running]:
main.zmqstruct(0x21031b680, 0x21031ec80)
        /Users/sridharr/go/src/github.com/alecthomas/gozmq/gozmqfix/zmqstruct.go:29 +0x54
main.processFile(0x21031ec80, 0x13, 0x0, 0x0, 0x0, ...)
        /Users/sridharr/go/src/github.com/alecthomas/gozmq/gozmqfix/main.go:154 +0x8e1
main.visitFile(0x21031ec80, 0x13, 0x2102cc190, 0x21031f370, 0x0, ...)
        /Users/sridharr/go/src/github.com/alecthomas/gozmq/gozmqfix/main.go:232 +0x6c
path/filepath.walk(0x21031ec80, 0x13, 0x2102cc190, 0x21031f370, 0x172eb8, ...)
        /usr/local/Cellar/go/1.1/src/pkg/path/filepath/path.go:341 +0x70
path/filepath.walk(0x210317b50, 0xb, 0x2102cc190, 0x21031f1e0, 0x172eb8, ...)
        /usr/local/Cellar/go/1.1/src/pkg/path/filepath/path.go:359 +0x32a
path/filepath.walk(0x210311a18, 0x3, 0x2102cc190, 0x2102cc3c0, 0x172eb8, ...)
        /usr/local/Cellar/go/1.1/src/pkg/path/filepath/path.go:359 +0x32a
path/filepath.walk(0x7fff5fbffb71, 0x1, 0x2102cc190, 0x2102cc1e0, 0x172eb8, ...)
        /usr/local/Cellar/go/1.1/src/pkg/path/filepath/path.go:359 +0x32a
path/filepath.Walk(0x7fff5fbffb71, 0x1, 0x172eb8, 0x2102e0000, 0x2, ...)
        /usr/local/Cellar/go/1.1/src/pkg/path/filepath/path.go:380 +0xb5
main.walkDir(0x7fff5fbffb71, 0x1)
        /Users/sridharr/go/src/github.com/alecthomas/gozmq/gozmqfix/main.go:227 +0x39
main.main()
        /Users/sridharr/go/src/github.com/alecthomas/gozmq/gozmqfix/main.go:89 +0x36d
Joshua Tacoma jtacoma was assigned
Joshua Tacoma jtacoma closed this issue from a commit
Joshua Tacoma jtacoma Fix #74: gozmqfix panic under go 1.1
This panic actually occurs whenever gozmqfix is applied to a package
that imports gozmq without an alias, and is not 1.1 specific.
414f11c
Joshua Tacoma jtacoma closed this in 414f11c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.