Skip to content

sporadic ASAN fail in tbb_pool_initialize #1150

@bratpiorka

Description

@bratpiorka

sporadic ASAN fail in tbb_pool_initialize

Environment Information

  • UMF version (hash commit or a tag): latest
  • OS(es) version(s): Ubuntu

Please provide a reproduction of the bug:

https://github.com/oneapi-src/unified-memory-framework/actions/runs/13647788125/job/38157099061?pr=1127

How often bug is revealed:

often

Actual behavior:

29/51 Test #29: umf-provider_file_memory_ipc .................***Failed    0.37 sec
...
[ RUN      ] FileProviderDifferentPoolsTest/umfIpcTest.ConcurrentDestroyIpcHandlers/1
=================================================================
==12745==ERROR: AddressSanitizer: use-after-poison on address 0x7f14ff[70](https://github.com/oneapi-src/unified-memory-framework/actions/runs/13647788125/job/38157099061?pr=1127#step:7:71)0000 at pc 0x7f1505039c23 bp 0x7ffca9c52990 sp 0x7ffca9c52138
WRITE of size 127728 at 0x7f14ff700000 thread T0
    #0 0x7f1505039c22 in __interceptor_memset ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:799
    #1 0x7f1504a4c489 in rml::pool_create_v1(long, rml::MemPoolPolicy const*, rml::MemoryPool**) (/lib/x86_64-linux-gnu/libtbbmalloc.so.2+0x13489)
    #2 0x557c9efeb8ae in tbb_pool_initialize /home/runner/work/unified-memory-framework/unified-memory-framework/src/pool/pool_scalable.c:295
    #3 0x557c9efcfea8 in umfPoolCreateInternal /home/runner/work/unified-memory-framework/unified-memory-framework/src/memory_pool.c:67
    #4 0x557c9efd07bc in umfPoolCreate /home/runner/work/unified-memory-framework/unified-memory-framework/src/memory_pool.c:146
    #5 0x557c9ef3ede1 in umfIpcTest::makePool() (/home/runner/work/unified-memory-framework/unified-memory-framework/build/test/umf_test-provider_file_memory_ipc+0x3fbde1)
    #6 0x557c9ef222f6 in umfIpcTest_ConcurrentDestroyIpcHandlers_Test::TestBody() /home/runner/work/unified-memory-framework/unified-memory-framework/test/ipcFixtures.hpp:6[78](https://github.com/oneapi-src/unified-memory-framework/actions/runs/13647788125/job/38157099061?pr=1127#step:7:79)
    #7 0x557c9f15205d in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /home/runner/work/unified-memory-framework/unified-memory-framework/build/_deps/googletest-src/googletest/src/gtest.cc:2638

Additional information about Priority and Help Requested:

Are you willing to submit a pull request with a proposed change? Yes

Requested priority: High

Metadata

Metadata

Assignees

No one assigned

    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