Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-250

SocketImpl will throw NPE if closed() while starting up

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • None
    • None

    Description

      SocketImpl does not check whether this->socket is null before making APR calls and does not synchronize access and modification of that value. This will result in a crash if TelnetAppender or similar is closed in start up or at some other inopportune time. This can be demonstrated by removing the Thread::sleep in TelnetAppenderTestCase::testActivateClose so that the appender is closed while the connection listening thread is being started.

      Attachments

        Activity

          People

            carnold@apache.org Curt Arnold
            carnold@apache.org Curt Arnold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: