AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home/overview.html
GNU General Public License v3.0
25.63k stars 1.84k forks source link

Panic during initial setup #7315

Closed ainar-g closed 1 month ago

ainar-g commented 1 month ago

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.107.53

Action

Run the setup with verbose logging enabled.

Expected result

No panics in the logs.

Actual result

2024/10/03 15:43:43.303621 1038801#76 [error] storage: recovered from panic: runtime error: invalid memory address or nil pointer dereference                                                                                                                                 
goroutine 76 [running]:                                                                                                                
runtime/debug.Stack()                                                                                                                  
        runtime/debug/stack.go:26 +0x5e                                                                                                
runtime/debug.PrintStack()                                                                                                             
        runtime/debug/stack.go:18 +0x13                                                                                                
github.com/AdguardTeam/golibs/log.OnPanic({0xfb3a3b, 0x7})                                                                             
        github.com/AdguardTeam/golibs@v0.27.0/log/log.go:276 +0x11f                                                                    
panic({0xe811e0?, 0x21635d0?})                                                                                                         
        runtime/panic.go:785 +0x132                                                                                                    
github.com/AdguardTeam/AdGuardHome/internal/aghnet.(*HostsContainer).Upd(0x0?)                                                         
        github.com/AdguardTeam/AdGuardHome/internal/aghnet/hostscontainer.go:116                                                       
github.com/AdguardTeam/AdGuardHome/internal/client.(*Storage).handleHostsUpdates(0xc000134480)                                         
        github.com/AdguardTeam/AdGuardHome/internal/client/storage.go:263 +0x73
created by github.com/AdguardTeam/AdGuardHome/internal/client.(*Storage).Start in goroutine 36
        github.com/AdguardTeam/AdGuardHome/internal/client/storage.go:182 +0x96

Additional information and/or screenshots

No response