[Boost-bugs] [Boost C++ Libraries] #7965: make_chared causes stack overflow with large objects

Subject: [Boost-bugs] [Boost C++ Libraries] #7965: make_chared causes stack overflow with large objects
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-02 12:09:11


#7965: make_chared causes stack overflow with large objects
--------------------------------------------------+-------------------------
 Reporter: Gregor Jasny <gjasny@…> | Owner: pdimov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: make_shared stack overflow |
--------------------------------------------------+-------------------------
 Hello,

 if #4256 really fixed the problem, then this is a regression. I
 encountered the bug with Boost 1.42, 1.44, 1.50, and 1.52.

 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.

 Thanks,
 Gregor

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