-
Notifications
You must be signed in to change notification settings - Fork 102
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
stubby started crashing randomly #295
Comments
@froschmett Thanks for the report - does seem strange! @wtoorop does this look familiar at all to you? |
@saradickinson I had some trouble getting the core dump to work, I hope that it worked. Here are the requested files. Thanks and Best Regards, |
@saradickinson I installed my setup from the scratch on a totally new install of Ubuntu Server 20.04.2 LTS. To my surprise the same error still persists. I really have no clue what happened or what is going on. Best, |
Hi, |
Hi, it seems that this issue is Debian/Ubuntu related. I installed my setup with latest fedora server from the scratch and it seems to run stable. Fedora uses 0.3.0 via its repository which ran stable so far. I also compiled 0.4.0 and it seems to run stable too. I will survey this further and report back. Best, |
Hi, i have the same isseue for 3-4 days. I'm running stubby 0.4.0 on CentOS 8.4 Version: CentOS Linux release 8.4.2105 Kernel: 4.18.0-305.7.1.el8_4.x86_64 #1 SMP Tue Jun 29 21:55:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Stack trace: Process 139661 (stubby) of user 64707 dumped core.
Best regards, sn1987 |
Thanks everyone for gathering for all the info - this looks to me like a problem with DNSSEC validation in One option is to try disabling local DNSSEC validation (which is OK if you are using a validating resolver) and see if the crashes stop. If any of you are able to figure out what lookup triggers this, that would be very helpful. There is no logging in stubby that can help with that, but if you happen to be able to grab a tcpdump/wireshark capture on your local interface it will show the names being looked up so we can try to reproduce this.... @wtoorop Any thoughts? |
Hi, it has been a while but I might have found the lookup that triggers the crash:
. calling |
Thank you @pitpompej !! I will take a look shortly. Can you ping me if I haven't replied in 7 days? Thanks! |
Hi, |
FYI I can reproduce!! Thank you @pitpompej for providing a reliable way to invoke this bug. |
rdata not correctly written for validation for certain RR types
Let me quickly drop some notes here for the release which will follow shortly (in 2 or 3 weeks).
|
hello :) Has this made it into a release yet? I'm using the version that ships with RaspberryPi OS (0.2.5 which is admiteddly already pretty ancient) and have this crash once or twice a day. At the moment I've mitigated it with a high quality systemd unit file hack: In
|
Changelog from upstream (https://github.com/getdnsapi/getdns/releases/tag/v1.7.3): * 2022-12-22: Version 1.7.3 * PR getdnsapi/getdns#532: Increase CMake required version 3.5 -> 3.20, because we need cmake_path for Absolute paths in pkg-config (See Issue getdnsapi/getdns#517) Thanks Gabriel Ganne * Updated to Stubby 0.4.3 quickfix release * 2022-08-19: Version 1.7.2 * Stubby updated to 0.4.2 quickfix release * 2022-08-19: Version 1.7.1 * Always send the `dot` ALPN when using DoT * Strengthen version determination for Libidn2 during cmake processing (thanks jpbion). * Fix for issue in UDP stream selection in case of timeouts. Thanks Shikha Sharma * Fix using asterisk in ipstr for any address. Thanks uzlonewolf. * Issue getdnsapi/stubby#295: rdata not correctly written for validation for certain RR type. Also, set default built type to RelWithDebInfo and expose CFLAGS via GETDNS_BUILD_CFLAGS define and via getdns_context_get_api_information() * Issue getdnsapi/getdns#524: Bug fixes from submodules' upstream? Thanks Johnnyslee * Issue getdnsapi/getdns#517: Allow Absolute path CMAKE_INSTALL_{INCLUDE,LIB}DIR in pkg-config files. Thanks Alex Shpilkin * Issue getdnsapi/getdns#512: Update README.md to show correct PGP key location. Thanks Katze Prior. Signed-off-by: Aquila Cooper <aquila@cpr.is>
Changelog from upstream (https://github.com/getdnsapi/getdns/releases/tag/v1.7.3): * 2022-12-22: Version 1.7.3 * PR getdnsapi/getdns#532: Increase CMake required version 3.5 -> 3.20, because we need cmake_path for Absolute paths in pkg-config (See Issue getdnsapi/getdns#517) Thanks Gabriel Ganne * Updated to Stubby 0.4.3 quickfix release * 2022-08-19: Version 1.7.2 * Stubby updated to 0.4.2 quickfix release * 2022-08-19: Version 1.7.1 * Always send the `dot` ALPN when using DoT * Strengthen version determination for Libidn2 during cmake processing (thanks jpbion). * Fix for issue in UDP stream selection in case of timeouts. Thanks Shikha Sharma * Fix using asterisk in ipstr for any address. Thanks uzlonewolf. * Issue getdnsapi/stubby#295: rdata not correctly written for validation for certain RR type. Also, set default built type to RelWithDebInfo and expose CFLAGS via GETDNS_BUILD_CFLAGS define and via getdns_context_get_api_information() * Issue getdnsapi/getdns#524: Bug fixes from submodules' upstream? Thanks Johnnyslee * Issue getdnsapi/getdns#517: Allow Absolute path CMAKE_INSTALL_{INCLUDE,LIB}DIR in pkg-config files. Thanks Alex Shpilkin * Issue getdnsapi/getdns#512: Update README.md to show correct PGP key location. Thanks Katze Prior. Signed-off-by: Aquila Cooper <aquila@cpr.is>
Changelog from upstream (https://github.com/getdnsapi/getdns/releases/tag/v1.7.3): * 2022-12-22: Version 1.7.3 * PR getdnsapi/getdns#532: Increase CMake required version 3.5 -> 3.20, because we need cmake_path for Absolute paths in pkg-config (See Issue getdnsapi/getdns#517) Thanks Gabriel Ganne * Updated to Stubby 0.4.3 quickfix release * 2022-08-19: Version 1.7.2 * Stubby updated to 0.4.2 quickfix release * 2022-08-19: Version 1.7.1 * Always send the `dot` ALPN when using DoT * Strengthen version determination for Libidn2 during cmake processing (thanks jpbion). * Fix for issue in UDP stream selection in case of timeouts. Thanks Shikha Sharma * Fix using asterisk in ipstr for any address. Thanks uzlonewolf. * Issue getdnsapi/stubby#295: rdata not correctly written for validation for certain RR type. Also, set default built type to RelWithDebInfo and expose CFLAGS via GETDNS_BUILD_CFLAGS define and via getdns_context_get_api_information() * Issue getdnsapi/getdns#524: Bug fixes from submodules' upstream? Thanks Johnnyslee * Issue getdnsapi/getdns#517: Allow Absolute path CMAKE_INSTALL_{INCLUDE,LIB}DIR in pkg-config files. Thanks Alex Shpilkin * Issue getdnsapi/getdns#512: Update README.md to show correct PGP key location. Thanks Katze Prior. Signed-off-by: Aquila Cooper <aquila@cpr.is>
Hi,
I am running stubby on a Ubuntu.
dpkg -l | grep stubby
stubby 1.4.0-1 amd64 modern asynchronous DNS API (stub resolver)
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
uname -a
4.15.0-153-generic #160-Ubuntu SMP Thu Jul 29 06:54:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Since today stubby started to crash randomly and I cant imagine why. It ran without any trouble for the last 8 months or so.
Because it crashes quite a lot I added some line to the systemd-config so that it restarts on failure.
The failure it throws when it crashes is:
stubby[2557]: stubby: ./gldns/gbuffer.h:461: gldns_buffer_write_at: Assertion `gldns_buffer_available_at(buffer, at, count)' failed.
Aug 5 01:55:46 u41 systemd[1]: stubby.service: Main process exited, code=dumped, status=6/ABRT
Aug 5 01:55:46 u41 systemd[1]: stubby.service: Failed with result 'core-dump'.
Please let me know if you need further information.
I would be really happy if someone can shed some light on this, help or fix this :)
Many thanks and Best Regards,
froschmett
The text was updated successfully, but these errors were encountered: