Skip to content

BUILD: run gtest with asan#340

Merged
Sergei-Lebedev merged 1 commit intoopenucx:masterfrom
Sergei-Lebedev:topic/asan
Nov 8, 2021
Merged

BUILD: run gtest with asan#340
Sergei-Lebedev merged 1 commit intoopenucx:masterfrom
Sergei-Lebedev:topic/asan

Conversation

@Sergei-Lebedev
Copy link
Copy Markdown
Contributor

@Sergei-Lebedev Sergei-Lebedev commented Nov 3, 2021

What

Add address sanitizer to github actions and fix found errors

==32393==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fffcb365bd0 at pc 0x7fbcf957bac4 bp 0x7fffcb365a30 sp 0x7fffcb365a28
WRITE of size 8 at 0x7fffcb365bd0 thread T0
SUMMARY: AddressSanitizer: stack-buffer-overflow cl_basic_lib.c:62 in ucc_cl_basic_get_lib_attr

==35806==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs free) on 0x6030000cb8f0
0x7f966b87b31c in ucc_ep_map_from_array ../../src/utils/ucc_coll_utils.c:221

Direct leak of 66913 byte(s) in 77 object(s) allocated from:
0x7f29f3848508 in ucc_tl_ucp_get_context_attr ../../../../../src/components/tl/ucp/tl_ucp_context.c:236
0x7f29fb6e76f5 in ucc_context_pack_addr ../../src/core/ucc_context.c:817
0x7f29fb6e7b7a in ucc_context_get_attr ../../src/core/ucc_context.c:854
0x7f29fb6e2cd8 in ucc_core_addr_exchange ../../src/core/ucc_context.c:372
0x7f29fb6e509b in ucc_context_create ../../src/core/ucc_context.c:571

Direct leak of 12 byte(s) in 1 object(s) allocated from:
0x7f29fba3ff48 in __interceptor_malloc ../../../../source/gcc-9.2.0/libsanitizer/asan/asan_malloc_linux.cc:144
0x7f29fb6fc011 in sbgp_create_socket ../../src/core/ucc_sbgp.c:36
0x7f29fb6fea0a in ucc_sbgp_create ../../src/core/ucc_sbgp.c:355
0x7f29fb6fb3a9 in ucc_team_topo_get_sbgp ../../src/core/ucc_topo.c:189

Direct leak of 8 byte(s) in 1 object(s) allocated from:
0x7fbd0eb2ff48 in __interceptor_malloc ../../../../source/gcc-9.2.0/libsanitizer/asan/asan_malloc_linux.cc:144
0x7fbd0e7ffedf in ucc_get_bound_socket_id ../../src/utils/ucc_proc_info.c:115
0x7fbd0e800760 in ucc_local_proc_info_init ../../src/utils/ucc_proc_info.c:206
0x7fbd0e7cf05e in ucc_constructor ../../src/core/ucc_constructor.c:106
0xaa0e6a in test_topo::test_topo() ../../../test/gtest/core/test_topo.cc:35

@Sergei-Lebedev Sergei-Lebedev merged commit a81034a into openucx:master Nov 8, 2021
@Sergei-Lebedev Sergei-Lebedev deleted the topic/asan branch November 8, 2021 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants