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: printing exceptions?


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.



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