This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: no stacktrace available


Am Dienstag, 14. Dezember 2004 05:38 schrieb Bart Locanthi:
> soo... i'm attempting to port a largish program to gcj.
>
> on netbsd 2.0... which has a gcc-java-3.3.4 package.
>
> not having ant and not wanting to again figure out how to get make
> to do what i want, i made a list of all the java files in ~/src
> (with path names from that point), and built the program with the
> following:
>
> % gcj --main=com..Server -o ug `cat list`
>
> took a while but it compiles with no warnings or errors. however,
> when i try to run it i get:
>
> % ug conf/toy.xml
> java.lang.ArrayIndexOutOfBoundsException: 3
>    <<No stacktrace available>>
> ^C
> %
>
> i'm willing to track this down but i'd like to have a stack trace
> or something. note that the program appears to hang. well, it's a
> server but it isn't opening a ServerSocket.
>
> so is there a load flag or an environment something that will get
> me a stack trace?
>
> btw it seems not to make a difference whether i set LD_LIBRARY_PATH
> (on netbsd that would be /usr/pkg/gcc3/lib).
>
> should i be trying this on linux first?

On linux it should just work. I wonder why you get no stacktrace. Can 
you try to compiler with "-g" added to your above line? What 
configure flags was used to build gcj ? What debugging format is used 
on NetBSD 2.0 ? DWARF-2 ?


Michael
-- 
Homepage: http://www.worldforge.org/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]