-
Notifications
You must be signed in to change notification settings - Fork 8
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
Segfault on specific domains with DNSSEC validation #33
Comments
Oh, btw. the getdns commandline tool works fine:
|
Does anyone have the same problem and could confirm this issue? |
@smeinecke: thanks for the report and test code! I can confirm the problem, but see below for configuration details.
I sometimes get segfaults from My setup:
Recursive modeNote that you are running in default recursive mode, as // NOTE: need a callback to run test code.
const loggingCallback = (...args) => { console.log(...args); };
// NOTE: added callback to single test lookup.
ctx.general(domains[i], getdns.RRTYPE_SOA, extensions, loggingCallback);
// NOTE: looping over all example domains also works.
domains.forEach((domain) => ctx.general(domain, getdns.RRTYPE_SOA, extensions, loggingCallback)); Your test code seems to work for me in recursive mode, after adding a simple lookup result callback.
Note that the results should contain Stub mode{
// NOTE: added option for stub resolver context, deferring lookups to the upstream recursive servers.
resolution_type: getdns.RESOLUTION_STUB,
upstreams: ...
} The test code segfaults in stub mode. Testing with other domains (
|
Just getting started with getdns and I'm seeing the same thing. Only with DNSSEC enabled queries and only about 1/4 of the time do they segfault. I'm doing a query for A records. I'm using remote resolvers (authoritative ones). I've tried several different ones and it doesn't seem to make a difference what the resolvers are. When it segfaults the runtime is about 1/10 of a regular query (22ms vs 250ms) so I think it's dorking out before a response is received. I hope that helps and you're able to track down the issue. |
I've tested it multiple times with multiple versions of the getdns library and the getdns-node module and node (v6, v8 and v9) and it seems as if I send a request with enabled DNSSEC validation for specific domains I get the following segmentation fault and the whole node process dies.
My local resolver is unbound 1.6.7
with enabled segfault-handler:
Any idea?
The text was updated successfully, but these errors were encountered: