Opened 9 years ago

#9642 new Bugs

Possible race condition in boost::interprocess::message_queue creation

Reported by: namezero@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.54.0 Severity: Problem
Keywords: message_queue data race crash segfault access violation Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.