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
local_datas without \4\n
reuses last read buffer(?) and produces infinite error output
#948
Comments
Thanks for reporting and the analysis! |
Applied 516f90a to 1.18.0-2 and that seems to be worse: on first go it returns an error, but then it just enters an infinite loop, silently:
|
I cannot reproduce it here, neither on 1.18.0 with patch, nor on current master:
Do you see anything in the Unbound log if you bump verbosity to 4? |
Okay I thought I couldn't re-reproduce this, but it's just intermittent, and I must've been lucky to hit it on the first try. It also seems timing-dependent because it's impossible to trigger (to me) with verbosity 4. By doing And at that level I don't see a correlation. One time I got
but. Or not intermittent at all because sometimes it works on the first try. Anyway,
|
I believe I addressed it properly this time with 07149f5. |
That's good to hear! I suppose the same goes for #947? |
yep, tried both in a few configurations and and neither repro |
Feel free to close them in your own time in case you want to try some more. |
* nlnet/master: (64 commits) Changelog entry for NLnetLabs#951. - Merge NLnetLabs#951: Cachedb no store. The cachedb-no-store: yes option is used to stop cachedb from writing messages to the backend storage. It reads messages when data is available from the backend. The default is no. - Fix to print detailed errors when an SSL IO routine fails via SSL_get_error. - Changelog entry for: Merge NLnetLabs#955 from buevsan: fix ipset wrong behavior. - Update testdata/ipset.tdir test for ipset fix. - Update the dns64_lookup.rpl test for the DNS64 fallback patch. - Changelog entry for DNS64 patches from Daniel Gröber. Fixes for dns64 fallback to plain AAAA when no A records: - Cleanup if condition. - Rename variable for readability. dns64: Fall back to plain AAAA query with synthall but no A records Fixes for dns64 readability refactoring: - Move declarations to the top for C90 compliance. - Save cycles by not calling (yet) unneeded functions. - Possible use of uninitialised value. - Consistent formatting. dns64: Fix misleading indentation dns64: Refactor handle_event checks for readability fix ipset wrong behavior - Fix NLnetLabs#954: Inconsistent RPZ handling for A record returned along with CNAME. - Update pymod tests for the new Python script variable. - For multi Python module setups, clean previously parsed module functions in __main__'s dictionary, if any, so that only current module functions are registered. - Expose the configured listening and outgoing interfaces, if any, as a list of strings in the Python 'config_file' class instead of the current Swig object proxy; fixes NLnetLabs#79. - Expose the script filename in the Python module environment 'mod_env' instead of the config_file structure which includes the linked list of scripts in a multi Python module setup; fixes NLnetLabs#79. - Better fix for infinite loop when reading multiple lines of input on a broken remote control socket, by treating a zero byte line the same as transmission end. Addesses NLnetLabs#947 and NLnetLabs#948. Apply suggestions from code review - cachedb-no-store, example conf and man page documentation. Changelog note for NLnetLabs#944. - Merge NLnetLabs#944: Disable EDNS DO. Disable the EDNS DO flag in upstream requests. This can be helpful for devices that cannot handle DNSSEC information. But it should not be enabled otherwise, because that would stop DNSSEC validation. The DNSSEC validation would not work for Unbound itself, and also not for downstream users. Default is no. The option is disable-edns-do: no ...
Describe the bug
local_datas without
\4\n
reuses last read buffer(?) and produces infinite error outputTo reproduce
strace -f
of this moment.Appending
printf '\4\n'
, as stolen fromstrace unbound-control local_datas
, makes it work correctly.Expected behavior
not that
System:
unbound -V
output:Additional information
Downstream bug: https://bugs.debian.org/1051817
The text was updated successfully, but these errors were encountered: