root@spg-dns1:~ # gdb /usr/local/sbin/pdns_recursor GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... (gdb) r Starting program: /usr/local/sbin/pdns_recursor (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100083] (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Jan 24 14:47:31 PowerDNS Recursor 4.0.4 (C) 2001-2016 PowerDNS.COM BV Jan 24 14:47:31 Using 64-bits mode. Built using clang 3.4.1 (tags/RELEASE_34/dot1-final 208032) on Jan 24 2017 14:46:05 by root@10_3x64-default-job-02. Jan 24 14:47:31 PowerDNS 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. Jan 24 14:47:31 Reading random entropy from '/dev/urandom' Jan 24 14:47:31 NOT using IPv6 for outgoing queries - set 'query-local-address6=::' to enable Jan 24 14:47:31 Only allowing queries from: 127.0.0.0/8, 10.0.0.0/8, ::1/128, fc00::/7, fe80::/10 Jan 24 14:47:31 Will not send queries to: 127.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, ::ffff:0:0/96, 100::/64, 2001:db8::/32, 0.0.0.0, :: Jan 24 14:47:31 PowerDNS Recursor itself will distribute queries over threads Jan 24 14:47:31 Reading zone forwarding information from '/usr/local/etc/pdns/forward-zones.conf' Jan 24 14:47:31 Done parsing 11 forwarding instructions from file '/usr/local/etc/pdns/forward-zones.conf' Jan 24 14:47:31 Inserting rfc 1918 private space zones Jan 24 14:47:31 Listening for UDP queries on 127.0.0.1:53 Jan 24 14:47:31 Listening for TCP queries on 127.0.0.1:53 [New Thread 803406400 (LWP 100083/pdns_recursor)] Jan 24 14:47:31 Set effective group id to 120 Jan 24 14:47:31 Set effective user id to 120 Jan 24 14:47:31 Launching 3 threads Jan 24 14:47:31 Done priming cache with root hints Jan 24 14:47:31 Done priming cache with root hints Jan 24 14:47:31 Done priming cache with root hints Jan 24 14:47:31 Loaded 'lua' script from '/usr/local/etc/pdns/script.lua' Jan 24 14:47:31 Loaded 'lua' script from '/usr/local/etc/pdns/script.lua' Jan 24 14:47:31 Loaded 'lua' script from '/usr/local/etc/pdns/script.lua' Jan 24 14:47:31 Enabled 'kqueue' multiplexer Jan 24 14:48:27 Got query for support.customer.com. [New Thread 803407800 (LWP 100442/pdns_recursor)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 803407800 (LWP 100442/pdns_recursor)] 0x000000080298140b in strlen () from /lib/libc.so.7 (gdb) bt #0 0x000000080298140b in strlen () from /lib/libc.so.7 #1 0x0000000000433f75 in std::__1::char_traits::eq () #2 0x0000000000629e2e in json11::Json::~Json () #3 0x0000000000629ccb in json11::Json::~Json () #4 0x0000000000629a6b in json11::Json::~Json () #5 0x0000000000629723 in json11::Json::~Json () #6 0x000000000062956b in json11::Json::~Json () #7 0x0000000000629518 in json11::Json::~Json () #8 0x00000008016c3c45 in lua_getinfo () from /usr/local/lib/liblua-5.2.so #9 0x00000008016d14bb in lua_close () from /usr/local/lib/liblua-5.2.so #10 0x00000008016c41e2 in lua_getinfo () from /usr/local/lib/liblua-5.2.so #11 0x00000008016c36f3 in lua_getinfo () from /usr/local/lib/liblua-5.2.so #12 0x00000008016c46a8 in lua_yieldk () from /usr/local/lib/liblua-5.2.so #13 0x00000008016bf4c1 in lua_pcallk () from /usr/local/lib/liblua-5.2.so #14 0x00000000005cb40b in json11::Json::~Json () #15 0x00000000005cb1a2 in json11::Json::~Json () #16 0x00000000005caf7d in json11::Json::~Json () #17 0x00000000005cae5c in json11::Json::~Json () #18 0x00000000005c86e2 in json11::Json::~Json () #19 0x00000000005363b4 in json11::Json::~Json () #20 0x0000000000537273 in json11::Json::~Json () #21 0x000000000073171a in json11::Json::~Json () #22 0x000000000079b508 in std::bad_cast::bad_cast () #23 0x000000000079b2cd in std::bad_cast::bad_cast () #24 0x000000000070555b in json11::Json::~Json () #25 0x00000000007053ab in json11::Json::~Json () #26 0x00000008014b12bf in make_fcontext () from /usr/local/lib/libboost_context.so.1.63.0 #27 0x0000000000000000 in ?? () (gdb) thread apply all bt full [New Thread 803407400 (LWP 100441/pdns_recursor)] [New Thread 803407000 (LWP 100440/pdns_recursor)] Thread 5 (Thread 803407000 (LWP 100440/pdns_recursor)): #0 0x000000080296502a in _kevent () from /lib/libc.so.7 No symbol table info available. #1 0x0000000802625302 in pthread_suspend_all_np () from /lib/libthr.so.3 No symbol table info available. #2 0x00000000009e2840 in std::bad_cast::bad_cast () No symbol table info available. #3 0x000000000075fa71 in json11::Json::~Json () No symbol table info available. #4 0x0000000802622855 in pthread_create () from /lib/libthr.so.3 No symbol table info available. #5 0x0000000000000000 in ?? () No symbol table info available. Thread 4 (Thread 803407400 (LWP 100441/pdns_recursor)): #0 0x000000080296502a in _kevent () from /lib/libc.so.7 No symbol table info available. #1 0x0000000802625302 in pthread_suspend_all_np () from /lib/libthr.so.3 No symbol table info available. #2 0x00000000009e2840 in std::bad_cast::bad_cast () No symbol table info available. #3 0x000000000075fa71 in json11::Json::~Json () No symbol table info available. #4 0x0000000802622855 in pthread_create () from /lib/libthr.so.3 No symbol table info available. #5 0x0000000000000000 in ?? () No symbol table info available. Thread 3 (Thread 803407800 (LWP 100442/pdns_recursor)): #0 0x000000080298140b in strlen () from /lib/libc.so.7 No symbol table info available. #1 0x0000000000433f75 in std::__1::char_traits::eq () No symbol table info available. #2 0x0000000000629e2e in json11::Json::~Json () No symbol table info available. #3 0x0000000000629ccb in json11::Json::~Json () No symbol table info available. #4 0x0000000000629a6b in json11::Json::~Json () No symbol table info available. #5 0x0000000000629723 in json11::Json::~Json () No symbol table info available. #6 0x000000000062956b in json11::Json::~Json () No symbol table info available. #7 0x0000000000629518 in json11::Json::~Json () No symbol table info available. #8 0x00000008016c3c45 in lua_getinfo () from /usr/local/lib/liblua-5.2.so No symbol table info available. #9 0x00000008016d14bb in lua_close () from /usr/local/lib/liblua-5.2.so No symbol table info available. #10 0x00000008016c41e2 in lua_getinfo () from /usr/local/lib/liblua-5.2.so No symbol table info available. #11 0x00000008016c36f3 in lua_getinfo () from /usr/local/lib/liblua-5.2.so No symbol table info available. #12 0x00000008016c46a8 in lua_yieldk () from /usr/local/lib/liblua-5.2.so No symbol table info available. #13 0x00000008016bf4c1 in lua_pcallk () from /usr/local/lib/liblua-5.2.so No symbol table info available. #14 0x00000000005cb40b in json11::Json::~Json () No symbol table info available. #15 0x00000000005cb1a2 in json11::Json::~Json () No symbol table info available. #16 0x00000000005caf7d in json11::Json::~Json () No symbol table info available. #17 0x00000000005cae5c in json11::Json::~Json () No symbol table info available. #18 0x00000000005c86e2 in json11::Json::~Json () No symbol table info available. #19 0x00000000005363b4 in json11::Json::~Json () No symbol table info available. #20 0x0000000000537273 in json11::Json::~Json () ---Type to continue, or q to quit--- No symbol table info available. #21 0x000000000073171a in json11::Json::~Json () No symbol table info available. #22 0x000000000079b508 in std::bad_cast::bad_cast () No symbol table info available. #23 0x000000000079b2cd in std::bad_cast::bad_cast () No symbol table info available. #24 0x000000000070555b in json11::Json::~Json () No symbol table info available. #25 0x00000000007053ab in json11::Json::~Json () No symbol table info available. #26 0x00000008014b12bf in make_fcontext () from /usr/local/lib/libboost_context.so.1.63.0 No symbol table info available. #27 0x0000000000000000 in ?? () No symbol table info available. Thread 2 (Thread 803406400 (LWP 100083/pdns_recursor)): #0 0x000000080262e13c in pthread_cleanup_pop () from /lib/libthr.so.3 No symbol table info available. #1 0x000000000075c041 in json11::Json::~Json () No symbol table info available. #2 0x000000000076f54e in json11::Json::~Json () No symbol table info available. #3 0x000000000040d81f in ?? () No symbol table info available. #4 0x0000000800eba000 in ?? () No symbol table info available. #5 0x0000000000000000 in ?? () No symbol table info available. #0 0x000000080298140b in strlen () from /lib/libc.so.7 (gdb)