-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
On Ubuntu 20.04 (and Rocky Linux 8 but not other OS) using commit 476fd47, the tests (track_object, link)
and (track_object, some_leak)
trigger a stack-buffer-overflow in address sanitizer.
export AOCL_BOARD_PACKAGE_ROOT="$PWD"/test/board/a10_ref
mkdir -p build/debug && cd build/debug
cmake -G Ninja ../.. -DCMAKE_BUILD_TYPE=Debug -DACL_WITH_ASAN=ON
ninja && test/acl_test -v
sizeof platform 753160
sizeof context 1648
sizeof command queue 232. Initially allocated 1024 queues
sizeof event 400
sizeof cl_mem 6360
sizeof kernel 248
sizeof device_op_queue 214144
CreateBuffer
CreateBuffer Finished: 623000000100
TEST(acl_usm, memfill_usm)CreateBuffer
CreateBuffer Finished: 623000001d00
CreateBuffer
CreateBuffer Finished: 623000003900
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
- 16 ms
TEST(acl_usm, memcpy_usm)CreateBuffer
CreateBuffer Finished: 623000005500
CreateBuffer
CreateBuffer Finished: 623000007100
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
CreateBuffer
CreateBuffer Finished: 623000008d00
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20800 - 55555aa20c00
- 125 ms
TEST(acl_usm, meminfo_usm)CreateBuffer
CreateBuffer Finished: 623000001d00
CreateBuffer
CreateBuffer Finished: 623000003900
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
CreateBuffer
CreateBuffer Finished: 623000000100
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
- 1 ms
TEST(acl_usm, alloc_and_free_host_usm)CreateBuffer
CreateBuffer Finished: 62300000a900
CreateBuffer
CreateBuffer Finished: 62300000c500
CreateBuffer
CreateBuffer Finished: 62300000e100
- 2 ms
TEST(acl_usm, alloc_and_free_shared_usm)CreateBuffer
CreateBuffer Finished: 62300000fd00
- 1 ms
TEST(acl_usm, buffer_location_usm)CreateBuffer
CreateBuffer Finished: 623000011900
CreateBuffer
CreateBuffer Finished: 623000013500
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
- 1 ms
TEST(acl_usm, alloc_and_free_device_usm)CreateBuffer
CreateBuffer Finished: 623000015100
CreateBuffer
CreateBuffer Finished: 623000016d00
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
CreateBuffer
CreateBuffer Finished: 623000018900
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
CreateBuffer
CreateBuffer Finished: 62300001a500
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
CreateBuffer
CreateBuffer Finished: 62300001c100
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
CreateBuffer
CreateBuffer Finished: 62300001dd00
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
CreateBuffer
CreateBuffer Finished: 62300001f900
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
CreateBuffer
CreateBuffer Finished: 623000021500
acl_do_physical_buffer_allocation
resizing reserved_allocations, physical_device_id:0, target_size:1
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20800 - 55555aa20c00
- 2 ms
TEST(acl_thread, kernel_and_printf_callback)CreateBuffer
CreateBuffer Finished: 623000023100
CreateBuffer
CreateBuffer Finished: 623000024d00
CreateBuffer
CreateBuffer Finished: 623000026900
CreateBuffer
CreateBuffer Finished: 623000028500
kernel args
arg 0 mem_obj 623000024d00 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:623000024d00, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
acl_reserve_buffer_block finished block_allocation:60400000e510, range:55555aa20400 - 55555aa20800
count 1
arg 1 const
arg 2 mem_obj 623000026900 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:623000026900, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20800 - 55555aa20c00
acl_reserve_buffer_block finished block_allocation:60400000e550, range:55555aa20800 - 55555aa20c00
count 1
arg 3 local
arg 4 mem_obj 623000028500 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:623000028500, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20c00 - 55555aa21000
acl_reserve_buffer_block finished block_allocation:60400000e590, range:55555aa20c00 - 55555aa21000
count 1
acl_mem_migrate_buffer
object 0, mem 623000024d00, count 1:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 1, mem 623000026900, count 1:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 2, mem 623000028500, count 1:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_launch_kernel
- 1 ms
TEST(envsets, test) - 0 ms
TEST(Min, basic) - 0 ms
TEST(acl_svm, memfill_svm)CreateBuffer
CreateBuffer Finished: 62300002a100
- 1 ms
TEST(acl_svm, memcpy_svm)CreateBuffer
CreateBuffer Finished: 62300002bd00
- 1 ms
TEST(acl_svm, alloc_and_free_svm)CreateBuffer
CreateBuffer Finished: 62300002d900
- 2 ms
TEST(support, glob) - 15 ms
TEST(support, realpath) - 3 ms
TEST(support, make_path_to_dir) - 32 ms
TEST(from_source, link_program)CreateBuffer
CreateBuffer Finished: 62300002f500
CreateBuffer
CreateBuffer Finished: 623000031100
- 2 ms
TEST(from_source, compile_program)CreateBuffer
CreateBuffer Finished: 623000032d00
CreateBuffer
CreateBuffer Finished: 623000034900
- 1 ms
TEST(from_source, offline_mode_build_failure)CreateBuffer
CreateBuffer Finished: 623000036500
CreateBuffer
CreateBuffer Finished: 623000038100
- 1 ms
TEST(from_source, online_mode)CreateBuffer
CreateBuffer Finished: 623000039d00
CreateBuffer
CreateBuffer Finished: 62300003b900
- 4473 ms
TEST(from_source, make_prog_dir_and_build_command)CreateBuffer
CreateBuffer Finished: 62300003d500
CreateBuffer
CreateBuffer Finished: 62300003f100
- 4799 ms
TEST(from_source, hash_dir_name)CreateBuffer
CreateBuffer Finished: 623000040d00
- 1 ms
TEST(acl_program, build_info)CreateBuffer
CreateBuffer Finished: 623000042900
CreateBuffer
CreateBuffer Finished: 623000044500
- 1 ms
TEST(acl_program, build_good)CreateBuffer
CreateBuffer Finished: 623000046100
CreateBuffer
CreateBuffer Finished: 623000047d00
- 1 ms
TEST(acl_program, program_info)CreateBuffer
CreateBuffer Finished: 623000049900
CreateBuffer
CreateBuffer Finished: 62300004b500
- 2 ms
TEST(acl_program, build_ok_probe_data)CreateBuffer
CreateBuffer Finished: 62300004d100
CreateBuffer
CreateBuffer Finished: 62300004ed00
- 1 ms
TEST(acl_program, build_bad_invalid_bin_loaded)CreateBuffer
CreateBuffer Finished: 623000050900
CreateBuffer
CreateBuffer Finished: 623000052500
- 1 ms
TEST(acl_program, build_bad)CreateBuffer
CreateBuffer Finished: 623000054100
CreateBuffer
CreateBuffer Finished: 623000055d00
- 1 ms
TEST(acl_program, create_from_builtin)CreateBuffer
CreateBuffer Finished: 623000057900
CreateBuffer
CreateBuffer Finished: 623000059500
- 1 ms
TEST(acl_program, create_from_binary)CreateBuffer
CreateBuffer Finished: 62300005b100
CreateBuffer
CreateBuffer Finished: 62300005cd00
- 1 ms
TEST(acl_program, create_from_binary_bad)CreateBuffer
CreateBuffer Finished: 62300005e900
CreateBuffer
CreateBuffer Finished: 623000060500
- 1 ms
TEST(acl_program, create_from_source)CreateBuffer
CreateBuffer Finished: 623000062100
CreateBuffer
CreateBuffer Finished: 623000063d00
- 1 ms
TEST(acl_program, create_from_source_bad)CreateBuffer
CreateBuffer Finished: 623000065900
CreateBuffer
CreateBuffer Finished: 623000067500
- 1 ms
TEST(acl_program, retain_release_validity)CreateBuffer
CreateBuffer Finished: 623000069100
CreateBuffer
CreateBuffer Finished: 62300006ad00
- 1 ms
TEST(acl_program, valid)CreateBuffer
CreateBuffer Finished: 62300006c900
CreateBuffer
CreateBuffer Finished: 623000070100
- 1 ms
TEST(acl_program, link)CreateBuffer
CreateBuffer Finished: 623000071d00
CreateBuffer
CreateBuffer Finished: 623000073900
- 1 ms
TEST(acl_no_profile, profile_info)CreateBuffer
CreateBuffer Finished: 623000075500
CreateBuffer
CreateBuffer Finished: 623000077100
kernel args
arg 0 mem_obj 623000077100 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:623000077100, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
acl_reserve_buffer_block finished block_allocation:604000043950, range:55555aa20400 - 55555aa20800
count 1
arg 1 mem_obj 623000077100 regular buffer needed_physical_id 0 needed_mem_id 0 count 2
arg 2 mem_obj 623000077100 regular buffer needed_physical_id 0 needed_mem_id 0 count 3
acl_mem_migrate_buffer
object 0, mem 623000077100, count 3:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 1, mem 623000077100, count 2:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 2, mem 623000077100, count 1:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_launch_kernel
- 2 ms
TEST(acl_no_profile, no_profiler)CreateBuffer
CreateBuffer Finished: 623000078d00
CreateBuffer
CreateBuffer Finished: 62300007a900
kernel args
arg 0 mem_obj 62300007a900 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:62300007a900, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
acl_reserve_buffer_block finished block_allocation:604000049a50, range:55555aa20400 - 55555aa20800
count 1
arg 1 mem_obj 62300007a900 regular buffer needed_physical_id 0 needed_mem_id 0 count 2
arg 2 mem_obj 62300007a900 regular buffer needed_physical_id 0 needed_mem_id 0 count 3
acl_mem_migrate_buffer
object 0, mem 62300007a900, count 3:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 1, mem 62300007a900, count 2:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 2, mem 62300007a900, count 1:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_launch_kernel
- 2 ms
TEST(acl_profile, profile_info)CreateBuffer
CreateBuffer Finished: 62300007c500
CreateBuffer
CreateBuffer Finished: 62300007e100
CreateBuffer
CreateBuffer Finished: 62300007fd00
kernel args
arg 0 mem_obj 62300007fd00 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:62300007fd00, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
acl_reserve_buffer_block finished block_allocation:60400004f890, range:55555aa20400 - 55555aa20800
count 1
arg 1 mem_obj 62300007fd00 regular buffer needed_physical_id 0 needed_mem_id 0 count 2
arg 2 mem_obj 62300007fd00 regular buffer needed_physical_id 0 needed_mem_id 0 count 3
acl_mem_migrate_buffer
object 0, mem 62300007fd00, count 3:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 1, mem 62300007fd00, count 2:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 2, mem 62300007fd00, count 1:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_launch_kernel
- 3 ms
TEST(acl_profile, profiler_host_query_api)CreateBuffer
CreateBuffer Finished: 623000081900
CreateBuffer
CreateBuffer Finished: 623000083500
- 2 ms
TEST(acl_profile, init_profiler)CreateBuffer
CreateBuffer Finished: 623000085100
CreateBuffer
CreateBuffer Finished: 623000086d00
- 2 ms
TEST(acl_profile, shared_counter_checks)CreateBuffer
CreateBuffer Finished: 623000088900
CreateBuffer
CreateBuffer Finished: 62300008a500
- 1 ms
TEST(acl_profile, valid_checks)CreateBuffer
CreateBuffer Finished: 62300008c100
CreateBuffer
CreateBuffer Finished: 62300008dd00
- 1 ms
TEST(acl_profile, op_type_checks)CreateBuffer
CreateBuffer Finished: 62300008f900
CreateBuffer
CreateBuffer Finished: 623000091500
CreateBuffer
CreateBuffer Finished: 623000093100
kernel args
arg 0 mem_obj 623000093100 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:623000093100, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
acl_reserve_buffer_block finished block_allocation:6040000648d0, range:55555aa20400 - 55555aa20800
count 1
arg 1 mem_obj 623000093100 regular buffer needed_physical_id 0 needed_mem_id 0 count 2
arg 2 mem_obj 623000093100 regular buffer needed_physical_id 0 needed_mem_id 0 count 3
acl_mem_migrate_buffer
object 0, mem 623000093100, count 3:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 1, mem 623000093100, count 2:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 2, mem 623000093100, count 1:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_launch_kernel
- 2 ms
TEST(acl_profile, open_close_file)CreateBuffer
CreateBuffer Finished: 623000094d00
CreateBuffer
CreateBuffer Finished: 623000096900
CreateBuffer
CreateBuffer Finished: 623000098500
kernel args
arg 0 mem_obj 623000098500 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:623000098500, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
acl_reserve_buffer_block finished block_allocation:60400006b450, range:55555aa20400 - 55555aa20800
count 1
arg 1 mem_obj 623000098500 regular buffer needed_physical_id 0 needed_mem_id 0 count 2
arg 2 mem_obj 623000098500 regular buffer needed_physical_id 0 needed_mem_id 0 count 3
acl_mem_migrate_buffer
object 0, mem 623000098500, count 3:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 1, mem 623000098500, count 2:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 2, mem 623000098500, count 1:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_launch_kernel
- 4 ms
TEST(acl_profile, profiler)CreateBuffer
CreateBuffer Finished: 62300009a100
CreateBuffer
CreateBuffer Finished: 62300009bd00
CreateBuffer
CreateBuffer Finished: 62300009d900
kernel args
arg 0 mem_obj 62300009d900 regular buffer needed_physical_id 0 needed_mem_id 0 resizing reserved_allocations, physical_device_id:0, target_size:1
needs reservation acl_reserve_buffer_block mem:62300009d900, region:55555a38fa68, physical_device_id:0, target_mem_id:0
acl_allocate_block size:400, working_range:55555aa20400 - 55555ca20400, initial try:55555aa20400
acl_allocate_block finished: result:1, block_allocation:55555aa20400 - 55555aa20800
acl_reserve_buffer_block finished block_allocation:604000077c50, range:55555aa20400 - 55555aa20800
count 1
arg 1 mem_obj 62300009d900 regular buffer needed_physical_id 0 needed_mem_id 0 count 2
arg 2 mem_obj 62300009d900 regular buffer needed_physical_id 0 needed_mem_id 0 count 3
acl_mem_migrate_buffer
object 0, mem 62300009d900, count 3:allocation was deferred
already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 1, mem 62300009d900, count 2:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_mem_migrate_buffer
object 2, mem 62300009d900, count 1:already at dest
Memory op is already complete
acl_mem_migrate_buffer finished
acl_launch_kernel
- 3 ms
TEST(track_object, some_leak)=================================================================
==2507==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fffffffc7a8 at pc 0x2aaaaab4da7d bp 0x7fffffffb570 sp 0x7fffffffad18
READ of size 14 at 0x7fffffffc7a8 thread T0
#0 0x2aaaaab4da7c in __interceptor_strlen ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:354
#1 0x5555557f2262 in std::char_traits<char>::length(char const*) /usr/include/c++/9/bits/char_traits.h:342
#2 0x5555557f2262 in std::string::assign(char const*) /usr/include/c++/9/bits/basic_string.h:4403
#3 0x5555557f2262 in std::string::operator=(char const*) /usr/include/c++/9/bits/basic_string.h:3726
#4 0x5555557f2262 in acl_init_platform ../../src/acl_platform.cpp:311
#5 0x55555566e6c8 in acl_init_from_hal_discovery ../../src/acl_globals.cpp:211
#6 0x5555557ec844 in clGetPlatformIDsIntelFPGA ../../src/acl_platform.cpp:134
#7 0x5555557ec9d5 in clGetPlatformIDs ../../src/acl_platform.cpp:157
#8 0x555555eb26b7 in CppUTestGrouptrack_object::load_platform() ../../test/acl_platform_test.cpp:444
#9 0x555555eb26b7 in track_object_some_leak_Test::testBody() ../../test/acl_platform_test.cpp:521
#10 0x555556057158 in Utest::executePlatformSpecificTestBody() ../../lib/CppUTest/src/UtestPlatformGcc.cpp:82
#11 0x5555560535e7 in Utest::runInThread() ../../lib/CppUTest/src/Utest.cpp:99
#12 0x555555ebd034 in track_object_some_leak_Test::runInThreadOnCopy() ../../test/acl_platform_test.cpp:518
#13 0x5555560574f6 in Utest::executePlatformSpecificRunInThreads() ../../lib/CppUTest/src/UtestPlatformGcc.cpp:175
#14 0x555556053538 in Utest::run(TestResult&) ../../lib/CppUTest/src/Utest.cpp:83
#15 0x555556053441 in Utest::runOneTest(TestPlugin*, TestResult&) ../../lib/CppUTest/src/Utest.cpp:69
#16 0x555556057296 in Utest::executePlatformSpecificRunOneTest(TestPlugin*, TestResult&) ../../lib/CppUTest/src/UtestPlatformGcc.cpp:100
#17 0x5555560533ac in Utest::runOneTestWithPlugins(TestPlugin*, TestResult&) ../../lib/CppUTest/src/Utest.cpp:63
#18 0x55555605176d in TestRegistry::runAllTests(TestResult&) ../../lib/CppUTest/src/TestRegistry.cpp:72
#19 0x555556048175 in CommandLineTestRunner::runAllTests() ../../lib/CppUTest/src/CommandLineTestRunner.cpp:105
#20 0x555556048502 in CommandLineTestRunner::runAllTestsMain() ../../lib/CppUTest/src/CommandLineTestRunner.cpp:81
#21 0x555556048757 in CommandLineTestRunner::RunAllTests(int, char const**) ../../lib/CppUTest/src/CommandLineTestRunner.cpp:63
#22 0x55555600ca1b in main ../../test/acl_test.cpp:90
#23 0x2aaaab8ea082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#24 0x5555555f12cd in _start (/nfs/site/disks/swuser_work_pcolberg/git/github.com/intel/fpga-runtime-for-opencl/build/debug/test/acl_test+0x9d2cd)
Address 0x7fffffffc7a8 is located in stack of thread T0 at offset 4168 in frame
#0 0x555555eb200d in track_object_some_leak_Test::testBody() ../../test/acl_platform_test.cpp:518
This frame has 89 object(s):
[32, 36) 'num' (line 443)
[48, 56) '<unknown>'
[80, 88) '<unknown>'
[112, 120) '<unknown>'
[144, 152) '<unknown>'
[176, 184) '<unknown>'
[208, 216) '<unknown>'
[240, 248) '<unknown>'
[272, 280) '<unknown>'
[304, 312) '<unknown>'
[336, 344) '<unknown>'
[368, 376) '<unknown>'
[400, 408) '<unknown>'
[432, 440) '<unknown>'
[464, 472) '<unknown>'
[496, 504) '<unknown>'
[528, 536) '<unknown>'
[560, 568) '<unknown>'
[592, 600) '<unknown>'
[624, 632) '<unknown>'
[656, 664) '<unknown>'
[688, 696) '<unknown>'
[720, 728) '<unknown>'
[752, 760) '<unknown>'
[784, 792) '<unknown>'
[816, 824) '<unknown>'
[848, 856) '<unknown>'
[880, 888) '<unknown>'
[912, 920) '<unknown>'
[944, 952) '<unknown>'
[976, 984) '<unknown>'
[1008, 1016) '<unknown>'
[1040, 1048) '<unknown>'
[1072, 1080) '<unknown>'
[1104, 1112) '<unknown>'
[1136, 1144) '<unknown>'
[1168, 1176) '<unknown>'
[1200, 1208) '<unknown>'
[1232, 1240) '<unknown>'
[1264, 1272) '<unknown>'
[1296, 1304) '<unknown>'
[1328, 1336) '<unknown>'
[1360, 1368) '<unknown>'
[1392, 1400) '<unknown>'
[1424, 1432) '<unknown>'
[1456, 1464) '<unknown>'
[1488, 1496) '<unknown>'
[1520, 1528) '<unknown>'
[1552, 1560) '<unknown>'
[1584, 1592) '<unknown>'
[1616, 1624) '<unknown>'
[1648, 1656) '<unknown>'
[1680, 1688) '<unknown>'
[1712, 1720) '<unknown>'
[1744, 1752) '<unknown>'
[1776, 1784) '<unknown>'
[1808, 1816) '<unknown>'
[1840, 1848) '<unknown>'
[1872, 1880) '<unknown>'
[1904, 1928) 'live_vec' (line 519)
[1968, 2008) '_f' (line 525)
[2048, 2088) '_f' (line 540)
[2128, 2168) '_f' (line 542)
[2208, 2248) '_f' (line 543)
[2288, 2328) '_f' (line 544)
[2368, 2408) '_f' (line 546)
[2448, 2488) '_f' (line 547)
[2528, 2568) '_f' (line 548)
[2608, 2648) '_f' (line 550)
[2688, 2728) '_f' (line 551)
[2768, 2808) '_f' (line 552)
[2848, 2888) '_f' (line 554)
[2928, 2968) '_f' (line 555)
[3008, 3048) '_f' (line 556)
[3088, 3128) '_f' (line 558)
[3168, 3208) '_f' (line 559)
[3248, 3288) '_f' (line 560)
[3328, 3368) '_f' (line 562)
[3408, 3448) '_f' (line 563)
[3488, 3528) '_f' (line 564)
[3568, 3608) '_f' (line 566)
[3648, 3688) '_f' (line 567)
[3728, 3768) '_f' (line 568)
[3808, 3848) '_f' (line 570)
[3888, 3928) '_f' (line 571)
[3968, 4008) '_f' (line 572)
[4048, 4088) '_f' (line 594)
[4128, 4168) '_f' (line 444) <== Memory access at offset 4168 overflows this variable
[4208, 4248) '_f' (line 445)
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:354 in __interceptor_strlen
Shadow bytes around the buggy address:
0x10007fff78a0: 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 f2
0x10007fff78b0: f2 f2 f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2 00 00
0x10007fff78c0: 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 f2 f2 f2
0x10007fff78d0: f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 00
0x10007fff78e0: 00 f2 f2 f2 f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2
=>0x10007fff78f0: 00 00 00 00 00[f2]f2 f2 f2 f2 00 00 00 00 00 f3
0x10007fff7900: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10007fff7930: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
0x10007fff7940: 00 00 00 00 00 00 00 00 00 00 00 00 f3 f3 f3 f3
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==2507==ABORTING
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working