Skip to content

Error reporting can enter infinite loop #799

@mattrjacobs

Description

@mattrjacobs

Relevant thread dump:

java.lang.Thread.State: RUNNABLE
at java.lang.Throwable.getCause(Throwable.java:415)
- locked <0x00007f48cf6b4f20> (a java.lang.NullPointerException)
at rx.util.CompositeException.attachCallingThreadStack(CompositeException.java:87)
at rx.util.CompositeException.(CompositeException.java:42)
at rx.util.CompositeException.(CompositeException.java:51)

This is an infinite loop caused by collapsing multiple throwables together. In the presence of CompositeExceptions, we need to break out of the while-loop in CompositeException.attachCallingThreadStack on Throwables that have self-referential loops

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions