mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #355] error notifying wait, possible future leak #165
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @glebpom on GitHub (Mar 6, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/355
Hi,
I'm seeing this panic
the backtrace shows that it relates to
drop_cancelledfunction. Here is the code:It seems like (but I'm not sure) that it happens when the whole future (where resolving is involved) is completed, and resolve timeout happens after that:
If
stopis completed, and timeout happens after that, is it possible that this future leak happen?@bluejekyll commented on GitHub (Mar 6, 2018):
I haven't seen this reported before. The reason for the panic is that there is the potential that there is a Future waiting for a DNS response that did not receive that send. In that case, there could be a memory leak as it would never stop waiting, there may be a better way to deal with this edge case. It's been a while since I've looked at this section of code.
As a work around, if you have the src, you could remove the expect, and log a warning. I won't be able to look at this until later today. I'm thinking that in the scenario you've laid out, it's possible that the early termination of the future with
stopis interfering with the internal message passing in the DNS protocol handlers.edit: actually thinking of your scenario, the
stopbasically removes your interest in the DNS result, and that's why this error is happening. Given that, it may be safe to always ignore this error... Again, I need to review the code to understand if that's true later.