Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-681

RollingFileAppender thread safety issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 1.2.10, 1.2.11, 1.2.12, 1.2.13, 1.2.14, 1.2.15
    • None
    • Appenders
    • None

    Description

      It seems there is a thread safety issue in :

      protected void RollOverTime(bool fileIsOpen)

      Where the file can be closed outside of a critical section allowing another thread to attempt to write data on a closed file handle leading to this err:

      log4net:ERROR [FileAppender] Attempted to append to closed appender named [].

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomjudge Tom Judge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: