[Boost-bugs] [Boost C++ Libraries] #7235: mapped_region not accepting size = 0

Subject: [Boost-bugs] [Boost C++ Libraries] #7235: mapped_region not accepting size = 0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-15 19:34:47


#7235: mapped_region not accepting size = 0
--------------------------------------+-------------------------------------
 Reporter: matthieu.dorier@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.50.0 | Severity: Problem
 Keywords: mmap |
--------------------------------------+-------------------------------------
 Since Linux 2.6.12, and on other platforms, mmap is supposed to fail if
 the specified "size" parameter is 0. This causes some problems in all the
 Boost.Interprocess library since pretty much all the high-level structures
 (managed_shared_memory, for instance) use mapped_region (thus mmap) with
 size = 0, usually when the object is created with the "open_only" flag.

 I have observed this bug on BlueGene/P's CNK environment, with gcc 4.1.2.
 It seems logical to me that, when opening an existing shared structure,
 the size doesn't have to be known. I don't have any solution yet...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7235>
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:10 UTC