-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
synth-domain crashes dnsmasq code #367
Comments
Further information: |
Please run
|
Hi,Results of commands below:root@pihole:~# addr2line 0x1870a -e $(which pihole-FTL)/root/project/signals.c:46root@pihole:~# addr2line 0x4af70a -e $(which pihole-FTL)??:0root@pihole:~#On 29 August 2018 at 17:02 DL6ER <notifications@github.com> wrote:Please runaddr2line 0x1870a -e $(which pihole-FTL)
addr2line 0x4af70a -e $(which pihole-FTL)
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread. Conrad WaddsRed Hat EngineerABN: 94 074 170 101PO Box 655 Gosford NSW 2250Phone: 0418 430 015 | CWadds@wadds.net.au
|
Okay, thanks. Unfortunately, that isn't very helpful. Could you run
? When it crashes, copy the output here. Please also enter |
Good morning:
Data as requested..
```
pi@pihole:~ $ sudo gdb -ex run --args $(which pihole-FTL) debug
GNU gdb (Raspbian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying"and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/pihole-FTL...done.
Starting program: /usr/bin/pihole-FTL debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".[2018-08-30 07:15:39.846] ########## FTL started! ##########
[2018-08-30 07:15:39.846] FTL branch:
[2018-08-30 07:15:39.847] FTL version: v4.0
[2018-08-30 07:15:39.847] FTL commit: 8493df4
[2018-08-30 07:15:39.847] FTL date: 2018-08-05 13:40:30 -0700
[2018-08-30 07:15:39.848] FTL user: root
[2018-08-30 07:15:39.848] WARNING: Starting pihole-FTL as user root is not recommended
[2018-08-30 07:15:39.848] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2018-08-30 07:15:39.848] SOCKET_LISTENING: only local
[2018-08-30 07:15:39.849] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2018-08-30 07:15:39.849] MAXDBDAYS: max age for stored queries is 365 days
[2018-08-30 07:15:39.849] RESOLVE_IPV6: Resolve IPv6 addresses
[2018-08-30 07:15:39.850] RESOLVE_IPV4: Resolve IPv4 addresses
[2018-08-30 07:15:39.850] DBINTERVAL: saving to DB file every minute
[2018-08-30 07:15:39.850] DBFILE: Using /etc/pihole/pihole-FTL.db
[2018-08-30 07:15:39.851] MAXLOGAGE: Importing up to 24.0 hours of log data
[2018-08-30 07:15:39.851] PRIVACYLEVEL: Set to 0
[2018-08-30 07:15:39.851] IGNORE_LOCALHOST: Show queries from localhost
[2018-08-30 07:15:39.852] BLOCKINGMODE: Null IPs for blocked domains
[2018-08-30 07:15:39.852] REGEX_DEBUGMODE: Inactive
[2018-08-30 07:15:39.852] Finished config file parsing
[2018-08-30 07:15:39.853] Compiled 0 Regex filters and 10 whitelisted domains in 0.3 msec (0 errors)
[2018-08-30 07:15:39.855] Database successfully initialized
[2018-08-30 07:15:39.856] SELECT * FROM queries WHERE timestamp >= 1535490939
[2018-08-30 07:15:39.858] Notice: Increasing queries struct size from 0 to 10000
[2018-08-30 07:15:39.858] Notice: Increasing domains struct size from 0 to 1000
[2018-08-30 07:15:39.858] Notice: Increasing clients struct size from 0 to 10
[2018-08-30 07:15:39.859] New forward server: 103.86.99.100 (0/0)[2018-08-30 07:15:39.859] Notice: Increasing forwarded struct size from 0 to 4
[2018-08-30 07:15:39.859] Notice: Increasing overTime struct size from 0 to 100
[2018-08-30 07:15:39.860] New forward server: 103.86.96.100 (1/4)
[2018-08-30 07:15:39.869] Notice: Increasing clients struct size from 10 to 20
[2018-08-30 07:15:39.883] Imported 2146 queries from the long-term database
[2018-08-30 7:15:39.883] -> Total DNS queries: 2146
[2018-08-30 07:15:39.884] -> Cached DNS queries: 326
[2018-08-30 07:15:39.884] -> Forwarded DNS queries: 921
[2018-08-30 07:15:39.884] -> Exactly blocked DNS queries: 412
[2018-08-30 07:15:39.884] -> Unknown DNS queries: 487
[2018-08-30 07:15:39.885] -> Unique domains: 140
[2018-08-30 07:15:39.885] -> Unique clients: 13
[2018-08-30 07:15:39.885] -> Known forward destinations: 2
[2018-08-30 07:15:39.885] Successfully accessed setupVars.conf
Program received signal SIGSEGV, Segmentation fault.
strrchr () at ../sysdeps/arm/armv6/strrchr.S:68
68 ../sysdeps/arm/armv6/strrchr.S: No such file or directory.
(gdb) bt
#0 strrchr () at ../sysdeps/arm/armv6/strrchr.S:68
#1 0x0044b4dc in one_opt (option=320, arg=<optimized out>, arg@entry=0x52a3d5 "wadds.net.au", errstr=0x0,
errstr@entry=0x1fc5e <error: Cannot access memory at address 0x1fc5e>, gen_err=0x1000 <error: Cannot access memory at address 0x1000>, command_line=command_line@entry=0, servers_only=servers_only@entry=0) at dnsmasq/option.c:2215
#2 0x0044c96c in read_file (file=0x22 <error: Cannot access memory at address 0x22>, file@entry=0x5819e0 "/etc/dnsmasq.d/03-reverse.conf", f=0x0, f@entry=0x529fe0, hard_opt=hard_opt@entry=0) at dnsmasq/option.c:4324
#3 0x0044ca9a in one_file (file=0x5819e0 "/etc/dnsmasq.d/03-reverse.conf", hard_opt=<optimized out>) at dnsmasq/option.c:4416
#4 0x0044c3ac in one_opt (option=<optimized out>, arg=<optimized out>, arg@entry=0x52a3d1 "ain", errstr=errstr@entry=0x188b <error: Cannot access memory at address 0x188b>, gen_err=<optimized out>, command_line=command_line@entry=0, servers_only=servers_only@entry=0) at dnsmasq/option.c:1643
#5 0x0044c96c in read_file (file=0x524be4 "\ufffdJ\022", file@entry=0x4f5f00 "/etc/dnsmasq.conf", f=0x0, f@entry=0x52a838, hard_opt=hard_opt@entry=0) at dnsmasq/option.c:4324
#6 0x0044ca9a in one_file (file=0x4f5f00 "/etc/dnsmasq.conf", hard_opt=<optimized out>) at dnsmasq/option.c:4416
#7 0x0044d99e in read_opts (argc=argc@entry=2, argv=argv@entry=0x529328, compile_opts=<optimized out>) at dnsmasq/option.c:4782
#8 0x0043a8d4 in main_dnsmasq (argc=2, argv=0x529328) at dnsmasq/dnsmasq.c:92
#9 0x00417028 in main (argc=2, argv=<optimized out>) at main.c:66
(gdb)
```
On 29 August 2018 at 20:13 DL6ER <notifications@github.com> wrote:
Okay, thanks. Unfortunately, that isn't very helpful.
Could you runsudo service pihole stop
sudo gdb -ex run --args $(which pihole-FTL) debug
?
When it crashes, copy the output here. Please also enter backtrace and post the output here.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread. Conrad WaddsRed Hat EngineerABN: 94 074 170 101PO Box 655 Gosford NSW 2250Phone: 0418 430 015 | CWadds@wadds.net.au
|
From the backtrace, I assume that the failure is triggered by a |
@cwadds Looking again at the |
Good Morning (Australia time),
You are correct, the contents of the reverse lookup file is as follows:
synth-domain=wadds.net.au,192.168.200.0/24
Firstly, I removed the offending file and tried to restart pihole without success.
I then rebooted the Pi and all is running as expected.
Thanks for your assistance.
Is there any likelihood of being able to use the reverse lookup functionality in pihole?
It is not a critical function for me, but I have found it useful. :-)
Cheers,
Conrad
|
Yes, this is a bug (we adopted this bug from You could use
to obtain
I'll work on a bug fix. Thanks for reporting this! |
Thanks for your efforts. I'll try your suggestion. |
This bug is a confirmed |
Note: This issue will be auto-closed once Pi-hole FTL v4.1 is released |
In raising this issue, I confirm the following (please check boxes, eg [X]) Failure to fill the template will close your issue:
How familiar are you with the codebase?:
1
[BUG | ISSUE] Expected Behaviour:
pihole-FTl running, resolving DNS queries
[BUG | ISSUE] Actual Behaviour:
pihole-FTL crashed, will not restart
[BUG | ISSUE] Steps to reproduce:
Upgrade Pi-hole using command: pihole -up
Upgrade occurred, but pihole-FTL crashes and will not restart
Rebooted Raspberry-Pi, pihole-FTL still will not start
Tried running: pihole-FTL dnsmasq-test Result: Segmentation fault
Log file output [if available]
[2018-08-29 08:37:59.019] ########## FTL started! ##########
[2018-08-29 08:37:59.020] FTL branch:
[2018-08-29 08:37:59.021] FTL version: v4.0
[2018-08-29 08:37:59.021] FTL commit: 8493df4
[2018-08-29 08:37:59.021] FTL date: 2018-08-05 13:40:30 -0700
[2018-08-29 08:37:59.021] FTL user: pihole
[2018-08-29 08:37:59.023] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2018-08-29 08:37:59.023] SOCKET_LISTENING: only local
[2018-08-29 08:37:59.023] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2018-08-29 08:37:59.023] MAXDBDAYS: max age for stored queries is 365 days
[2018-08-29 08:37:59.023] RESOLVE_IPV6: Resolve IPv6 addresses
[2018-08-29 08:37:59.023] RESOLVE_IPV4: Resolve IPv4 addresses
[2018-08-29 08:37:59.023] DBINTERVAL: saving to DB file every minute
[2018-08-29 08:37:59.024] DBFILE: Using /etc/pihole/pihole-FTL.db
[2018-08-29 08:37:59.024] MAXLOGAGE: Importing up to 24.0 hours of log data
[2018-08-29 08:37:59.024] PRIVACYLEVEL: Set to 0
[2018-08-29 08:37:59.024] IGNORE_LOCALHOST: Show queries from localhost
[2018-08-29 08:37:59.024] BLOCKINGMODE: Null IPs for blocked domains
[2018-08-29 08:37:59.024] REGEX_DEBUGMODE: Inactive
[2018-08-29 08:37:59.024] Finished config file parsing
[2018-08-29 08:37:59.025] Compiled 0 Regex filters and 10 whitelisted domains in 0.8 msec (0 errors)
[2018-08-29 08:37:59.052] Database successfully initialized
[2018-08-29 08:37:59.066] Notice: Increasing queries struct size from 0 to 10000
[2018-08-29 08:37:59.067] Notice: Increasing domains struct size from 0 to 1000
[2018-08-29 08:37:59.067] Notice: Increasing clients struct size from 0 to 10
[2018-08-29 08:37:59.067] New forward server: 103.86.99.100 (0/0)
[2018-08-29 08:37:59.067] Notice: Increasing forwarded struct size from 0 to 4
[2018-08-29 08:37:59.067] Notice: Increasing overTime struct size from 0 to 100
[2018-08-29 08:37:59.067] New forward server: 103.86.96.100 (1/4)
[2018-08-29 08:37:59.169] Notice: Increasing queries struct size from 10000 to 20000
[2018-08-29 08:37:59.264] Notice: Increasing queries struct size from 20000 to 30000
[2018-08-29 08:37:59.358] Notice: Increasing queries struct size from 30000 to 40000
[2018-08-29 08:37:59.361] Notice: Increasing clients struct size from 10 to 20
[2018-08-29 08:37:59.453] Notice: Increasing queries struct size from 40000 to 50000
[2018-08-29 08:37:59.524] Notice: Increasing overTime struct size from 100 to 200
[2018-08-29 08:37:59.543] Imported 48961 queries from the long-term database
[2018-08-29 08:37:59.544] -> Total DNS queries: 48961
[2018-08-29 08:37:59.544] -> Cached DNS queries: 1112
[2018-08-29 08:37:59.544] -> Forwarded DNS queries: 2841
[2018-08-29 08:37:59.544] -> Exactly blocked DNS queries: 1214
[2018-08-29 08:37:59.544] -> Unknown DNS queries: 43794
[2018-08-29 08:37:59.544] -> Unique domains: 287
[2018-08-29 08:37:59.545] -> Unique clients: 15
[2018-08-29 08:37:59.545] -> Known forward destinations: 2
[2018-08-29 08:37:59.545] Successfully accessed setupVars.conf
[2018-08-29 08:37:59.554] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2018-08-29 08:37:59.554] ----------------------------> FTL crashed! <----------------------------
[2018-08-29 08:37:59.554] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2018-08-29 08:37:59.554] Please report a bug at https://github.com/pi-hole/FTL/issues
[2018-08-29 08:37:59.554] and include in your report already the following details:
[2018-08-29 08:37:59.554] FTL has been running for 0 seconds
[2018-08-29 08:37:59.554] FTL branch:
[2018-08-29 08:37:59.554] FTL version: v4.0
[2018-08-29 08:37:59.554] FTL commit: 8493df4
[2018-08-29 08:37:59.554] FTL date: 2018-08-05 13:40:30 -0700
[2018-08-29 08:37:59.555] FTL user: pihole
[2018-08-29 08:37:59.555] Received signal: Segmentation fault
[2018-08-29 08:37:59.555] at address: 0
[2018-08-29 08:37:59.555] with code: SEGV_MAPERR (Address not mapped to object)
[2018-08-29 08:37:59.555] Backtrace:
[2018-08-29 08:37:59.555] B[0000]: /usr/bin/pihole-FTL(+0x1870a) [0x4af70a]
[2018-08-29 08:37:59.556] B[0001]: /lib/arm-linux-gnueabihf/libc.so.6(__default_rt_sa_restorer+0) [0x76e446c0]
[2018-08-29 08:37:59.556] Thank you for helping us to improve our FTL engine!
[2018-08-29 08:37:59.556] FTL terminated!
Device specifics
Hardware Type: Raspberry Pi 2 Model B Rev 1.1
OS: Linux pihole 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux
This template was created based on the work of
udemy-dl
.The text was updated successfully, but these errors were encountered: