Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nitinsayare
Beginner
71 Views

Queue : Assertion on clear

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
71 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