Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3619

Log4j stops logging when the log message contains a java.lang.StackOverflowError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.17.2
    • None
    • Core
    • None
    • We run Weblogic 12 in a Linux environment.  

    Description

      The RingBuffer Consumer stop printing logs when it comes to a log event with an exception connected with a StackOverFlowError attached.    We have had this occur several dozen times.

      Both the cursor and the gate point at the same place in the event buffer and very quickly all the threads on the server are frozen waiting for the ring buffer to clear up space.   But the consumer is just stuck waiting a not printing event.   It has failed with a stack overflow from spring MVC mapping and it has failed with a stack overflow from Jackson JSON ObjectMapper with object level recursion triggering a stack overflow.

       

      Attachments

        1. log4j2.xml
          6 kB
          Gary ,Verwers
        2. threadDump.txt
          1.66 MB
          Gary ,Verwers
        3. IncomingReferences.png
          58 kB
          Gary ,Verwers
        4. gatinngSequence.png
          96 kB
          Gary ,Verwers
        5. BatchEventProcessor.png
          146 kB
          Gary ,Verwers
        6. CauseEvent.png
          119 kB
          Gary ,Verwers
        7. cusor.png
          104 kB
          Gary ,Verwers
        8. thread-dump-analyses.png
          99 kB
          Volkan Yazici

        Activity

          People

            Unassigned Unassigned
            gverwers Gary ,Verwers
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: