Boost logo

Boost Users :

Subject: [Boost-users] SSL crash in boost asio 1.44
From: Scott (cheesy4poofs_at_[hidden])
Date: 2011-02-08 09:09:13


I've been getting reports in the field about sporadic SSL crashes in our
product (Linux
version). After using a stress test for several hours, I got it to crash in
asio 1.41. I then tried it in 1.44 and got the same crash on windows.

It appears to be crashing in openssl_operator.hpp:158

The session_ object is definitely corrupt:

session_ 0x000000022120ac30 {version=-17891602 type=-17891602
method=0xfeeefeeefeeefeee ...}
        version -17891602 int
        type -17891602 int
+ method 0xfeeefeeefeeefeee {version=??? ssl_new=???
+ rbio 0xfeeefeeefeeefeee {method=??? callback=???
+ wbio 0xfeeefeeefeeefeee {method=??? callback=???
+ bbio 0xfeeefeeefeeefeee {method=??? callback=???

The callstack is this:

NwConcentrator.exe!boost::asio::ssl::detail::openssl_operation<
boost::asio::basic_stream_socket<
boost::asio::ip::tcp,boost::asio::stream_socket_service<
boost::asio::ip::tcp>> >::start()

NwConcentrator.exe!boost::_mfi::mf0<int,boost::asio::ssl::detail::
openssl_operation<
boost::asio::basic_stream_socket<
boost::asio::ip::tcp,boost::asio::stream_socket_service<
boost::asio::ip::tcp>
::operator()
(boost::asio::ssl::detail::openssl_operation<
boost::asio::basic_stream_socket<
boost::asio::ip::tcp,boost::asio::stream_socket_service<
boost::asio::ip::tcp>> >
* p=0x00000002136cf440) Line 50 C++

Does 1.45 have a fix for this? I looked over the release notes but didn't
see
anything about SSL fixes. This crash is occurring on both
Fedora/CentOS/Windows
builds of boost asio 1.41 and 1.44.

Thanks,
Scott


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net