Re: [PATCH] HACKING: Add suppression file in valgrind cmd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gowtham,

On Mon, Nov 23, 2015 at 4:38 PM, Gowtham Anandha Babu
<gowtham.ab@xxxxxxxxxxx> wrote:
> 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 ffca598..a8fb403 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.
> --
> 1.9.1

Applied, thanks.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux