oneTBB
                                
                                 oneTBB copied to clipboard
                                
                                    oneTBB copied to clipboard
                            
                            
                            
                        Failed assert with Asan in debug mode on Linux
Summary
Hi. When running TBB with Asan + GCC on Linux in Debug mode, I'm hitting this assert: https://github.com/uxlfoundation/oneTBB/blob/e1caa5f5a7572a0cd74fcf63270e059bf5ac4321/src/tbb/governor.cpp#L177
jdumas@hostname ~/e/g/o/build (master)> ./gnu_13.3_cxx11_64_debug/test_task
[doctest] doctest version is "2.4.11"
[doctest] run with "--help" for options
Assertion &stack_limit > stack_limit failed (located in the get_stack_attributes function, line in file: 177)
Detailed description: stack size must be positive
===============================================================================
test/tbb/test_task.cpp:124:
TEST CASE:  External threads sleep
test/tbb/test_task.cpp:124: FATAL ERROR: test case CRASHED: SIGABRT - Abort (abnormal termination) signal
===============================================================================
[doctest] test cases: 1 | 0 passed | 1 failed | 17 skipped
[doctest] assertions: 0 | 0 passed | 0 failed |
[doctest] Status: FAILURE!
Version
I was able to reproduce the issue on both v2021.13.0 and v2022.1.0.
Environment
Provide any environmental details that you consider significant for reproducing the issue. The following information is important:
- AMD Ryzen Threadripper PRO 7975WX
- Ubuntu 24.04.1 LTS
- GCC 13.3.0
Observed Behavior
Assert failure.
Expected Behavior
No assert failure.
Steps To Reproduce
git clone [email protected]:uxlfoundation/oneTBB.git
cd oneTBB
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DTBB_SANITIZE=address
cmake --build . -j
./gnu_13.3_cxx11_64_debug/test_task