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

0.99.1 http: panic serving 127.0.0.1:55536: runtime error: invalid memory address or nil pointer dereference #1119

Closed
twu2 opened this issue Oct 24, 2019 · 0 comments
Assignees
Milestone

Comments

@twu2
Copy link

twu2 commented Oct 24, 2019

AdGuardHome 0.99.1 Linux x64.
for empty users setting, it will cause http server panic
same setting rollback to 0.99.0 work fine.
for 0.99.1 version, add user/password setting will avoid this bug.

here is the log.

Oct 25 01:14:59 mail AdGuardHome[3368191]: 2019/10/25 01:14:59 http: panic serving 127.0.0.1:55536: runtime error: invalid memory address or nil pointer dereference
Oct 25 01:14:59 mail AdGuardHome[3368191]: goroutine 595 [running]:
Oct 25 01:14:59 mail AdGuardHome[3368191]: net/http.(*conn).serve.func1(0xc002e9e5a0)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/.gimme/versions/go1.12.12.linux.amd64/src/net/http/server.go:1769 +0x139
Oct 25 01:14:59 mail AdGuardHome[3368191]: panic(0xa3d7c0, 0x1206f30)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/.gimme/versions/go1.12.12.linux.amd64/src/runtime/panic.go:522 +0x1b5
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/AdguardTeam/AdGuardHome/home.(*Auth).GetCurrentUser(0xc000104030, 0xc000120500, 0x203000, 0x203000, 0x12c, 0x12d)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/src/github.com/AdguardTeam/AdGuardHome/home/auth.go:466 +0x9b
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/AdguardTeam/AdGuardHome/home.handleGetProfile(0xd897c0, 0xc0001761c0, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/src/github.com/AdguardTeam/AdGuardHome/home/control.go:386 +0x3e
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/AdguardTeam/AdGuardHome/home.ensure.func1(0xd897c0, 0xc0001761c0, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/src/github.com/AdguardTeam/AdGuardHome/home/helpers.go:42 +0x1f8
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/AdguardTeam/AdGuardHome/home.(*httpHandler).ServeHTTP(0xc00018a0f0, 0xd897c0, 0xc0001761c0, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/src/github.com/AdguardTeam/AdGuardHome/home/helpers.go:60 +0x47
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1(0xd89680, 0xc0002c2c40, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/pkg/mod/github.com/!n!y!times/gziphandler@v1.1.1/gzip.go:336 +0x210
Oct 25 01:14:59 mail AdGuardHome[3368191]: net/http.HandlerFunc.ServeHTTP(0xc000243050, 0xd89680, 0xc0002c2c40, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/.gimme/versions/go1.12.12.linux.amd64/src/net/http/server.go:1995 +0x44
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/AdguardTeam/AdGuardHome/home.optionalAuth.func1(0xd89680, 0xc0002c2c40, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/src/github.com/AdguardTeam/AdGuardHome/home/auth.go:404 +0x100
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/AdguardTeam/AdGuardHome/home.(*authHandler).ServeHTTP(0xc0001f06b0, 0xd89680, 0xc0002c2c40, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/src/github.com/AdguardTeam/AdGuardHome/home/auth.go:413 +0xa3
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/AdguardTeam/AdGuardHome/home.postInstall.func1(0xd89680, 0xc0002c2c40, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/src/github.com/AdguardTeam/AdGuardHome/home/helpers.go:140 +0x1cc
Oct 25 01:14:59 mail AdGuardHome[3368191]: github.com/AdguardTeam/AdGuardHome/home.(*postInstallHandlerStruct).ServeHTTP(0xc0001f06c0, 0xd89680, 0xc0002c2c40, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/gopath/src/github.com/AdguardTeam/AdGuardHome/home/helpers.go:149 +0xa3
Oct 25 01:14:59 mail AdGuardHome[3368191]: net/http.(*ServeMux).ServeHTTP(0x121cc60, 0xd89680, 0xc0002c2c40, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/.gimme/versions/go1.12.12.linux.amd64/src/net/http/server.go:2375 +0x1d6
Oct 25 01:14:59 mail AdGuardHome[3368191]: net/http.serverHandler.ServeHTTP(0xc0000948f0, 0xd89680, 0xc0002c2c40, 0xc000120500)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/.gimme/versions/go1.12.12.linux.amd64/src/net/http/server.go:2774 +0xa8
Oct 25 01:14:59 mail AdGuardHome[3368191]: net/http.(*conn).serve(0xc002e9e5a0, 0xd8b680, 0xc003038e40)
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/.gimme/versions/go1.12.12.linux.amd64/src/net/http/server.go:1878 +0x851
Oct 25 01:14:59 mail AdGuardHome[3368191]: created by net/http.(*Server).Serve
Oct 25 01:14:59 mail AdGuardHome[3368191]: #11/home/travis/.gimme/versions/go1.12.12.linux.amd64/src/net/http/server.go:2884 +0x2f4

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