You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Nick Williams (JIRA)" <ji...@apache.org> on 2013/07/28 04:09:49 UTC

[jira] [Comment Edited] (LOG4J2-322) Endless loop in ThrowableProxy.getCurrentStack

    [ https://issues.apache.org/jira/browse/LOG4J2-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13721823#comment-13721823 ] 

Nick Williams edited comment on LOG4J2-322 at 7/28/13 2:09 AM:
---------------------------------------------------------------

{{Reflection#getCallerClass(int)}} changed as of Java 1.7.0_25 and Java 1.8. We are currently working on a fix and replacement. See http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-July/019334.html, http://log4j.markmail.org/thread/uoowctmmm7mo4fkw, and http://log4j.markmail.org/thread/txcb456wupe35l6u.
                
      was (Author: beamerblvd):
    Reflection#getCallerClass(int) changed as of Java 1.7.0_25 and Java 1.8. We are currently working on a fix and replacement. See http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-July/019334.html, http://log4j.markmail.org/thread/uoowctmmm7mo4fkw, and http://log4j.markmail.org/thread/txcb456wupe35l6u.
                  
> Endless loop in ThrowableProxy.getCurrentStack
> ----------------------------------------------
>
>                 Key: LOG4J2-322
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-322
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.0-beta8
>         Environment: java version "1.7.0_25"
> OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
>            Reporter: Xavier Cho
>            Priority: Critical
>
> It seems that the getCallerClass method does not skip the frames correctly on OpenJDK, the ThrowableProxy falls into an endless loop which eventually lead to an OutOfMemoryError as it puts the same class into the stack over and over.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org