mirror of
https://github.com/collectd/collectd.git
synced 2026-02-09 04:09:15 +08:00
Valgrind reports an invalid read in common.c:parse_value. The error is supposed to happen in strlen() on a just previously strdup()ed string. Possibly, this is some sort of alignment issue. The read size is reported to be 4 on a buffer of size 3. https://bugzilla.redhat.com/show_bug.cgi?id=678518 may also be related.
31 lines
718 B
Bash
Executable File
31 lines
718 B
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# collectd -- testwrapper.sh
|
|
#
|
|
# A wrapper script for running tests. If valgrind is available, memory
|
|
# checking will be enabled for all tests.
|
|
|
|
set -e
|
|
|
|
MEMCHECK=""
|
|
|
|
if test -n "$VALGRIND"; then
|
|
MEMCHECK="$VALGRIND --quiet --tool=memcheck --error-exitcode=1"
|
|
MEMCHECK="$MEMCHECK --trace-children=yes"
|
|
MEMCHECK="$MEMCHECK --leak-check=full"
|
|
MEMCHECK="$MEMCHECK --gen-suppressions=all"
|
|
|
|
for f in "valgrind.$( uname -s ).suppress" "valgrind.suppress"; do
|
|
filename="$( dirname "$0" )/src/$f"
|
|
if test -e "$filename"; then
|
|
# Valgrind supports up to 100 suppression files.
|
|
MEMCHECK="$MEMCHECK --suppressions=$filename"
|
|
fi
|
|
done
|
|
fi
|
|
|
|
exec $MEMCHECK "$@"
|
|
|
|
# vim: set tw=78 sw=4 ts=4 noexpandtab :
|
|
|