Subject: [Boost-bugs] [Boost C++ Libraries] #9642: Possible race condition in boost::interprocess::message_queue creation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-07 14:50:29
#9642: Possible race condition in boost::interprocess::message_queue creation
-------------------------------------------------+-------------------------
Reporter: namezero@⦠| Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component:
Version: Boost 1.54.0 | interprocess
Keywords: message_queue data race crash | Severity: Problem
segfault access violation |
-------------------------------------------------+-------------------------
Dear folks,
I am trying to debug sporadic access violations that occur inside a
boost::interprocess message queue. (access violation reading an address in
the shared memory region).
Environment: boost 1.54, VC++2010. Occurs in both Debug & Release builds.
It always occurs on or about line 854 (in case of reception) in
message_queue.hpp: Comments were added by me
recvd_size = top_msg.len; // top_msg points to invalid location
Or line 756 (in case of sending)
BOOST_ASSERT(free_msg_hdr.priority == 0); // free_msg_hdr points to
invalid location
Please see this S/O link for the entire question, plus sample code that
reproduces the problem for me:
[http://stackoverflow.com/questions/21628306/boostinterprocess-message-
queue-race-condition-on-creation]
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9642> 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:15 UTC