Skip to content
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

Segmentation fault on function showDNSCryptBinds() under certain circumstances #8014

paddg opened this issue Jul 2, 2019 · 2 comments


Copy link

@paddg paddg commented Jul 2, 2019

  • Program: dnsdist
  • Issue type: Bug report

Short description

dnsdist coredumps if I call showDNSCryptBinds(). But only on certain configurations.


  • Operating system: SUSE SLES15
  • Software version: dnsdist 1.4.0-beta1
  • Software source: self compiled

Steps to reproduce

It happens if I start dnsdist with a empty configuration from command line and call showDNSCryptBinds():

# dnsdist
Listening on
dnsdist 1.4.0-beta1 comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2
ACL allowing queries from:,, fe80::/10,,,, fc00::/7, ::1/128,
Console ACL allowing connections from:, ::1/128
No downstream servers defined: all packets will get dropped
Warning, this configuration can use more than 1042 file descriptors, web server and console connections not included, and the current limit is 1024.
You can increase this value by using LimitNOFILE= in the systemd unit file or ulimit.
> Polled security status of version 1.4.0-beta1 at startup, no known issues reported: OK
Speicherzugriffsfehler (Speicherabzug geschrieben)

It also happens with this configuration:

addDOHLocal("", "doh.pem", "doh.key" )
addDNSCryptBind('', "2.providername", "resolver.cert", "resolver.key")

But it doesn't happen with this configuration:
addDNSCryptBind('', "2.providername", "resolver.cert", "resolver.key")

Expected behaviour

Not a coredump but something like

#   Address              Provider Name       
0       2.providername      
1       2.providername

Actual behaviour

Speicherzugriffsfehler (Speicherabzug geschrieben)

@rgacogne rgacogne added this to the dnsdist-1.4.0 milestone Jul 2, 2019
@rgacogne rgacogne self-assigned this Jul 2, 2019
Copy link
Contributor Author

@paddg paddg commented Jul 2, 2019

Also, why does showDNSCryptBinds() show two binds? I'd expect only one in this case.

Copy link

@rgacogne rgacogne commented Jul 2, 2019

Also, why does showDNSCryptBinds() show two binds? I'd expect only one in this case.

Right, it's because we are technically listening on UDP and TCP, but I agree it's a bit unexpected. I'll see if we can de-duplicate it nicely, or at least make the UDP/TCP part more obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants