Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

tbbmalloc - _ctor access violation

ronag89
Beginner
498 Views
When uninitializing a thread and/or shutting down my application I sometimes get an access violation at "crtexe.c method __tmainCRTStartup()... if(has_cctor == 0) _cexit();".
The call stack only shows dlls, where tbbmalloc.dll is closes to the top.
I guess this occurs when the tbb allocator deallocates the memory pool for that specific thread. Question is what could cause this, and how can I go about debugging it?
0 Kudos
3 Replies
SergeyKostrov
Valued Contributor II
498 Views
Quoting ronag89
...Question is what could cause this, and how can I go about debugging it?


You need to build a debug version of TBB libarryand you should start debugging from the 'tbb_debug.dll'.
Your test application has to be set as a host. Please take a look at Visual Studioproject settings.

0 Kudos
Vladimir_P_1234567890
498 Views
hello,
what is the version and update numbers you use?
thanks.
--Vladimir
0 Kudos
Alexandr_K_Intel1
498 Views
Could you please send call stacks for all threads? Sure, the reproducer would be the best.
0 Kudos
Reply