printing exceptions?
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Sat Mar 2 15:48:00 GMT 2002
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.
More information about the Java
mailing list