Hello Paolo,
yeah, I see the issue.
char* host is not checked and might be void, so strstr tries to read
from 0x0.
I use version 1.7.6 by package system, so switching to a git and master
branch is not an option.
But I can apply a patch. As quickfix I simpy supplied a sql_host setting
in conf,
Hi Goran,
Thanks for the extra info, it helped. It should be the case that master
code has already a fix for the issue. See:
https://github.com/pmacct/pmacct/commit/1922062277d87da024938cc3057df9a4c3725e76
I may suggest to run master code from GitHub or to apply this patch to
1.7.6 to test
Hi Sean,
I must admit this email thread went 'Read' in my email client and i lost
track of it. Please allow me a bit of time this week to get through it.
Apologies for the inconvenience.
Paolo
On 13/04/2021 16:41, Sean wrote:
Hi Paolo,
I was curious if you received and have had a chance
Hello Paolo,
I got neither gdb nor valgrind ready. But I can provide core and binary.
https://brunsware.de/pmacct/uacctd
https://brunsware.de/pmacct/core
Crash message was:
2021-04-14 14:59:41.467 debug uacctd[4758]: ( in/mysql ) *** Purging
queries queue ***
2021-04-14 14:59:41.467 debug
Hi Goran,
Can you please gather more information about the crash following these
instructions:
https://github.com/pmacct/pmacct/blob/master/QUICKSTART#L2876-#L2896
Output from either a gdb back trace or valgrind would be of help.
Paolo
On 13/04/2021 19:40, Göran Bruns wrote:
Hi there,
Hello Paola,
I installed valgrind and recompiled glibc and pmacct with debugging symbols.
This is the output.
rapna ~ # valgrind /usr/sbin/uacctd -d -f /etc/pmacctd/uacctd.conf
==3260== Memcheck, a memory error detector
==3260== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.