[ 
https://issues.apache.org/jira/browse/IGNITE-15716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Chugunov updated IGNITE-15716:
-------------------------------------
    Ignite Flags:   (was: Docs Required,Release Notes Required)

> Fix StackOverflowError in case if exception suppressed with itself
> ------------------------------------------------------------------
>
>                 Key: IGNITE-15716
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15716
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.11
>            Reporter: Eduard Rakhmankulov
>            Assignee: Eduard Rakhmankulov
>            Priority: Minor
>             Fix For: 2.12
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We can get infinite loop in 
> org.apache.ignite.internal.util.typedef.X#hasCause and X#cause in case if 
> exception is suppressed with itself.
>  Example:
> {code:java}
> Exception e = new Exception("foo");
>  Exception e2 = new Exception(e);
>  e.addSuppressed(e2)
> {code}
>  
> Stack:
> {code:java}
> java.lang.StackOverflowError: null
>  at org.apache.ignite.internal.util.typedef.X.hasCause(X.java:476)
>  at org.apache.ignite.internal.util.typedef.X.hasCause(X.java:489)
>  at org.apache.ignite.internal.util.typedef.X.hasCause(X.java:489)
>  at org.apache.ignite.internal.util.typedef.X.hasCause(X.java:489)
>  
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to