This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/21775] NPE in java::util::logging::Logger::getCallerStackFrame caused by incorrect hand-optimization
- From: "greenrd at greenrd dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2005 18:12:03 -0000
- Subject: [Bug libgcj/21775] NPE in java::util::logging::Logger::getCallerStackFrame caused by incorrect hand-optimization
- References: <20050526235817.21775.greenrd@greenrd.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From greenrd at greenrd dot org 2005-05-27 18:12 -------
Here is the patch, which I've tested with both my reduced and my real test cases:
--- libjava/java/util/logging/natLogger.cc.orig 2005-05-27 19:09:32.000000000 +0100
+++ libjava/java/util/logging/natLogger.cc 2005-05-27 00:43:24.000000000 +0100
@@ -31,7 +31,7 @@
gnu::gcj::runtime::StackTrace *t
= new gnu::gcj::runtime::StackTrace(4);
java::lang::Class *klass = NULL;
- int i = 2;
+ int i = 1;
try
{
// skip until this class
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21775