Closed simonpie closed 3 weeks ago
Is this the same issue as #1127 ? It sounds like it could be. Perhaps the bug fix for that issue also fixed this issue here?
Yes exactly. Sorry, I though I search for "memory exhausted" before posting. What is the optimal way of closing this issue now ?
Okay, nice that it fixes this problem too.
Well, I can't vouch for that yet. But bug reports seems to refer to the same issue.
If it does not fix the issue, this can be reopened. It would be nice to have the config that fails then; like a short version of the main config file and the include described with a sample line, because that would apparently then be a different config bug.
Here are the three files needed to load my config. Hopefully, unbound.conf
is cleaned up correctly.
With the archive, I have verified that the fix works. Without the fix, with version 1.21.0, it gives the error like in the issue post, monblocker.conf:12163: error: memory exhausted
. With the fix, there is no error. So the issue is already fixed by the other bug fix.
Thank you very much.
Describe the bug Starting with version 1.21.0, when loading unbound and using include directive to load a large file with lots of NXDOMAIN (244 859 entries), unbound gives a memory exhausted error and does not load on freebsd 13.3-p5.
To reproduce Steps to reproduce the behavior:
Expected behavior Unbound should start ( as it did before with version 1.20.0_1 )
System:
unbound -V` output:
Configure line: --with-libexpat=/usr/local --with-ssl=/usr --enable-dnscrypt --disable-dnstap --with-libnghttp2 --with-dynlibmodule --enable-ecdsa --disable-event-api --enable-gost --with-libevent --disable-subnet --disable-tfo-client --disable-tfo-server --with-pthreads --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/share/man --infodir=/usr/local/share/info/ --build=amd64-portbld-freebsd13.3 Linked libs: libevent 2.1.12-stable (it uses kqueue), OpenSSL 1.1.1w-freebsd 11 Sep 2023 Linked modules: dns64 dynlib respip validator iterator DNSCrypt feature available
BSD licensed, see LICENSE in source package for details. Report bugs to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues
And of course monblocker.conf is the included large file. If I use a sharp sign (#) to comment out the include directive, unbound starts just fine.
If I use just a couple of lines out of the 24000, the include directive works just fine and unbound loads and returns NXDOMAIN for the few remaining domains.