[Boost-bugs] [Boost C++ Libraries] #6277: Checked iterators are not threadsafe

Subject: [Boost-bugs] [Boost C++ Libraries] #6277: Checked iterators are not threadsafe
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-16 10:32:54


#6277: Checked iterators are not threadsafe
-------------------------------------+--------------------------------------
 Reporter: internet@… | Owner: jano_gaspar
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: circular_buffer
  Version: Boost 1.46.1 | Severity: Showstopper
 Keywords: |
-------------------------------------+--------------------------------------
 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 1.46.1.1 (Ubuntu)
 Linux 1.48.0
 Windows 1.46.1

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6277>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC