Repository navigation
OpenBSD: Crash on dns.resolve() #52439
Copy link
Copy link
Closed
Labels
dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.
Description
Activity
Will other DNS queries cause the crash ?
Will other DNS queries cause the crash ?
Yes, the name doesn't matter and neither does the rrtype - both 'A' and 'AAAA' queries lead to the same crash
require('dns').lookup('www.google.com', () => {})also cause the crash (www.google.com or other host) ?Nope, that works:
> require('dns').lookup('www.google.com',(e, r) => { console.log(r) }); GetAddrInfoReqWrap { callback: [Function (anonymous)], family: 0, hostname: 'www.google.com', oncomplete: [Function: onlookup] } > 142.250.185.68- addeddnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.
on Apr 20, 2024 The same issue occurs on 20.12.2
Tracked it down to an OpenBSD specific bug in c-ares.
- added a commit that references this issue
on Nov 1, 2024 1 remaining item
Metadata
Metadata
Assignees
Labels
dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.
Version
18.19.1
Platform
OpenBSD 7.5-current
Subsystem
src/cares-wrap.cc
What steps will reproduce the bug?
On OpenBSD 7.5-current,
with node 18.19.1, built with --shared-libuv, --shared-cares
and libuv 1.48.0, libcares 1.28.0
(same for node 18.20.1)
How often does it reproduce? Is there a required condition?
Occurs on every attempt
What is the expected behavior? Why is that the expected behavior?
No crash :-)
What do you see instead?
A crash due to a failed assertion, see above.
Additional information
I realize that node v18.x chose to revert libuv to 1.44.2 and that the project cannot support non-tested setups such as this one, but since I confirmed that on FreeBSD with the same versions of node, libuv and libcares the problem does not occur, I was hoping that you might be able to suggest under which conditions the assertion in cares-wrap.cc:685 might fail.