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

Running GO server crashes #3

Open
afurmanov opened this issue Mar 27, 2014 · 0 comments
Open

Running GO server crashes #3

afurmanov opened this issue Mar 27, 2014 · 0 comments

Comments

@afurmanov
Copy link

On my machine the stack is (when accessing http://localhost:3001/):

2014/03/26 21:39:20 http: panic serving [::1]:65509: runtime error: index out of range
goroutine 4 [running]:
net/http.func·007()
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1022 +0xac
main.httpHandler(0xc20009db40, 0xc2000b35b0, 0xc20009e410)
    /Users/nbdev/w/lang_bench/go/app.go:21 +0x3e0
net/http.HandlerFunc.ServeHTTP(0x267798, 0xc20009db40, 0xc2000b35b0, 0xc20009e410)
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1149 +0x3e
net/http.(*ServeMux).ServeHTTP(0xc20009b450, 0xc20009db40, 0xc2000b35b0, 0xc20009e410)
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1416 +0x11d
net/http.serverHandler.ServeHTTP(0xc200098410, 0xc20009db40, 0xc2000b35b0, 0xc20009e410)
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1517 +0x16c
net/http.(*conn).serve(0xc2000b2120)
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1096 +0x765
created by net/http.(*Server).Serve
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1564 +0x266
2014/03/26 21:39:22 http: panic serving [::1]:65510: runtime error: index out of range
goroutine 5 [running]:
net/http.func·007()
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1022 +0xac
main.httpHandler(0xc20009db40, 0xc2000b37e0, 0xc20009e4e0)
    /Users/nbdev/w/lang_bench/go/app.go:21 +0x3e0
net/http.HandlerFunc.ServeHTTP(0x267798, 0xc20009db40, 0xc2000b37e0, 0xc20009e4e0)
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1149 +0x3e
net/http.(*ServeMux).ServeHTTP(0xc20009b450, 0xc20009db40, 0xc2000b37e0, 0xc20009e4e0)
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1416 +0x11d
net/http.serverHandler.ServeHTTP(0xc200098410, 0xc20009db40, 0xc2000b37e0, 0xc20009e4e0)
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1517 +0x16c
net/http.(*conn).serve(0xc2000b2240)
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1096 +0x765
created by net/http.(*Server).Serve
    /usr/local/Cellar/go/1.1.2/libexec/src/pkg/net/http/server.go:1564 +0x266


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

1 participant