Re: [Boost-bugs] [Boost C++ Libraries] #4010: Boost message queue bug

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4010: Boost message queue bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-27 11:42:27


#4010: Boost message queue bug
-------------------------------------------------+--------------------------
  Reporter: rusty0831 <rusty_lai@…> | Owner: igaztanaga
      Type: Bugs | Status: new
 Milestone: Boost 1.43.0 | Component: interprocess
   Version: Boost 1.42.0 | Severity: Problem
Resolution: | Keywords: bug message queue temp folder bootstamp
-------------------------------------------------+--------------------------

Comment (by klaas@…):

 I also noted this bug.
 It happened when using a shared_memory_object.
 We have a windows service that keeps running that we communicate with.
 After a while we had clients that failed to communicate with it.

 I tracked down the bug.
 It seems that NtQuerySystemInformation is used in
 get_system_time_of_day_information to create the path to store the files
 for sharing the memory.
 I noticed that after windows changed the time/date either by the Windows
 Time synchronization or by doing it manually, NtQuerySystemInformation
 returned another boot time then before.
 Because of this, when another process was started and tried to communicate
 with the windows service it failed as it was looking for the files in a
 different directory.

 I don't really have a suggestion with a decent fix.
 A workaround could be disabling the Windows Time service that does
 automatic synchronization (this workaround is untested).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4010#comment:6>
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:03 UTC