public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/1378: Only one result with Helloworld program under cygwin and W98
@ 2003-05-14 10:44 giovannibajo
  0 siblings, 0 replies; 2+ messages in thread
From: giovannibajo @ 2003-05-14 10:44 UTC (permalink / raw)
  To: apbianco, cormier, gcc-bugs, gcc-prs, java-prs

Synopsis: Only one result with Helloworld program under cygwin and W98

State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Wed May 14 10:44:08 2003
State-Changed-Why:
    Fixed. See http://gcc.gnu.org/ml/gcc-bugs/2003-05/msg01146.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=1378


^ permalink raw reply	[flat|nested] 2+ messages in thread

* java/1378: Only one result with Helloworld program under cygwin and W98
@ 2000-12-20 12:25 cormier
  0 siblings, 0 replies; 2+ messages in thread
From: cormier @ 2000-12-20 12:25 UTC (permalink / raw)
  To: java-gnats

>Number:         1378
>Category:       java
>Synopsis:       Only one result with Helloworld program under cygwin and W98
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:19:27 PST 2000
>Closed-Date:    
>Last-Modified:  Sat Sep 23 09:00:00 PDT 2000
>Originator:     cormier@u-picardie.fr
>Release:        unknown-1.0
>Organization:
>Environment:
W98, cygwin and gcj
>Description:
Loading last version of Cygwin on W98
Loading all http://www.cs.bris.ac.uk/~jb7216/libgcj/

standard@OEMCOMPUTER ~
$ cat Hello.java
public class Hello{
        public static void main(String[] args){
                System.out.println("Hello \n");
        }
}

standard@OEMCOMPUTER ~
$ gcj --main=Hello  -o Hello Hello.java

standard@OEMCOMPUTER ~
$ ./hello
// Nothing is printed !!!!!!!!!!!!!!!!!!!!

In fact the program runs ONLY ONCE after booting PC and running cygwin, with or without others commands before :

Boot PC
Run cygwin
./hello
hello
./hello
// Nothing is printed
./hello
// Nothing always

Boot PC
Run cygwin
ls
Hello.exe    Hello.java~  bonjour.c~   cygwin1.dll
Hello.java   bonjour.c    bonjour.exe  strace.txt
./hello
hello
./hello
// Nothing always
.
I have the same result with another PC (a laptop). 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

Formerly PR gcj/350


From: Jeff Sturm <jeff.sturm@commerceone.com>
To: cormier@u-picardie.fr
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/350: Only one result with Helloworld program under cygwin and 
 W98
Date: Tue, 19 Sep 2000 17:21:55 -0400

 cormier@u-picardie.fr wrote:
 > $ cat Hello.java
 > public class Hello{
 >         public static void main(String[] args){
 >                 System.out.println("Hello \n");
 >         }
 > }
 
 System.out is currently broken for Win32.  There is a fairly old patch if you
 are interested in the details... though it might not help if you are building
 libgcj today:
 
 http://sources.redhat.com/ml/java-patches/2000-q2/msg00056.html
 
 > $ ./hello
 > // Nothing is printed !!!!!!!!!!!!!!!!!!!!
 
 That's what I expected.  You can work around it by assigning System.out
 explicitly before you use it:
 
 try {
   System.setOut(new PrintStream(new FileOutputStream("CONOUT$")));
 } catch (Throwable t) {}
 System.out.println("Hello!");
 
 --
 Jeff Sturm
 jeff.sturm@commerceone.com

From: Bryce McKinlay <bryce@albatross.co.nz>
To: Jeff Sturm <jeff.sturm@commerceone.com>
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/350: Only one result with Helloworld program under cygwin and 
 W98
Date: Wed, 20 Sep 2000 10:25:42 +1200

 Jeff Sturm wrote:
 
 >  System.out is currently broken for Win32.  There is a fairly old patch if you
 >  are interested in the details... though it might not help if you are building
 >  libgcj today:
 >
 >  http://sources.redhat.com/ml/java-patches/2000-q2/msg00056.html
 
 Jeff,
 
 Was there a reason why this patch never went in? Or was it just forgotten?
 
 regards
 
   [ bryce ]
 
 

From: Tom Tromey <tromey@cygnus.com>
To: cormier@u-picardie.fr
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/350: Only one result with Helloworld program under cygwin and W98
Date: Sat, 23 Sep 2000 08:53:20 -0700 (PDT)

 >>>>> ">" == cormier  <cormier@u-picardie.fr> writes:
 
 >> In fact the program runs ONLY ONCE after booting PC and running
 >> cygwin, with or without others commands before :
 
 Unfortunately you're a bit on your own with this problem.
 None of the main developers is currently using cygwin.
 So in the short term you'd really have to debug this yourself.
 
 We'd like to fix it, but it might be a long time before we get to it.
 
 Tom
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-14 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 10:44 java/1378: Only one result with Helloworld program under cygwin and W98 giovannibajo
  -- strict thread matches above, loose matches on Subject: below --
2000-12-20 12:25 cormier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).