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
pihole-FTL segmentation fault when calling getallqueries-client via Telnet API #328
Comments
Your version of FTL is from May. Can you update to the most recent beta version and see if the issues is still there? |
Ignore my previous post. Using the debugging output you provided I was able to isolate the cause of this failure. It still exists in the most recent version of the beta testing branches. I'm in the train and will push a fix soon. |
… before passing to strcmp(). Fixes #328 Signed-off-by: DL6ER <dl6er@dl6er.de>
… before passing to strcmp(). Fixes #328 Signed-off-by: DL6ER <dl6er@dl6er.de>
I don't mind testing @DL6ER When you say "update to the most recent beta version" ... are you implying to pull the binary from an alternate branch or that the |
Yesterday, we updated the Thanks for reporting this and providing very useful debugging information! |
In raising this issue, I confirm the following
Well .. It looks similar to these other unresolved issues that have not yet been repeatable (As this one is):
How familiar are you with the codebase?:
2 on a scale of 1 to 4.
Expected Behaviour:
pihole-FTL doesn't crash
Actual Behaviour:
pihole-FTL crashes
Steps to reproduce:
With either an existing install or a clean install from
master
+FTLDNS
Navigate to
http://<pi-hole-server>/admin/queries.php?client=<raw-ip-address>
When you hit this page for a client that has been PTR'd and resolved, no error. When you hit that page for a client with a fresh IP address that has not been PTR'd, pihole-FTL crashes.
So;
Calling pages that make other Telnet API queries such as "top domains" does not appear to invoke the same problem, so it appears that just this one command may have an issue.
Log file output # 1 (from /var/log/pihole-FTL.log)
Log file output # 2 (as per "the debugging instructions")
Device specifics
Hardware Type: VM
OS: Alpine Linux.
Additional information
Pi-hole is not a DHCP server in this scenario. It is referring all reverse lookup queries to an upstream server, hence there is a small delay between new clients arriving in pi-hole (As IP addresses) vs being PTR resolved to hostnames.
The text was updated successfully, but these errors were encountered: