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

panic: runtime error: index out of range #3930

Closed
cedwards opened this issue Dec 11, 2021 · 2 comments
Closed

panic: runtime error: index out of range #3930

cedwards opened this issue Dec 11, 2021 · 2 comments
Labels
duplicate Duplicate or merged issues.

Comments

@cedwards
Copy link

Issue Details

  • Version of AdGuard Home server:
    • 0.107.0.b.7
  • How did you install AdGuard Home:
    • pkg install adguardhome
  • How did you setup DNS configuration:
    • systems
  • CPU architecture:
    • amd64
  • Operating system and version:
    • FreeBSD 13.0

Expected Behavior

Expected to run continuously and provide DNS service.

Actual Behavior

Random crashes across all instances (3x) with the following error:

panic: runtime error: index out of range [0] with length 0

goroutine 3228 [running]:
github.com/AdguardTeam/dnsproxy/proxy.filterMsg(0xc0003aa000, 0xc0003aa000, 0x0, 0x1, 0x0)
        github.com/AdguardTeam/dnsproxy@v0.39.2/proxy/cache.go:427 +0x1c5
github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).Resolve(0xc000096700, 0xc000333200)
        github.com/AdguardTeam/dnsproxy@v0.39.2/proxy/proxy.go:499 +0x13a
github.com/AdguardTeam/AdGuardHome/internal/dnsforward.(*Server).processUpstream(0xc000150000, 0xc00034c280)
        github.com/AdguardTeam/AdGuardHome/internal/dnsforward/dns.go:545 +0x538
github.com/AdguardTeam/AdGuardHome/internal/dnsforward.(*Server).handleDNSRequest(0xc000150000, 0xc000096700, 0xc000333200)
        github.com/AdguardTeam/AdGuardHome/internal/dnsforward/dns.go:102 +0x37e
github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).handleDNSRequest(0xc000096700, 0xc000333200)
        github.com/AdguardTeam/dnsproxy@v0.39.2/proxy/server.go:127 +0x4d3
github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).udpHandlePacket(0xc000096700, {0xc0000b3c50, 0x22, 0x22}, {0xc0007213b0, 0x10, 0x10}, 0xc00130bd70, 0xc000010400)
        github.com/AdguardTeam/dnsproxy@v0.39.2/proxy/server_udp.go:105 +0x325
github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).udpPacketLoop.func1(0xc000096700, {0xc0000b3c50, 0x22, 0x22}, {0xc0007213b0, 0x10, 0x10}, 0xc00130bd70, 0xc000010400, {0x1ff0cc0, ...})
        github.com/AdguardTeam/dnsproxy@v0.39.2/proxy/server_udp.go:74 +0x8b
created by github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).udpPacketLoop
        github.com/AdguardTeam/dnsproxy@v0.39.2/proxy/server_udp.go:73 +0x35c
@TheCeet
Copy link

TheCeet commented Dec 11, 2021

Try to update to beta v15?

@EugeneOne1
Copy link
Member

EugeneOne1 commented Dec 13, 2021

@cedwards, hello. This one looks like a dup of #3551. Could you please install one of beta versions later than v0.107.0-b.9 (e.g. v0.107.0-b.10) and check if it panics?

@EugeneOne1 EugeneOne1 added the waiting for data Waiting for users to provide more data. label Dec 13, 2021
@stale stale bot added the wontfix label Mar 30, 2022
@EugeneOne1 EugeneOne1 added duplicate Duplicate or merged issues. and removed wontfix waiting for data Waiting for users to provide more data. labels Mar 30, 2022
@stale stale bot added the wontfix label Jul 10, 2022
@AdguardTeam AdguardTeam deleted a comment from stale bot Aug 29, 2022
@AdguardTeam AdguardTeam deleted a comment from stale bot Aug 29, 2022
@ainar-g ainar-g removed the wontfix label Aug 29, 2022
@ainar-g ainar-g closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate or merged issues.
Projects
None yet
Development

No branches or pull requests

4 participants