- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I am using tbb2.1. Surprisingly I am getting the segmentation fault when I am trying to push an element in the concurrent_queue after calling clear() on the concurrent_queue.
The following code is absolutely single-threaded, but it's crashing on last push (after clear).
Code:
I am using tbb2.1. Surprisingly I am getting the segmentation fault when I am trying to push an element in the concurrent_queue after calling clear() on the concurrent_queue.
The following code is absolutely single-threaded, but it's crashing on last push (after clear).
Code:
concurrent_queuemy_queue;
my_queue.push (10);
my_queue.push (20);
my_queue.push (30);
my_queue.clear();
my_queue.push(40); // What?? Can't I re-use the same object.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for uncovering an issue. I can reproduce it. I'll try to push the fix into the developer's release as quickly as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The fix is provided in the most recent development update of 2008-08-25.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page