Boost C++ Libraries: Ticket #7965: make_shared causes stack overflow with large objects https://svn.boost.org/trac10/ticket/7965 <p> Hello, </p> <p> if <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4256" title="#4256: Bugs: boost::make_shared() may issue stack overflow while constructing large ... (closed: fixed)">#4256</a> really fixed the problem, then this is a regression. I encountered the bug with Boost 1.42, 1.44, 1.50, and 1.52. </p> <p> In my project I have relatively small stack sizes due to a large amount of threads I have to support. Creating objects via boost::make_shared crashes due to large object size. I've attached a test case that shows the problem in MacOSX. If I enable C++11 support and use the smart pointers from std instead of the boost one, everything works fine. </p> <p> Thanks, Gregor </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7965 Trac 1.4.3 Gregor Jasny <gjasny@…> Sat, 02 Feb 2013 12:09:44 GMT attachment set https://svn.boost.org/trac10/ticket/7965 https://svn.boost.org/trac10/ticket/7965 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> Ticket viboes Sun, 03 Feb 2013 18:46:48 GMT summary changed https://svn.boost.org/trac10/ticket/7965#comment:1 https://svn.boost.org/trac10/ticket/7965#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">make_chared causes stack overflow with large objects</span> → <span class="trac-field-new">make_shared causes stack overflow with large objects</span> </li> </ul> Ticket Peter Dimov Thu, 07 Mar 2013 08:18:51 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7965#comment:2 https://svn.boost.org/trac10/ticket/7965#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83341" title="Merged revision(s) 83198 from trunk: Avoid stack overflow in ...">[83341]</a>) Merged revision(s) 83198 from trunk: Avoid stack overflow in make_shared. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4256" title="#4256: Bugs: boost::make_shared() may issue stack overflow while constructing large ... (closed: fixed)">#4256</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7965" title="#7965: Bugs: make_shared causes stack overflow with large objects (closed: fixed)">#7965</a>. </p> Ticket