TBB captured exception

TBB captured exception

Hi,

yesterday I got this exception while working with a concurrent vector and some std::vectors inside a task:

terminate called after throwing an instance of 'tbb::captured_exception'
what(): vector::_M_range_check

My question is: was the exception raised because I tried to access a position out of bounds in the concurrent vector, or could it be throw by the std::vector too but it was captured by the task scheduler?

Thanks.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Best Reply

Quoting morle...
My question is: was the exception raised because I tried to access a position out of bounds in the concurrent vector,

[SergeyK] That is possible. Would you be able to provide a Test-Case?

or could it be throw by the std::vector too but it was captured by the task scheduler?

...
what(): vector::_M_range_check
...

[SergeyK]Ithink Yes. STL vector exception messages have a'vector::' part. Check
these STLheaders:

stl_vector.h
stl_bvector.h
stl_deque.h

for more technical details.
Best regards,
Sergey


Thanks a lot

Thanks!!

It was a STL vector!

Leave a Comment

Please sign in to add a comment. Not a member? Join today