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]

Re: ZipInputStream broken?


Adam Megacz wrote:

>I've got another newbie question -- what does it mean when a GCJ app
>simply says "Aborted"? I have all my Thread.run()'s wrapped in
>try/catch blocks with stack traces, as well as my main() -- so it's
>not an exception (since I'm not getting a stack trace). Here's what I
>see on stdout:
>
>  megacz@curry$./a.out run /home/megacz/valency/xwt/dist/xwt-main.jar email
>  Detected GCJ JVM, vendor="Free Software Foundation" version="0.0.7"
>  begin loading from java.io.FileInputStream@8265dd0
>  Aborted
>
>The top two lines are things that my code prints. The text "Aborted"
>doesn't appear anywhere in my source code -- what is libgcj trying to
>tell me?
>

It means that something called abort(). It can happen when an exception 
is thrown but there is no handler for that exception, but there are 
plenty of other reasons. GDB will stop automatically on an abort, so the 
best thing to do is run the app in GDB and look at the stack trace.

regards

Bryce.



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