New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 765665 link

Starred by 2 users

Issue metadata

Status: Duplicate
Owner: ----
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

misaligned address in avrcp-lib.c

Project Member Reported by osh...@chromium.org, Sep 15 2017

Issue description

luiz.von.dentz@intel.com, can you look into this?

log:
https://build.chromium.org/p/chromiumos.chromium/builders/amd64-generic-tot-asan-informational/builds/14362/steps/UnitTest/logs/stdio



bluez-5.44-r108:  * ERROR: net-wireless/bluez-5.44-r108::chromiumos failed (test phase):
bluez-5.44-r108:  *   asan error not caught
bluez-5.44-r108:  * 
bluez-5.44-r108:  * Call stack:
bluez-5.44-r108:  *        ebuild.sh, line   93:  Called post_src_test
bluez-5.44-r108:  *      environment, line 4821:  Called cros_stack_hooks 'post_src_test'
bluez-5.44-r108:  *   profile.bashrc, line   86:  Called cros_post_src_test_asan_check
bluez-5.44-r108:  *   profile.bashrc, line  185:  Called die
bluez-5.44-r108:  * The specific snippet of code:
bluez-5.44-r108:  *   	rmdir "${T}/asan_logs" 2>/dev/null || die "asan error not caught"
bluez-5.44-r108:  * 
bluez-5.44-r108:  * If you need support, post the output of `emerge --info '=net-wireless/bluez-5.44-r108::chromiumos'`,
bluez-5.44-r108:  * the complete build log and the output of `emerge -pqv '=net-wireless/bluez-5.44-r108::chromiumos'`.
bluez-5.44-r108: 
bluez-5.44-r108:  * ASAN error detected:
bluez-5.44-r108:  * android/avrcp-lib.c:936:14: runtime error: load of misaligned address 0x617000024c96 for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment
bluez-5.44-r108:  * 0x617000024c96: note: pointer points here
bluez-5.44-r108:  *  00 00 00 01 00 00  00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
bluez-5.44-r108:  *              ^ 
bluez-5.44-r108:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior android/avrcp-lib.c:936:14 in 
bluez-5.44-r108: 
bluez-5.44-r108: 
bluez-5.44-r108:  * ASAN error detected:
bluez-5.44-r108:  * src/shared/util.c:141:15: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
bluez-5.44-r108:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/shared/util.c:141:15 in 
bluez-5.44-r108:  * src/shared/util.c:152:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
bluez-5.44-r108:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/shared/util.c:152:17 in 
bluez-5.44-r108: 
bluez-5.44-r108:  * The complete build log is located at '/build/amd64-generic/tmp/portage/logs/net-wireless:bluez-5.44-r108:20170915-132644.log'.
bluez-5.44-r108:  * For convenience, a symlink to the build log is located at '/build/amd64-generic/tmp/portage/net-wireless/bluez-5.44-r108/temp/build.log'.
bluez-5.44-r108:  * The ebuild environment file is located at '/build/amd64-generic/tmp/portage/net-wireless/bluez-5.44-r108/temp/environment'.
bluez-5.44-r108:  * Working directory: '/build/amd64-generic/tmp/portage/net-wireless/bluez-5.44-r108/work/bluez-5.44'
bluez-5.44-r108:  * S: '/build/amd64-generic/tmp/portage/net-wireless/bluez-5.44-r108/work/bluez-5.44'
bluez-5.44-r108: >>> Failed to emerge net-wireless/bluez-5.44-r108 for /build/amd64-generic/, Log file:
bluez-5.44-r108: >>>  '/build/amd64-generic/tmp/portage/logs/net-wireless:bluez-5.44-r108:20170915-132644.log'
bluez-5.44-r108: 
bluez-5.44-r108:  * Messages for package net-wireless/bluez-5.44-r108 merged to /build/amd64-generic/:
bluez-5.44-r108: 
bluez-5.44-r108:  * ERROR: net-wireless/bluez-5.44-r108::chromiumos failed (test phase):
bluez-5.44-r108:  *   asan error not caught
bluez-5.44-r108:  * 
bluez-5.44-r108:  * Call stack:
bluez-5.44-r108:  *        ebuild.sh, line   93:  Called post_src_test
bluez-5.44-r108:  *      environment, line 4821:  Called cros_stack_hooks 'post_src_test'
bluez-5.44-r108:  *   profile.bashrc, line   86:  Called cros_post_src_test_asan_check
bluez-5.44-r108:  *   profile.bashrc, line  185:  Called die
bluez-5.44-r108:  * The specific snippet of code:
bluez-5.44-r108:  *   	rmdir "${T}/asan_logs" 2>/dev/null || die "asan error not caught"
bluez-5.44-r108:  * 
bluez-5.44-r108:  * If you need support, post the output of `emerge --info '=net-wireless/bluez-5.44-r108::chromiumos'`,
bluez-5.44-r108:  * the complete build log and the output of `emerge -pqv '=net-wireless/bluez-5.44-r108::chromiumos'`.
bluez-5.44-r108:  * ASAN error detected:
bluez-5.44-r108:  * android/avrcp-lib.c:936:14: runtime error: load of misaligned address 0x617000024c96 for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment
bluez-5.44-r108:  * 0x617000024c96: note: pointer points here
bluez-5.44-r108:  *  00 00 00 01 00 00  00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
bluez-5.44-r108:  *              ^ 
bluez-5.44-r108:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior android/avrcp-lib.c:936:14 in 
bluez-5.44-r108:  * ASAN error detected:
bluez-5.44-r108:  * src/shared/util.c:141:15: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
bluez-5.44-r108:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/shared/util.c:141:15 in 
bluez-5.44-r108:  * src/shared/util.c:152:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
bluez-5.44-r108:  * SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/shared/util.c:152:17 in 
bluez-5.44-r108:  * The complete build log is located at '/build/amd64-generic/tmp/portage/logs/net-wireless:bluez-5.44-r108:20170915-132644.log'.
bluez-5.44-r108:  * For convenience, a symlink to the build log is located at '/build/amd64-generic/tmp/portage/net-wireless/bluez-5.44-r108/temp/build.log'.
bluez-5.44-r108:  * The ebuild environment file is located at '/build/amd64-generic/tmp/portage/net-wireless/bluez-5.44-r108/temp/environment'.
bluez-5.44-r108:  * Working directory: '/build/amd64-generic/tmp/portage/net-wireless/bluez-5.44-r108/work/bluez-5.44'

 

Comment 1 by xiy...@chromium.org, Sep 15 2017

Components: OS>Systems>Bluetooth

Comment 2 by r...@chromium.org, Sep 15 2017

Cc: mcchou@chromium.org sonnysasaka@chromium.org josephsih@chromium.org dmitrygr@google.com snanda@chromium.org

Comment 3 by osh...@chromium.org, Sep 18 2017

Cc: x...@chromium.org
I will take a look, are there any build integration of ASAN with autoconf?
Mergedinto: 748216
Status: Duplicate (was: Available)
Dupe of long-standing issue (which nevertheless needs to be resolved)

Sign in to add a comment