Adguard home v0.107.77 crash on startup
Prerequisites
-
[x] I have checked the Wiki and Discussions and found no answer
-
[x] I have searched other issues and found no duplicates
-
[x] I want to report a bug and not ask a question or ask for help
-
[x] I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, AMD64 (aka x86_64)
Installation
Docker
Setup
On one machine
AdGuard Home version
v0.107.77
Action
Adguard is docker is starting/crashing with this in the logs:
2026/06/20 10:27:11.355497 [info] starting adguard home version="AdGuard Home, version v0.107.77"
2026/06/20 10:27:11.361177 [info] tls_manager: using default ciphers
2026/06/20 10:27:11.364036 [info] safesearch: reset rules count=0xcee840
2026/06/20 10:27:11.368636 [info] webapi: initializing
2026/06/20 10:27:11.438967 [info] dnsproxy: upstream mode is set mode=parallel
2026/06/20 10:27:11.438984 [info] dnsproxy: cache enabled size=4096
2026/06/20 10:27:11.438994 [info] dnsproxy: max goroutines is set count=300
2026/06/20 10:27:11.439040 [info] dnsproxy: cache ttl override is enabled min=120 max=1800
2026/06/20 10:27:11.439047 [info] dnsproxy: server will refuse requests of type any
2026/06/20 10:27:11.439054 [info] dnsproxy: upstream mode is set mode=parallel
2026/06/20 10:27:11.439061 [info] dnsproxy: cache enabled size=4194304
2026/06/20 10:27:11.439069 [info] dnsproxy: max goroutines is set count=300
2026/06/20 10:27:11.439236 [info] addrproc: processing addresses
2026/06/20 10:27:11.439335 [info] webapi: AdGuard Home is available at the following addresses:
2026/06/20 10:27:11.439467 [info] webapi: serving url=http://127.0.0.1:3000
2026/06/20 10:27:11.439476 [info] webapi: serving url=http://[::1]:3000
2026/06/20 10:27:11.439480 [info] webapi: serving url=http://172.20.0.2:3000
2026/06/20 10:27:11.439537 [info] starting plain server server=plain addr=0.0.0.0:3000
2026/06/20 10:27:12.372099 [info] dnsproxy: starting dns proxy server
2026/06/20 10:27:12.372125 [info] dnsproxy: creating udp server socket addr=0.0.0.0:53
2026/06/20 10:27:12.372248 [info] dnsproxy: listening to udp addr=[::]:53
2026/06/20 10:27:12.372259 [info] dnsproxy: creating tcp server socket addr=0.0.0.0:53
2026/06/20 10:27:12.372317 [info] dnsproxy: listening to tcp addr=[::]:53
2026/06/20 10:27:12.372410 [info] dnsproxy: entering udp listener loop addr=[::]:53
2026/06/20 10:27:12.372511 [info] dnsproxy: entering listener loop proto=tcp addr=[::]:53
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x929cb7]
goroutine 196 [running]:
github.com/AdguardTeam/urlfilter.(*DNSEngine).MatchRequestInto(0xcc177fb8510, 0xcc17989f350, 0xcc17989f2f0)
github.com/AdguardTeam/[email protected]/dnsengine.go:179 +0x297
github.com/AdguardTeam/urlfilter.(*DNSEngine).MatchRequest(...)
github.com/AdguardTeam/[email protected]/dnsengine.go:193
github.com/AdguardTeam/AdGuardHome/internal/filtering.(*DNSFilter).matchHost(0xcc1782e6d20, {0xcc17b7c7830, 0x16}, 0x1, 0xcc178127d80)
github.com/AdguardTeam/AdGuardHome/internal/filtering/filtering.go:907 +0x272
github.com/AdguardTeam/AdGuardHome/internal/filtering.(*DNSFilter).CheckHost(0xcc1782e6d20, {0xcc17b7c7830?, 0xfffffffffffffffc?}, 0x1, 0xcc178127d80)
github.com/AdguardTeam/AdGuardHome/internal/filtering/filtering.go:521 +0x1f6
github.com/AdguardTeam/AdGuardHome/internal/dnsforward.(*Server).filterDNSRequest(0xcc177dde008, {0x1b9c870, 0xcc17979ec60}, 0xcc1794f0d20, 0xcc178127d00)
github.com/AdguardTeam/AdGuardHome/internal/dnsforward/filter.go:38 +0x13f
github.com/AdguardTeam/AdGuardHome/internal/dnsforward.(*Server).processFilteringBeforeRequest(0xcc177dde008, {0x1b9c870, 0xcc17979ec60}, 0xcc1794f0d20, 0xcc178127d00)
github.com/AdguardTeam/AdGuardHome/internal/dnsforward/process.go:421 +0x1eb
github.com/AdguardTeam/AdGuardHome/internal/dnsforward.(*Server).ServeDNS(0xcc177dde008, {0x1b9c870, 0xcc17979ec60}, 0xcc1794f0d20?, 0xcc17810cd00)
github.com/AdguardTeam/AdGuardHome/internal/dnsforward/requesthandler.go:45 +0x2d0
github.com/AdguardTeam/AdGuardHome/internal/dnsforward.(*Server).newProxyConfig.(*Server).Wrap.func1({0x1b9c870, 0xcc17979ec60}, 0xcc177ddf808, 0xcc17810cd00)
github.com/AdguardTeam/AdGuardHome/internal/dnsforward/middleware.go:51 +0x24b
github.com/AdguardTeam/dnsproxy/proxy.HandlerFunc.ServeDNS(0x1b9c7b8?, {0x1b9c870?, 0xcc17979ec60?}, 0xcc17989fbf0?, 0x10fb3dd?)
github.com/AdguardTeam/[email protected]/proxy/requesthandler.go:41 +0x2d
github.com/AdguardTeam/AdGuardHome/internal/dnsforward.(*Server).newProxyConfig.(*logMiddleware).Wrap.func2({0x1b9c7b8, 0xcc17ecbe350}, 0xcc177ddf808, 0xcc17810cd00)
github.com/AdguardTeam/AdGuardHome/internal/dnsforward/middleware.go:183 +0x230
github.com/AdguardTeam/dnsproxy/proxy.HandlerFunc.ServeDNS(0xcc177e12690?, {0x1b9c7b8?, 0xcc17ecbe350?}, 0xcc177cc8378?, 0x1b89160?)
github.com/AdguardTeam/[email protected]/proxy/requesthandler.go:41 +0x2d
github.com/AdguardTeam/dnsproxy/ratelimit.(*middleware).Wrap.func1({0x1b9c7b8?, 0xcc17ecbe350?}, 0xcc177ddf808?, 0xcc17810cd00?)
github.com/AdguardTeam/[email protected]/ratelimit/ratelimit.go:59 +0x1b1
github.com/AdguardTeam/dnsproxy/proxy.HandlerFunc.ServeDNS(0xcc177ddf808?, {0x1b9c7b8?, 0xcc17ecbe350?}, 0xcc177cc8378?, 0x100?)
github.com/AdguardTeam/[email protected]/proxy/requesthandler.go:41 +0x2d
github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).handleDNSRequest(0xcc177ddf808, {0x1b9c7b8, 0xcc17ecbe350}, 0xcc17810cd00)
github.com/AdguardTeam/[email protected]/proxy/server.go:107 +0x105
github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).udpHandlePacket(0xcc177ddf808, {0x1b9c7b8?, 0xcc17ecbe350?}, {0xcc17a4ae960, 0x28, 0x28}, {{0xcc17979cb40?, 0xf11840?}, {0xcc177cc8378?}}, 0xcc17979ec00, ...)
github.com/AdguardTeam/[email protected]/proxy/serverudp.go:159 +0x373
github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).udpPacketLoop.func1()
github.com/AdguardTeam/[email protected]/proxy/serverudp.go:113 +0xa5
created by github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).udpPacketLoop in goroutine 12
github.com/AdguardTeam/[email protected]/proxy/serverudp.go:110 +0x2fb
Expected result
Adguard home not to crash on startup.
Actual result
Adguard docker is starting, crashing and restarting and crashing...
Additional information and/or screenshots
Running on docker 29.6.0 Debian 12 (Bookworm)
Tried :
- updated to v0.108.0-b.88
- downgraded to v0.107.73
- Removed all but the AdGuard list
Still having this issue. It's not exactly on startup but seems to be when looking up URLs.
Any other idea ?
Thanks for the report. Based on the information available, this does indeed seem more like an error in processing a DNS request.
Could you please provide the following additional information?
- Whether you have any custom filtering rules.
- Whether you use DNS rewrites.
- Whether you use per-client filtering settings.
- The domain name that triggers the crash, if you can identify it.
- Full debug logs.
Please also try running AGH with query log disabled and filtering disabled separately, to narrow down whether the error is caused by filter matching.
Closing due to inactivity. If the issue persists, please leave a comment and we'll be happy to reopen the issue.