[Pdns-users] Attempt to print an unset dnsname

Peter van Dijk peter.van.dijk at powerdns.com
Fri Sep 29 12:46:06 UTC 2017


Hello Klaus,

On 26 Sep 2017, at 17:27, Klaus Darilion wrote:

> My PowerDNS 4.0.4 (with some modifications) exits often with
> "Exiting because communicator thread died with STL error: Attempt to
> print an unset dnsname"
>
> I have some hard time to find where this happens. The logged stack 
> trace is:
>
> Sep 26 14:53:19 cc-reg-vie1 pdns[16802]:
> /usr/sbin/pdns_server-instance(+0x192b33) [0x7f75e06c8b33]
> Sep 26 14:53:19 cc-reg-vie1 pdns[16802]:
> /lib/x86_64-linux-gnu/libc.so.6(+0x36cb0) [0x7f75de88bcb0]
> Sep 26 14:53:19 cc-reg-vie1 pdns[16802]:
> /usr/sbin/pdns_server-instance(_ZN5QType10chartocodeEPKc+0xfc)
> [0x7f75e06bf6fc]

You can pipe this log through ‘c++filt’ to get more readable 
function/method names. To really debug it, rebuild pdns with 
CFLAGS=‘-O0 -ggdb’ CXXFLAGS=‘-O0 -ggdb’, then run it under gdb, 
with a breakpoint on “ throw std::out_of_range("Attempt to print an 
unset dnsname”);”, which in my copy of pdns lives in dnsname.cc on 
line 165.

Kind regards,
-- 
Peter van Dijk
PowerDNS.COM BV - https://www.powerdns.com/


More information about the Pdns-users mailing list