Boost C++ Libraries: Ticket #13626: Growing managed mapped file cause a pointer invalidation
https://svn.boost.org/trac10/ticket/13626
en-usBoost C++ Libraries/htdocs/site/boost.png
https://svn.boost.org/trac10/ticket/13626
Trac 1.4.3bvbfan@…Thu, 05 Jul 2018 15:49:17 GMTattachment set
https://svn.boost.org/trac10/ticket/13626
https://svn.boost.org/trac10/ticket/13626
<ul>
<li><strong>attachment</strong>
→ <span class="trac-field-new">main.cpp</span>
</li>
</ul>
<p>
g++ main.cpp -o main
</p>
Ticketbvbfan@…Thu, 05 Jul 2018 15:53:54 GMT
<link>https://svn.boost.org/trac10/ticket/13626#comment:1 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13626#comment:1</guid>
<description>
<pre class="wiki">[toni@toni-pc ~]$ uname -a
Linux toni-pc 4.16.14-1 #1 SMP PREEMPT Tue Jun 5 20:05:46 UTC 2018 x86_64 GNU/Linux
</pre><p>
Provided example *works* when grow size is below 7*500.
</p>
</description>
<category>Ticket</category>
</item>
<item>
<dc:creator>anonymous</dc:creator>
<pubDate>Thu, 05 Jul 2018 15:55:52 GMT</pubDate>
<title/>
<link>https://svn.boost.org/trac10/ticket/13626#comment:2 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13626#comment:2</guid>
<description>
<p>
For some reason gcc all version is marked as spam so -> gcc version 7.3.0 (GCC)
Growing algorithm not work in all cases when size over 6*500 bytes which is not that much to make grow usable.
</p>
</description>
<category>Ticket</category>
</item>
<item>
<dc:creator>anonymous</dc:creator>
<pubDate>Thu, 05 Jul 2018 15:57:43 GMT</pubDate>
<title/>
<link>https://svn.boost.org/trac10/ticket/13626#comment:3 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13626#comment:3</guid>
<description>
<pre class="wiki">[toni@toni-pc test]$ ./main
10000
before growing:
size: 10000
p is owned: 1
p->test is owned: 1
p->test = 0x7f6cd51f3090
after growing
size: 13500
p is owned: 1
p->test is owned: 0
p->test = 0
</pre><p>
My results of attached example. p->test *should* be valid.
</p>
</description>
<category>Ticket</category>
</item>
</channel>
</rss>