-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority:majorMajor loss of functionMajor loss of function
Milestone
Description
Michael Keppler opened MNG-7846 and commented
The default exception handler iterates all nested exceptions in a loop that's only left when exception.cause == null
Unfortunately there can be exceptions where the cause is a reference to the containing exception, e.g. exception.cause == exception. That code then becomes an endless loop. I just experienced such an endless loop and was able to find a JRubyException pointing to itself in the heap dump of the thread:
!image-2023-07-19-13-59-02-398.png!
The loop cancelation condition should therefore be changed to
t != null && t != t.getCause()Affects: 3.9.3
Attachments:
- image-2023-07-19-13-59-02-398.png (43.77 kB)
Remote Links:
Backported to: 4.0.0-alpha-8, 3.9.4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority:majorMajor loss of functionMajor loss of function