Yesterday evening I updated the FTL-branch to the most recent version, and... it worked again! FTL now listens on for IPv4 TCP DNS requests. I did not work after the last update (the fix to the locking-problem), or after repeated new setups from the scratch. I am bit puzzled.
For the sake of completeness this is (and was before performing the latest update) the content of /etc/dnsmasq.d/01-pihole.conf
:
addn-hosts=/etc/pihole/local.list
addn-hosts=/etc/pihole/custom.list
localise-queries
no-resolv
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=2
log-async
server=8.8.8.8
server=8.8.4.4
interface=ens3
server=/use-application-dns.net/
No other files are in this directory.
It worked quite well until just now, when FTL crashed:
[2020-06-25 13:00:01.340 4838] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2020-06-25 13:00:01.340 4838] ----------------------------> FTL crashed! <----------------------------
[2020-06-25 13:00:01.340 4838] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2020-06-25 13:00:01.340 4838] Please report a bug at https://github.com/pi-hole/FTL/issues
[2020-06-25 13:00:01.340 4838] and include in your report already the following details:
[2020-06-25 13:00:01.340 4838] FTL has been running for 46876 seconds
[2020-06-25 13:00:01.340 4838] FTL branch: new/mac_clients
[2020-06-25 13:00:01.340 4838] FTL version: vDev-73473ac
[2020-06-25 13:00:01.340 4838] FTL commit: 73473ac
[2020-06-25 13:00:01.340 4838] FTL date: 2020-06-24 20:44:04 +0200
[2020-06-25 13:00:01.340 4838] FTL user: started as pihole, ended as pihole
[2020-06-25 13:00:01.340 4838] Compiled for x86_64 (compiled on CI) using gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
[2020-06-25 13:00:01.340 4838] Received signal: Segmentation fault
[2020-06-25 13:00:01.340 4838] at address: 0x18
[2020-06-25 13:00:01.340 4838] with code: SEGV_MAPERR (Address not mapped to object)
[2020-06-25 13:00:01.341 4838] Obtained lock for _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.341 4838] **** new UDP query[AAAA] "jenson.api.swiftkey.com" from ens3:fd00::c1a6:8f8e:24f:ff4 (ID 16366, FTL 22494, /root/project/src/dnsmasq/forward.c:1556)
[2020-06-25 13:00:01.341 4838] getOverTimeID(1593083100): 138
[2020-06-25 13:00:01.341 4838] Adding "jenson.api.swiftkey.com" (len 24) to buffer. next_str_pos is 56439
[2020-06-25 13:00:01.341 4838] jenson.api.swiftkey.com is not known
[2020-06-25 13:00:01.341 4838] Getting sqlite3_stmt** 0x558a8c3f6de0[15] --> 0x558a8c3fdf18
[2020-06-25 13:00:01.342 4838] domain_in_list("jenson.api.swiftkey.com", 0x558a8c3fdf18, whitelist): 0
[2020-06-25 13:00:01.342 4838] Getting sqlite3_stmt** 0x558a8c3f6e10[15] --> 0x558a8c3feb18
[2020-06-25 13:00:01.342 4838] domain_in_list("jenson.api.swiftkey.com", 0x558a8c3feb18, blacklist): 0
[2020-06-25 13:00:01.342 4838] Getting sqlite3_stmt** 0x558a8c401480[15] --> 0x558a8c3fe688
[2020-06-25 13:00:01.361 4838] domain_in_list("jenson.api.swiftkey.com", 0x558a8c3fe688, gravity): 0
[2020-06-25 13:00:01.362 4838] Removed lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:622)
[2020-06-25 13:00:01.362 4838] Waiting for lock in _FTL_forwarded() (/root/project/src/dnsmasq_interface.c:709)
[2020-06-25 13:00:01.362 4838] Obtained lock for _FTL_forwarded() (/root/project/src/dnsmasq_interface.c:709)
[2020-06-25 13:00:01.362 4838] **** forwarded jenson.api.swiftkey.com to 9.9.9.9 (ID 16366, /root/project/src/dnsmasq/forward.c:549)
[2020-06-25 13:00:01.362 4838] Removed lock in _FTL_forwarded() (/root/project/src/dnsmasq_interface.c:815)
[2020-06-25 13:00:01.372 4838] Backtrace:
[2020-06-25 13:00:01.373 4838] B[0000]: 0x558a8bcdf2c9, /usr/bin/pihole-FTL(+0x342c9) [0x558a8bcdf2c9]
[2020-06-25 13:00:01.389 4838] B[0001]: 0x7febddfe3730, /lib/x86_64-linux-gnu/libpthread.so.0(+0x12730) [0x7febddfe3730]
[2020-06-25 13:00:01.389 4838] B[0002]: 0x558a8bd64151, /usr/bin/pihole-FTL(+0xb9151) [0x558a8bd64151]
[2020-06-25 13:00:01.392 4838] B[0003]: 0x558a8bde7f7c, /usr/bin/pihole-FTL(+0x13cf7c) [0x558a8bde7f7c]
[2020-06-25 13:00:01.396 4838] B[0004]: 0x558a8bde8f39, /usr/bin/pihole-FTL(+0x13df39) [0x558a8bde8f39]
[2020-06-25 13:00:01.399 4838] B[0005]: 0x558a8bd4e0e7, /usr/bin/pihole-FTL(+0xa30e7) [0x558a8bd4e0e7]
[2020-06-25 13:00:01.403 4838] B[0006]: 0x558a8bd4eaeb, /usr/bin/pihole-FTL(+0xa3aeb) [0x558a8bd4eaeb]
[2020-06-25 13:00:01.406 4838] B[0007]: 0x558a8bdb9b9b, /usr/bin/pihole-FTL(+0x10eb9b) [0x558a8bdb9b9b]
[2020-06-25 13:00:01.416 4838] B[0008]: 0x558a8bdcf5bf, /usr/bin/pihole-FTL(+0x1245bf) [0x558a8bdcf5bf]
[2020-06-25 13:00:01.419 4838] B[0009]: 0x558a8bdd417f, /usr/bin/pihole-FTL(+0x12917f) [0x558a8bdd417f]
[2020-06-25 13:00:01.423 4838] Waiting for lock in _FTL_dnssec() (/root/project/src/dnsmasq_interface.c:1364)
[2020-06-25 13:00:01.423 4838] Obtained lock for _FTL_dnssec() (/root/project/src/dnsmasq_interface.c:1364)
[2020-06-25 13:00:01.423 4838] **** got DNSSEC details for jenson.api.swiftkey.com: 2 (ID 16366, /root/project/src/dnsmasq/forward.c:1237)
[2020-06-25 13:00:01.423 4838] Removed lock in _FTL_dnssec() (/root/project/src/dnsmasq_interface.c:1404)
[2020-06-25 13:00:01.423 4838] Waiting for lock in _FTL_reply() (/root/project/src/dnsmasq_interface.c:869)
[2020-06-25 13:00:01.423 4838] Obtained lock for _FTL_reply() (/root/project/src/dnsmasq_interface.c:869)
[2020-06-25 13:00:01.423 4838] **** got reply jenson.api.swiftkey.com is (NODATA) (ID 16366, /root/project/src/dnsmasq/cache.c:480)
[2020-06-25 13:00:01.423 4838] Flags: F_FORWARD F_NEG F_IPV6
[2020-06-25 13:00:01.423 4838] Removed lock in _FTL_reply() (/root/project/src/dnsmasq_interface.c:1019)
[2020-06-25 13:00:01.425 4838] B[0010]: 0x558a8bdd46d5, /usr/bin/pihole-FTL(+0x1296d5) [0x558a8bdd46d5]
[2020-06-25 13:00:01.428 4838] Waiting for lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.429 4838] Obtained lock for _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.429 4838] **** new UDP query[AAAA] "jenson.api.swiftkey.com" from ens3:192.168.2.105 (ID 16367, FTL 22495, /root/project/src/dnsmasq/forward.c:1549)
[2020-06-25 13:00:01.429 4838] getOverTimeID(1593083100): 138
[2020-06-25 13:00:01.429 4838] jenson.api.swiftkey.com is not known
[2020-06-25 13:00:01.429 4838] Getting sqlite3_stmt** 0x558a8c3f6de0[4] --> 0x558a8c3e5258
[2020-06-25 13:00:01.429 4838] domain_in_list("jenson.api.swiftkey.com", 0x558a8c3e5258, whitelist): 0
[2020-06-25 13:00:01.429 4838] Getting sqlite3_stmt** 0x558a8c3f6e10[4] --> 0x558a8c3e5068
[2020-06-25 13:00:01.429 4838] domain_in_list("jenson.api.swiftkey.com", 0x558a8c3e5068, blacklist): 0
[2020-06-25 13:00:01.429 4838] Getting sqlite3_stmt** 0x558a8c401480[4] --> 0x558a8c512688
[2020-06-25 13:00:01.429 4838] domain_in_list("jenson.api.swiftkey.com", 0x558a8c512688, gravity): 0
[2020-06-25 13:00:01.429 4838] Removed lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:622)
[2020-06-25 13:00:01.431 4838] **** got cache answer for jenson.api.swiftkey.com / / <unknown> (ID 16367, /root/project/src/dnsmasq/rfc1035.c:1797)
[2020-06-25 13:00:01.431 4838] Flags: F_FORWARD F_NEG F_IPV6
[2020-06-25 13:00:01.431 4838] Waiting for lock in _FTL_cache() (/root/project/src/dnsmasq_interface.c:1221)
[2020-06-25 13:00:01.431 4838] Obtained lock for _FTL_cache() (/root/project/src/dnsmasq_interface.c:1221)
[2020-06-25 13:00:01.431 4838] Removed lock in _FTL_cache() (/root/project/src/dnsmasq_interface.c:1314)
[2020-06-25 13:00:01.433 4838] B[0011]: 0x558a8bdd481a, /usr/bin/pihole-FTL(sqlite3_prepare_v2+0x1a) [0x558a8bdd481a]
[2020-06-25 13:00:01.434 4838] Waiting for lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.434 4838] Obtained lock for _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.434 4838] **** new UDP query[AAAA] "jenson.api.swiftkey.com" from ens3:fd00::c1a6:8f8e:24f:ff4 (ID 16368, FTL 22496, /root/project/src/dnsmasq/forward.c:1556)
[2020-06-25 13:00:01.434 4838] getOverTimeID(1593083100): 138
[2020-06-25 13:00:01.434 4838] jenson.api.swiftkey.com is known as not to be blocked
[2020-06-25 13:00:01.434 4838] Removed lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:622)
[2020-06-25 13:00:01.435 4838] **** got cache answer for jenson.api.swiftkey.com / / <unknown> (ID 16368, /root/project/src/dnsmasq/rfc1035.c:1797)
[2020-06-25 13:00:01.435 4838] Flags: F_FORWARD F_NEG F_IPV6
[2020-06-25 13:00:01.435 4838] Waiting for lock in _FTL_cache() (/root/project/src/dnsmasq_interface.c:1221)
[2020-06-25 13:00:01.435 4838] Obtained lock for _FTL_cache() (/root/project/src/dnsmasq_interface.c:1221)
[2020-06-25 13:00:01.435 4838] Removed lock in _FTL_cache() (/root/project/src/dnsmasq_interface.c:1314)
[2020-06-25 13:00:01.437 4838] Waiting for lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.437 4838] Obtained lock for _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.437 4838] **** new UDP query[AAAA] "jenson.api.swiftkey.com" from ens3:192.168.2.105 (ID 16369, FTL 22497, /root/project/src/dnsmasq/forward.c:1549)
[2020-06-25 13:00:01.437 4838] getOverTimeID(1593083100): 138
[2020-06-25 13:00:01.437 4838] jenson.api.swiftkey.com is known as not to be blocked
[2020-06-25 13:00:01.438 4838] Removed lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:622)
[2020-06-25 13:00:01.439 4838] **** got cache answer for jenson.api.swiftkey.com / / <unknown> (ID 16369, /root/project/src/dnsmasq/rfc1035.c:1797)
[2020-06-25 13:00:01.439 4838] Flags: F_FORWARD F_NEG F_IPV6
[2020-06-25 13:00:01.439 4838] Waiting for lock in _FTL_cache() (/root/project/src/dnsmasq_interface.c:1221)
[2020-06-25 13:00:01.439 4838] Obtained lock for _FTL_cache() (/root/project/src/dnsmasq_interface.c:1221)
[2020-06-25 13:00:01.439 4838] Removed lock in _FTL_cache() (/root/project/src/dnsmasq_interface.c:1314)
[2020-06-25 13:00:01.440 4838] B[0012]: 0x558a8bcecf0f, /usr/bin/pihole-FTL(getDatabaseHostname+0x19f) [0x558a8bcecf0f]
[2020-06-25 13:00:01.442 4838] Waiting for lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.442 4838] Obtained lock for _FTL_new_query() (/root/project/src/dnsmasq_interface.c:480)
[2020-06-25 13:00:01.442 4838] **** new UDP query[A] "jenson.api.swiftkey.com" from ens3:fd00::c1a6:8f8e:24f:ff4 (ID 16370, FTL 22498, /root/project/src/dnsmasq/forward.c:1556)
[2020-06-25 13:00:01.442 4838] getOverTimeID(1593083100): 138
[2020-06-25 13:00:01.443 4838] jenson.api.swiftkey.com is known as not to be blocked
[2020-06-25 13:00:01.443 4838] Removed lock in _FTL_new_query() (/root/project/src/dnsmasq_interface.c:622)
[2020-06-25 13:00:01.443 4838] Waiting for lock in _FTL_forwarded() (/root/project/src/dnsmasq_interface.c:709)
[2020-06-25 13:00:01.443 4838] Obtained lock for _FTL_forwarded() (/root/project/src/dnsmasq_interface.c:709)
[2020-06-25 13:00:01.443 4838] **** forwarded jenson.api.swiftkey.com to 9.9.9.9 (ID 16370, /root/project/src/dnsmasq/forward.c:549)
[2020-06-25 13:00:01.443 4838] Removed lock in _FTL_forwarded() (/root/project/src/dnsmasq_interface.c:815)
[2020-06-25 13:00:01.448 4838] B[0013]: 0x558a8bcdc37b, /usr/bin/pihole-FTL(+0x3137b) [0x558a8bcdc37b]
[2020-06-25 13:00:01.451 4838] B[0014]: 0x558a8bcdc55d, /usr/bin/pihole-FTL(resolveClients+0x12d) [0x558a8bcdc55d]
[2020-06-25 13:00:01.455 4838] B[0015]: 0x558a8bcdc88d, /usr/bin/pihole-FTL(DNSclient_thread+0xdd) [0x558a8bcdc88d]
[2020-06-25 13:00:01.460 4838] B[0016]: 0x7febddfd8fa3, /lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3) [0x7febddfd8fa3]
[2020-06-25 13:00:01.460 4838] B[0017]: 0x7febddf094cf, /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7febddf094cf]
[2020-06-25 13:00:01.460 4838] ------ Listing content of directory /dev/shm ------
[2020-06-25 13:00:01.460 4838] File Mode User:Group Filesize Filename
[2020-06-25 13:00:01.461 4838] rwxrwxrwx root:root 260 .
[2020-06-25 13:00:01.461 4838] rwxr-xr-x root:root 3K ..
[2020-06-25 13:00:01.461 4838] rw------- pihole:pihole 4K FTL-per-client-regex
[2020-06-25 13:00:01.461 4838] rw------- pihole:pihole 33K FTL-dns-cache
[2020-06-25 13:00:01.461 4838] rw------- pihole:pihole 12K FTL-overTime
[2020-06-25 13:00:01.461 4838] rw------- pihole:pihole 2M FTL-queries
[2020-06-25 13:00:01.461 4838] rw------- pihole:pihole 4K FTL-upstreams
[2020-06-25 13:00:01.462 4838] rw------- pihole:pihole 340K FTL-clients
[2020-06-25 13:00:01.462 4838] rw------- pihole:pihole 98K FTL-domains
[2020-06-25 13:00:01.462 4838] rw------- pihole:pihole 57K FTL-strings
[2020-06-25 13:00:01.462 4838] rw------- pihole:pihole 12 FTL-settings
[2020-06-25 13:00:01.462 4838] rw------- pihole:pihole 124 FTL-counters
[2020-06-25 13:00:01.462 4838] rw------- pihole:pihole 48 FTL-lock
[2020-06-25 13:00:01.462 4838] ---------------------------------------------------
[2020-06-25 13:00:01.462 4838] Thank you for helping us to improve our FTL engine!
[2020-06-25 13:00:01.462 4838] FTL terminated!
A pihole restardns
made everything functional again.