Jetty
  1. Jetty
  2. JETTY-454

Neverending loop triggered in org.mortbay.log.Log.unwind

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.0
    • Fix Version/s: 6.1.6rc1
    • Component/s: None
    • Labels:
      None
    • Environment:
      OSX, JDK 1.5
    • Number of attachments :
      0

      Description

      org.mortbay.log.Log.unwind attempts to walk the chain of exception causes using reflection to determine whether the current exception implements one of four cause accessors. By sheer dumb luck, our application just happened to implement some custom logic in a getRootCause method that may return this. E.g., our implementation of the method walks the chain of causes to return the base cause which may well be the exception itself if it has no cause.

      Log.unwind has no validation logic to make sure that th2 != th, causing Jetty to enter a neverending loop, resulting in a stack overflow.

        Activity

        Greg Wilkins made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 6.1.6rc1 [ 13653 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Brenda Bell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: