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

Queue : Assertion on clear

nitinsayare
Beginner
163 Views
Hi all,
I am using tbb2.1. When I am trying to "clear" the queue, I am getting an assertion saying that "Assertion my_rep->array.head_page==tp failed on line 653 of file ../src/tbb/concurrent_queue.cpp. Detailed description : at most one page should remain."
I am using debug libraries i.e. tbb_debug & tbbmalloc_debug.

Code :

tbb::concurrent_queue iq;

iq.push(2);
iq.push(3);

iq.clear(); //Asserts here.

Thanks in advance.


0 Kudos
1 Reply
Wooyoung_K_Intel
Employee
163 Views

Thanks for spotting another issue. Unfortunately, I am not able to reproduce this issue.

Could you wait for the next development release and re-test it and let us know the outcome?

thanks a lot

Reply