This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: printing exceptions?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: tromey at redhat dot com
- Cc: Java Discuss List <java at gcc dot gnu dot org>
- Date: Sun, 03 Mar 2002 12:47:39 +1300
- Subject: Re: printing exceptions?
- References: <873czimtqw.fsf@creche.redhat.com>
Tom Tromey wrote:
>I've noticed that recently, if `gij' tries to print an exception, it
>prints the first line and then hangs. Is anybody else seeing this?
>
Yes. Actually, now that I look at it, EH isn't working at all with the
interpreter on PowerPC. _Unwind_RaiseException() is returning
_URC_NO_REASON and libgcj aborts. But thats another problem.
>strace shows something weird going on in the child process. Instead
>of exec'ing, it is trying to write to fd 6 (I haven't yet tracked down
>what that is connected to). Weird.
>
I see it hanging on the read() call at natPosixProcess.cc:278. Seems
like Runtime.exec() always fails under the interpreter (works fine from
compiled code). Weird indeed.
public class Test
{
public static void main(String[] args) throws java.io.IOException
{
Process p = Runtime.getRuntime().exec("ls");
}
}
regards
Bryce.