Boost C++ Libraries: Ticket #6897: Boost interprocess segfaults https://svn.boost.org/trac10/ticket/6897 <p> Having a boost::unordered map in shared memory and after creation opening it in open_only or open_read_only behaves differently depending on the key length. open_only always works, open_read_only only works if key length is less than 24 bytes. </p> <p> I've got very simple example code that I'll attach, maybe I am doing something wrong here. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6897 Trac 1.4.3 Mathias Creutz <mathiascreutz@…> Mon, 14 May 2012 08:20:30 GMT attachment set https://svn.boost.org/trac10/ticket/6897 https://svn.boost.org/trac10/ticket/6897 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cc</span> </li> </ul> <p> For testing the different behaviour open_only vs open_read_only </p> Ticket Mathias Creutz <mathiascreutz@…> Mon, 14 May 2012 12:24:45 GMT attachment set https://svn.boost.org/trac10/ticket/6897 https://svn.boost.org/trac10/ticket/6897 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.2.cc</span> </li> </ul> Ticket Robert Ayrapetyan <robert.ayrapetyan@…> Sat, 11 Mar 2017 08:20:39 GMT <link>https://svn.boost.org/trac10/ticket/6897#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6897#comment:1</guid> <description> <p> Looks like an expected behavior. When string length is small (less then capacity()), no allocations are required, all characters are stored "in place". Otherwise alloc in "segment" is required (which fails when you open it in "read only" mode). I would suggest to close this ticket as "invalid". </p> </description> <category>Ticket</category> </item> </channel> </rss>