BUILD: run gtest with asan#340
Merged
Sergei-Lebedev merged 1 commit intoopenucx:masterfrom Nov 8, 2021
Merged
Conversation
bureddy
approved these changes
Nov 3, 2021
vspetrov
approved these changes
Nov 8, 2021
75c0c03 to
1397ebf
Compare
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.
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