public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/28352]  New: Interpreter: Stack trace line numbers sometimes missing or incorrect
@ 2006-07-11 21:30 mckinlay at redhat dot com
  2006-07-11 21:32 ` [Bug libgcj/28352] " mckinlay at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mckinlay at redhat dot com @ 2006-07-11 21:30 UTC (permalink / raw)
  To: java-prs

When the following test case is built with gcj -C, the innermost frame is
missing from the stack trace:

public class Ex {
   void snafu( ) throws Exception {
     throw new Exception();
   }
   void bar( ) throws Exception {
     snafu( );
   }
   void foo( ) throws Exception {
     bar( );
   }
   public static void main( String[] args) throws Exception {
     new Ex( ).foo( );
  }
}


$ gij Ex
Exception in thread "main" java.lang.Exception
   at Ex.snafu(Ex.java)
   at Ex.bar(Ex.java:6)
   at Ex.foo(Ex.java:9)
   at Ex.main(Ex.java:12)

In addition, when built with a different bytecode compiler (ecj), the stack
trace is complete, but has off-by-one line number errors:

$ gij Ex
Exception in thread "main" java.lang.Exception
   at Ex.snafu(Ex.java:3)
   at Ex.bar(Ex.java:7)
   at Ex.foo(Ex.java:10)
   at Ex.main(Ex.java:13)


-- 
           Summary: Interpreter: Stack trace line numbers sometimes missing
                    or incorrect
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckinlay at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28352


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-01-09 20:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-11 21:30 [Bug libgcj/28352] New: Interpreter: Stack trace line numbers sometimes missing or incorrect mckinlay at redhat dot com
2006-07-11 21:32 ` [Bug libgcj/28352] " mckinlay at redhat dot com
2006-07-12  1:46 ` rmathew at gcc dot gnu dot org
2006-07-12 13:56 ` bryce at gcc dot gnu dot org
2006-07-12 13:59 ` [Bug java/28352] gcj -C fails to generate line number info for method mckinlay at redhat dot com
2007-01-09 20:54 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).