-
Notifications
You must be signed in to change notification settings - Fork 424
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
thread 'trust-dns-server-runtime' has overflowed its stack #980
Comments
Do you think you could increase the log level and perhaps set the RUST_BACKTRACE=full environment variable? That might help us see where the program is dying. |
With
I don't get any backtrace or further error log. There was just a request, then it died. Even 0.16 dies with:
|
searching InMemoryAuthority is the last action before the crash.
|
Ok, that's feasible. I think that function is recursive, so it might e doing something incorrectly and thus very possible to overflow the stack. |
This domain usually just redirects to the GitHub project. I registered it last month before some idiot could take it away from us all.
|
gdb.txt |
Ok, this is strange. It looks like a wildcard lookup is being triggered, but there is no wildcard in your domain. |
I've mailed you the full log, including the startup. |
I'm looking at this, and we have decent test coverage here. I'm hoping to reproduce it with |
Ok, I've reproduced, it looks like it's the Can you explain what the intention of that is? |
https://www.hardenize.com/report/rustls.com#email
|
darkspirit.eu has such a record for months, but it seems some mail servers are interested in sending spam to rustls.com, so its MX record was actually requested by someone. |
Ok, it looks like we aren't properly processing the |
Ok, it turns out that with MX records, when we're looking up additional records for the response, it we ended up continuing to search for ever, bad base case in the recursion. |
Describe the bug
Sometimes the server crashes after few seconds or after a few hours:
To ReproduceSteps to the behavior. Sorry, it doesn't seem reliably reproducible at the moment. I'll add more info, as soon as I get more.
Expected behavior
No stack overflow.
System:
Version:
Crate: trust-dns
Version: 0.18.0
Additional context
The text was updated successfully, but these errors were encountered: