How to enable stack trace ?

View: New views
2 Messages — Rating Filter:   Alert me  

How to enable stack trace ?

by abhishek desai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am using libgcj 3.4.6 cross compiled for a mipsel system. I am using
this in the interpreted mode. When I execute my program I get

Exception in thread "main" java.lang.NullPointerException
   <<No stacktrace available>>

Is there any way to enable the stack trace ?

--abhishek

Re: How to enable stack trace ?

by Andrew Haley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

abhishek desai wrote:

> I am using libgcj 3.4.6 cross compiled for a mipsel system. I am using
> this in the interpreted mode. When I execute my program I get
>
> Exception in thread "main" java.lang.NullPointerException
>    <<No stacktrace available>>
>
> Is there any way to enable the stack trace ?

This means that something truly awful has happened while trying to print
the stack trace, and libgcj has crashed.  This can be because of stack
corruption, or perhaps the stack unwinder doesn't work.  The only real
way to figure this out is to use gdb.

Andrew.