[logback-dev] [JIRA] (LOGBACK-1027) Circular Referenced Suppressed Exception Throws StackOverflowError

Martin Grajcar maaartinus at gmail.com
Wed Jan 24 06:03:14 CET 2018


I've just ran into this or something similar with
throwable.getSuppressed()[0].getCause()
== throwable.
Sure, such a cycle is a bug itself, but how am I supposed to fix it, when
all I get is

java.lang.StackOverflowError: null
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:66)
        at
ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:60)
        at
ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:60)
        at
ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:60)
        at
ch.qos.logback.classic.spi.ThrowableProxy.<init>(ThrowableProxy.java:72)

with the last two lines repeated again and again?

To be constructive: It'd be nice if logback would not only detect such a
situation, but also print some information like
throwable.getSuppressed()[0].getSuppressed()[0] == throwable
for the originally reported case or
throwable.getSuppressed()[0].getCause() == throwable
for my case. It may be helpful sometimes.

While I know the cycle and can reproduce the problem, I still have no idea
how it actually happens.

Regards, Martin.


On Sat, Jan 20, 2018 at 7:35 AM, QOS.CH (JIRA) <noreply-jira at qos.ch> wrote:

> Ceki Gülcü <https://jira.qos.ch/secure/ViewProfile.jspa?name=ceki>
> *commented* on [image: Bug] LOGBACK-1027
> <https://jira.qos.ch/browse/LOGBACK-1027>
>
> Re: Circular Referenced Suppressed Exception Throws StackOverflowError
> <https://jira.qos.ch/browse/LOGBACK-1027>
>
> My apologies, your CLA was already in file.
> [image: Add Comment] <https://jira.qos.ch/browse/LOGBACK-1027#add-comment> Add
> Comment <https://jira.qos.ch/browse/LOGBACK-1027#add-comment>
>
> This message was sent by Atlassian JIRA (v7.3.1#73012-sha1:68837e3)
> [image: Atlassian logo]
>
> _______________________________________________
> logback-dev mailing list
> logback-dev at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20180124/b4d500ec/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 425 bytes
Desc: not available
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20180124/b4d500ec/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2983 bytes
Desc: not available
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20180124/b4d500ec/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20180124/b4d500ec/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3408 bytes
Desc: not available
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20180124/b4d500ec/attachment-0007.png>


More information about the logback-dev mailing list