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

getaddressesbyaccount panic #675

Closed
dajohi opened this issue Apr 23, 2017 · 0 comments · Fixed by #678
Closed

getaddressesbyaccount panic #675

dajohi opened this issue Apr 23, 2017 · 0 comments · Fixed by #678
Assignees
Labels
Milestone

Comments

@dajohi
Copy link
Member

dajohi commented Apr 23, 2017

Fresh wallet restored from reseed.

$ dcrctl --wallet getaddressesbyaccount default

13:05:24 2017-04-23 [INF] DCRW: Version 0.8.2-beta+dev (Go version devel +ed2f913b4c Wed Apr 5 14:22:15 2017 +0000)

13:03:58 2017-04-23 [INF] RPCS: RPC method getaddressesbyaccount invoked by client [::1]:28065
2017/04/23 13:03:59 http: panic serving [::1]:28065: runtime error: index out of range
goroutine 7272 [running]:
net/http.(*conn).serve.func1(0xc4206da0a0)
        /home/dhill/git/go/src/net/http/server.go:1721 +0xd0
panic(0xb14ba0, 0x119e4c0)
        /home/dhill/git/go/src/runtime/panic.go:489 +0x25b
github.com/decred/dcrwallet/rpc/legacyrpc.getAddressesByAccount(0xa9d060, 0xc4205d2190, 0xc420148000, 0x0, 0x0, 0xc420072a90, 0xc4209f6380)
        /home/dhill/.go/src/github.com/decred/dcrwallet/rpc/legacyrpc/methods.go:664 +0x31a
github.com/decred/dcrwallet/rpc/legacyrpc.lazyApplyHandler.func3(0xc4200729c0, 0x1166440, 0xc4202b2330)
        /home/dhill/.go/src/github.com/decred/dcrwallet/rpc/legacyrpc/methods.go:241 +0x75
github.com/decred/dcrwallet/rpc/legacyrpc.(*Server).postClientRPC(0xc4200729c0, 0x1165800, 0xc42043e000, 0xc420476400)
        /home/dhill/.go/src/github.com/decred/dcrwallet/rpc/legacyrpc/server.go:642 +0x388
github.com/decred/dcrwallet/rpc/legacyrpc.NewServer.func2(0x1165800, 0xc42043e000, 0xc420476400)
        /home/dhill/.go/src/github.com/decred/dcrwallet/rpc/legacyrpc/server.go:137 +0x21a
net/http.HandlerFunc.ServeHTTP(0xc420010b80, 0x1165800, 0xc42043e000, 0xc420476400)
        /home/dhill/git/go/src/net/http/server.go:1942 +0x44
github.com/decred/dcrwallet/rpc/legacyrpc.throttled.func1(0x1165800, 0xc42043e000, 0xc420476400)
        /home/dhill/.go/src/github.com/decred/dcrwallet/rpc/legacyrpc/server.go:344 +0x1d9
net/http.HandlerFunc.ServeHTTP(0xc4201248a0, 0x1165800, 0xc42043e000, 0xc420476400)
        /home/dhill/git/go/src/net/http/server.go:1942 +0x44
net/http.(*ServeMux).ServeHTTP(0xc420124870, 0x1165800, 0xc42043e000, 0xc420476400)
        /home/dhill/git/go/src/net/http/server.go:2273 +0x130
net/http.serverHandler.ServeHTTP(0xc4200729c0, 0x1165800, 0xc42043e000, 0xc420476400)
        /home/dhill/git/go/src/net/http/server.go:2603 +0x88
net/http.(*conn).serve(0xc4206da0a0, 0x1166380, 0xc42067c400)
        /home/dhill/git/go/src/net/http/server.go:1825 +0x669
created by net/http.(*Server).Serve
        /home/dhill/git/go/src/net/http/server.go:2705 +0x2fe
@jrick jrick self-assigned this Apr 24, 2017
@jrick jrick added the bug label Apr 24, 2017
@jrick jrick added this to the v1.0.0 milestone Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants