id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4256,boost::make_shared() may issue stack overflow while constructing large objects,faridz@…,Peter Dimov,"By default stack size for windows executable is 1Mb. The program below fails with stack overflow exception. In debug builds the stack overflow exception issued with A_Size >= ""stack size"" / 3. In release builds due to optimizations, the stack overflow exception issued with A_Size >= ""stack size"" / 2. {{{ #include #include #include const std::size_t A_Size = 512; struct A { char buf_[A_Size * 1024]; }; int main() { boost::shared_ptr pa(boost::make_shared()); //boost::shared_ptr pa(new A()); return 0; } }}} ",Bugs,closed,,smart_ptr,Boost 1.50.0,Regression,fixed,make_shared stack overflow,