From 95049a1816d9d963988f3209b299edc53bd5dc44 Mon Sep 17 00:00:00 2001 From: Gowtham Anandha Babu Date: Mon, 23 Nov 2015 20:08:07 +0530 Subject: HACKING: Add suppression file in valgrind cmd Without --suppressions=./tools/valgrind.supp in valgrind cmd, bluetoothd throws following error: ==1237== Syscall param socketcall.bind(my_addr.rc_bdaddr) points to uninitialised byte(s) ==1237== at 0x588B227: bind (syscall-template.S:81) ==1237== by 0x451545: logging_open (log.c:76) ==1237== by 0x451545: __btd_log_init (log.c:314) ==1237== by 0x40B035: main (main.c:610) ==1237== Address 0xfff0003b6 is on thread 1's stack ==1237== in frame #1, created by __btd_log_init (log.c:306) ==1237== Uninitialised value was created by a stack allocation ==1237== at 0x451490: __btd_log_init (log.c:306) ==1237== ==1237== Syscall param socketcall.bind(my_addr.rc_channel) points to uninitialised byte(s) ==1237== at 0x588B227: bind (syscall-template.S:81) ==1237== by 0x451545: logging_open (log.c:76) ==1237== by 0x451545: __btd_log_init (log.c:314) ==1237== by 0x40B035: main (main.c:610) ==1237== Address 0xfff0003b8 is on thread 1's stack ==1237== in frame #1, created by __btd_log_init (log.c:306) ==1237== Uninitialised value was created by a stack allocation ==1237== at 0x451490: __btd_log_init (log.c:306) --- HACKING | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HACKING b/HACKING index ffca598d8..a8fb403e5 100644 --- a/HACKING +++ b/HACKING @@ -89,8 +89,9 @@ automatically includes this option. # sudo ./src/bluetoothd -n -d Run daemon with valgrind - # sudo valgrind --trace-children=yes --track-origins=yes --track-fds=yes - --show-possibly-lost=no --leak-check=full ./src/bluetoothd -n -d + # sudo valgrind --trace-children=yes --track-origins=yes --track-fds=yes \ + --show-possibly-lost=no --leak-check=full --suppressions=./tools/valgrind.supp \ + ./src/bluetoothd -n -d For production installations or distribution packaging it is important that the "--enable-maintainer-mode" option is NOT used. -- cgit v1.2.1