Boost C++ Libraries: Ticket #13147: Crash in boost::asio::basic_streambuf https://svn.boost.org/trac10/ticket/13147 <p> Hi All, </p> <p> Our program crashed in boost::asio::streambuf while streambuf was reserving more spaces. </p> <p> The related codes using boost::asio::streambuf is like this: </p> <pre class="wiki">boost::asio::streambuf send_buffer; std::ostream send_stream(&amp;send_buffer); send_stream &lt;&lt; "MESSAGE..."; send_stream &lt;&lt; flush(); ... boost::asio::async_write(ssl_stream, send_buffer, ...); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13147 Trac 1.4.3 luliu@… Fri, 04 Aug 2017 06:50:47 GMT <link>https://svn.boost.org/trac10/ticket/13147#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13147#comment:1</guid> <description> <p> The crash happened when boost::asio::streambuf were reserving more space after streambuf exceeded 512 bytes. </p> <p> Here is the crash stack. </p> <pre class="wiki">0:011&gt; k # Child-SP RetAddr Call Site 00 00000000`02c0b098 00007ffc`b48a13ed ntdll!NtWaitForMultipleObjects+0xa 01 00000000`02c0b0a0 00007ffc`b7637d51 KERNELBASE!WaitForMultipleObjectsEx+0xe1 02 00000000`02c0b380 00007ffc`b7637773 kernel32!WerpReportFaultInternal+0x581 03 00000000`02c0b8f0 00007ffc`b4981fff kernel32!WerpReportFault+0x83 04 00000000`02c0b920 00007ffc`b774f133 KERNELBASE!UnhandledExceptionFilter+0x23f 05 00000000`02c0ba10 00007ffc`b7731d86 ntdll!RtlUserThreadStart$filt$0+0x3e 06 00000000`02c0ba50 00007ffc`b77433fd ntdll!_C_specific_handler+0x96 07 00000000`02c0bac0 00007ffc`b7704847 ntdll!RtlpExecuteHandlerForException+0xd 08 00000000`02c0baf0 00007ffc`b774258a ntdll!RtlDispatchException+0x197 09 00000000`02c0c1c0 00000000`5080e4ff ntdll!KiUserExceptionDispatch+0x3a 0a 00000000`02c0c8f8 00007ff7`135eb415 msvcr90!memcpy+0x2cf 0b 00000000`02c0c900 00007ff7`135eaf1a SecurityGateway!boost::asio::basic_streambuf&lt;std::allocator&lt;char&gt; &gt;::reserve+0x105 0c 00000000`02c0cac0 00000000`508ab8bf SecurityGateway!boost::asio::basic_streambuf&lt;std::allocator&lt;char&gt; &gt;::overflow+0x5a 0d 00000000`02c0caf0 00007ff7`135b3d31 msvcp90!std::basic_streambuf&lt;char,std::char_traits&lt;char&gt; &gt;::xsputn+0x87 0e 00000000`02c0cb20 00007ff7`1364a78f SecurityGateway!std::operator&lt;&lt;&lt;std::char_traits&lt;char&gt; &gt;+0x111 0f 00000000`02c0cb90 00007ff7`13648161 SecurityGateway!send_message </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>luliu</dc:creator> <pubDate>Tue, 15 Aug 2017 04:56:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13147#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13147#comment:2</guid> <description> <p> Hi Boost experts, </p> <p> Please share your comment on this issue. Any help will be appreciated. Thanks. </p> </description> <category>Ticket</category> </item> </channel> </rss>