Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8470: managed_mapped_file goes to loop
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-19 19:13:03
#8470: managed_mapped_file goes to loop
-------------------------------------+--------------------------------------
Reporter: mikhail.smal@⦠| Owner: igaztanaga
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords: mapped file loop
-------------------------------------+--------------------------------------
Changes (by anonymous):
* status: closed => reopened
* resolution: invalid =>
Comment:
Replying to [comment:2 igaztanaga]:
> As explained in the documentation, managed segments have internal
metadata, you can't start overwritting memory corrupting internal
structures. If you really want to overrite file contents, then you should
use file_mapping + mapped_region, see:
>
>
http://www.boost.org/doc/libs/1_53_0/doc/html/interprocess/sharedmemorybetweenprocesses.html#interprocess.sharedmemorybetweenprocesses.mapped_file.mapped_file_a_simple_example
It is a good link, but I am still not sure that the string
'''managed_mapped_file mfile( open_or_create, "lol", 10 );'''
should throw exception because of "10". It is not mentioned in
'''documentation'''. And how should I do offset if '''get_address()'''
returns the pointer to "internal metadata"?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8470#comment:3> 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:13 UTC