Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4885

TSSLSocket crash during write

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 0.10.0
    • None
    • C++ - Library
    • None

    Description

      It happens that a race condition between TSSLSocket::write and TSSLSocket::close causes the application to crash. This issue has also been detected by Valgrind.

       

      This is the core dump backtrace

      #1  0x00007f08549b2291 in BIO_write () from /lib64/libcrypto.so.1.0.0

      #2  0x00007f084fdbbb62 in ?? () from /lib64/libssl.so.1.0.0

      #3  0x00007f084fdbc256 in ?? () from /lib64/libssl.so.1.0.0

      #4  0x00007f085466657c in apache::thrift::transport::TSSLSocket::(write (this=0x7f07a0001060, buf=0x7f07a4b6d1ac "", len=4) at src/thrift/transport/TSSLSocket.cpp:387

       

      See the patch in attachment.

       

      Attachments

        1. patch.txt
          2 kB
          op

        Activity

          People

            Unassigned Unassigned
            op op
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: