libgcj/13

Bryce McKinlay bryce@albatross.co.nz
Thu Mar 2 12:16:00 GMT 2000


The following reply was made to PR libgcj/13; it has been noted by GNATS.

From: Bryce McKinlay <bryce@albatross.co.nz>
To: John Stracke <francis@thibault.org>
Cc: tromey@cygnus.com, java-gnats@sourceware.cygnus.com
Subject: Re: libgcj/13
Date: Fri, 03 Mar 2000 09:12:35 +1300

 John,
 
 What version of gcj & libgcj are you using? And what platform?
 
 Your test program works fine for me on Redhat 6.1 (x86) using recent snapshots.
 
 PR libgcj/13 was fixed a long time ago, and I doubt its the cause of your
 problem.
 
 regards
 
   [ bryce ]
 
 
 John Stracke wrote:
 
 >  I tried the suggested workaround of linking in pthreads before gcjgc
 >  (in libgcj.spec), and it didn't work; my test program (below) got a
 >  coredump.
 >
 >  import java.io.DataInputStream;
 >  import java.io.IOException;
 >
 >  public class Thread1 implements Runnable {
 >      public void run()
 >      {
 >   System.err.println("Thread1");
 >   DataInputStream in=new DataInputStream(System.in);
 >   try {
 >       String line=in.readLine();
 >   } catch (IOException io) {
 >       System.err.println(io);
 >   }
 >      }
 >
 >      public static void main(String args[])
 >      {
 >   Thread t=new Thread(new Thread1());
 >   t.start();
 >   System.err.println("Thread2");
 >      }
 >  };
 


More information about the Java-prs mailing list