[
https://issues.apache.org/jira/browse/IGNITE-15716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427978#comment-17427978
]
Ignite TC Bot commented on IGNITE-15716:
----------------------------------------
{panel:title=Branch: [pull/9484/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/9484/head] Base: [master] : New Tests
(2)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Basic 1{color} [[tests
2|https://ci.ignite.apache.org/viewLog.html?buildId=6220658]]
* {color:#013220}IgniteBasicTestSuite:
GridXSelfTest.testCauseDoesNotRaiseStackOverflowWhenCircularReferenceInCaused -
PASSED{color}
* {color:#013220}IgniteBasicTestSuite:
GridXSelfTest.testCauseDoesNotRaiseStackOverflowWhenCircularReferenceInSuppressed
- PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci.ignite.apache.org/viewLog.html?buildId=6220299&buildTypeId=IgniteTests24Java8_RunAll]
> 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
> 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)