Skip to content

Fix AddressSanitizer use-after-poison error #581

@bratpiorka

Description

@bratpiorka

See the reproduction in our CI: https://github.com/oneapi-src/unified-memory-framework/actions/runs/9718929516/job/26827947147

cmake -B /home/runner/work/unified-memory-framework/unified-memory-framework/build/ -DCMAKE_BUILD_TYPE=Debug -DUMF_BUILD_SHARED_LIBRARY=OFF -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON -DUMF_FORMAT_CODE_STYLE=OFF -DUMF_DEVELOPER_MODE=ON -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON -DUSE_ASAN=ON -DUSE_UBSAN=ON -DUSE_TSAN=OFF -DUMF_BUILD_EXAMPLES=ON -DUMF_TESTS_FAIL_ON_SKIP=ON

...

11/28 Test #11: umf-provider_os_memory .......................***Failed    0.42 sec

...

[ RUN      ] osProviderTest/umfProviderTest.alloc_page64_align_0/0
=================================================================
==4243==ERROR: AddressSanitizer: use-after-poison on address 0x7f55a322f000 at pc 0x7f55a3439c23 bp 0x7ffd04ce3270 sp 0x7ffd04ce2a18

How often bug is revealed:

often

Requested priority: Medium

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions