Open
Conversation
added logic to print using -n arg
yboumenir
pushed a commit
that referenced
this pull request
Mar 11, 2016
valgrind seems to treat every bind to PF_BLUETOOTH as an RFCOMM socket causing the following false positives: Syscall param socketcall.bind(my_addr.rc_bdaddr) points to uninitialised byte(s) at 0x52728A7: bind (in /usr/lib64/libc-2.21.so) by 0x4045B1: logging_open (log.c:76) by 0x4045B1: __btd_log_init (log.c:298) by 0x402823: main (test-avctp.c:278) Address 0xffefffcb6 is on thread 1's stack in frame #1, created by __btd_log_init (log.c:290) Uninitialised value was created by a stack allocation at 0x404490: __btd_log_init (log.c:290) Syscall param socketcall.bind(my_addr.rc_channel) points to uninitialised byte(s) at 0x52728A7: bind (in /usr/lib64/libc-2.21.so) by 0x4045B1: logging_open (log.c:76) by 0x4045B1: __btd_log_init (log.c:298) by 0x402823: main (test-avctp.c:278) Address 0xffefffcb8 is on thread 1's stack in frame #1, created by __btd_log_init (log.c:290) Uninitialised value was created by a stack allocation at 0x404490: __btd_log_init (log.c:290)
yboumenir
pushed a commit
that referenced
this pull request
Mar 11, 2016
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.