Open cheese opened 4 years ago
How to change the log level for gearmand run by tests? So I can try to produce a more verbose log.
Or how to run gearmand under valgrind to detect memory issue?
How to change the log level for gearmand run by tests? So I can try to produce a more verbose log.
Or how to run gearmand under valgrind to detect memory issue?
I think I saw a target for running valgrind in the Makefile? Not sure....
Or how to run gearmand under valgrind to detect memory issue?
I think I saw a target for running valgrind in the Makefile? Not sure....
Yeah, type make valgrind
. That echoes another command that starts with make check
. If you copy and paste that command, it runs valgrind. There's also a make valgrind-supressions
and a make helgrind
. I'm not sure what the differences are with these.
Unfortunately, valgrind spews a bunch of errors like this:
Syscall param write(buf) points to uninitialised byte(s)
at 0x57D5281: write (27/nptl/../sysdeps/unix/sysv/linux/write.c:27)
by 0x57D4268: sem_open (27/nptl/sem_open.c:269)
by 0x1270B0: libtest::SignalThread::setup() (/tmp/gearmand/libtest/signal.cc:248)
which, based on my reading of https://stackoverflow.com/questions/35578095/, are completely spurious. But nearly every test fails because of it. I'm still going through the weeds on this....
The valgrind-supressions
[sic] command seems to suppress the Syscall param write(buf) points to uninitialised byte(s)
bogus errors. That's probably what you want. All tests pass. That's good news!
helgrind
has some FAILures though, and it seems to always hang in t/client
. I see a lot of Possible data race during read of size X
in the helgrind logs. I can't tell if those are spurious or not.
I am packaging 1.1.19.1 for Fedora and runs 'make test' during in %check session. I found sometimes test t/protocol gets stuck.
gearmand backtrace:
t/protocol.log:
var/log/gearmand.logXPGE8g: