Skip to content

test_malloc_shutdown_hang (Debug build): Assertion isMallocInitialized() failed #558

Open
@phprus

Description

@phprus

Commit: 86fe3f0
MSVC: 19.21 32 bit
Windows 7 SP1.

CMake command:

cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=17 -G "NMake Makefiles" ..\..

Error:

F:\tmp\tbb\oneTBB-86fe3f04c1b319faecebdc8b642ecc896fbb2c3b\build\1921d>msvc_19.2
1_cxx17_32_md_debug\test_malloc_shutdown_hang.exe
[doctest] doctest version is "2.4.6"
[doctest] run with "--help" for options
===============================================================================
[doctest] test cases: 1 | 1 passed | 0 failed | 0 skipped
[doctest] assertions: 1 | 1 passed | 0 failed |
[doctest] Status: SUCCESS!
Assertion isMallocInitialized() failed (located in the internalPoolFree function, line in file: 2636)

Call Stack:

>   tbbmalloc_debug.dll!rml::internal::assertion_failure_impl(const char * location, int line, const char * expression, const char * comment) Line 51   C++
    tbbmalloc_debug.dll!rml::internal::assertion_failure::__l2::<lambda>() Line 73  C++
    tbbmalloc_debug.dll!tbb::detail::d0::run_initializer<void <lambda>(void)>(const rml::internal::assertion_failure::__l2::void <lambda>(void) & f, std::atomic<enum tbb::detail::d0::do_once_state> & state) Line 289 C++
    tbbmalloc_debug.dll!tbb::detail::d0::atomic_do_once<void <lambda>(void)>(const rml::internal::assertion_failure::__l2::void <lambda>(void) & initializer, std::atomic<enum tbb::detail::d0::do_once_state> & state) Line 277    C++
    tbbmalloc_debug.dll!rml::internal::assertion_failure(const char * location, int line, const char * expression, const char * comment) Line 73    C++
    tbbmalloc_debug.dll!rml::internal::internalPoolFree(rml::internal::MemoryPool * memPool, void * object, unsigned int size) Line 2636    C++
    tbbmalloc_debug.dll!rml::internal::internalFree(void * object) Line 2666    C++
    tbbmalloc_debug.dll!scalable_free(void * object) Line 2944  C++
    tbb12_debug.dll!tbb::detail::r1::deallocate_memory(void * p) Line 225   C++
    tbb12_debug.dll!tbb::detail::d1::tbb_allocator<std::_Tree_node<tbb::detail::d1::global_control *,void *>>::deallocate(std::_Tree_node<tbb::detail::d1::global_control *,void *> * p, unsigned int __formal) Line 65 C++
    [External Code] 
    ucrtbased.dll![Frames below may be incorrect and/or missing, no symbols loaded for ucrtbased.dll]   Unknown

Dump and PDB files in attach:
test_malloc_shutdown_hang.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions