Ticket #6277 (assigned Bugs)
Checked iterators are not threadsafe
|Reported by:||internet@…||Owned by:||viboes|
|Milestone:||To Be Determined||Component:||circular_buffer|
I encountered a problem whereby I was using the copy constructor of boost::circular_buffer in multiple threads. The attached code demonstrates the problem. The problem appears to be caused by the checked iterators, so does not occur in release builds.
Actual behaviour: Segmentation fault.
Expected behaviour: Program should loop indefinitely.
Workaround: #define BOOST_CB_DISABLE_DEBUG
Compilers tested: g++ 4.6.1 Visual C++ 2010 (cl.exe 16.00)
Platforms tested: x86_64-linux-gnu (Ubuntu 11.04) Windows 7 x64
Boost versions tested: Linux 184.108.40.206 (Ubuntu) Linux 1.48.0 Windows 1.46.1
- Owner changed from jano_gaspar to viboes
- Status changed from new to assigned