>Number: 1357 >Category: java >Synopsis: no result execution with W98 and last Cygwin tools >Confidential: no >Severity: serious >Priority: medium >Responsible: apbianco >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Dec 20 12:19:17 PST 2000 >Closed-Date: >Last-Modified: >Originator: cormier@u-picardie.fr >Release: unknown-1.0 >Organization: >Environment: W98, cygwin and gcj >Description: I just download the last version of cygwin with W98 on a new computer. What a nice set of tools!! Everything seems to work fine. I attempt to use gcj. My last try is made with: libgcj-2.95.1-win32-0.3.tar.bz2, libgcj.spec and Helloworld.java (Test.java) downloaded from http://www.cs.bris.ac.uk/~jb7216/libgcj/ Install and compile : bunzip2 -c libgcj-2.95.1-win32-0.3.tar.bz2 | tar xfv - export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib export CLASSPATH=/usr/local/share/libgcj.zip libgcj file : # # This spec file is read by gcj when linking. # It is used to specify the standard libraries we need in order # to link with libgcj. # *lib: -lgcj -lm -lzgcj -lgcgcj -lmingw32 -lgccgcj -lcrtdll -lwsock32 -luser32 -lkernel32 *libgcc: %{} *jc1: # # libgcc should really be a shared library. This is a design flaw # that causes no end of mysterious problems. If we are using the # GNU linker, force parts of libgcc into the program file rather # than picking bits up from various shared libraries. # %rename startfile startfileorig *startfile: %(startfileorig) -u data_start -lgcjdata -u __rethrow -lgcc $ cat Test.java public class Test { public static void main(String[] args) { System.out.println("Hello world"); } } gcj -mno-cygwin --main=Test -o Test Test.java All seems to be OK . When execute, the result: Windows Box : Abnormal termination program ... TEST a cause une defaillance de page dans (page default ...) le module CYGWIN1.DLL à 0167:610011a3. Registres : EAX=00000000 CS=0167 EIP=610011a3 EFLGS=00010202 EBX=00000004 SS=016f ESP=0287fdd0 EBP=0287fdd8 ECX=00000001 DS=016f ESI=00000000 FS=4cb7 EDX=00000000 ES=016f EDI=00000000 GS=0000 Octets à CS : EIP : 8b 13 85 d2 75 f7 83 eb 04 39 f3 76 0b 8b 03 83 Etat de la pile : (stack) 00850560 8175a250 0287fdf8 61002924 00000000 00000000 7fc0100c 0040101f 00470000 00470004 0287fe08 00401347 8175a250 00850060 0287fe28 004011e1 The program is very big, isnt'it? ls -l otal 3771 rwxr-xr-x 1 standard unknown 3839385 Aug 23 17:19 Test.exe rw-r--r-- 1 standard unknown 210 Aug 23 17:18 Test.java Without -mno-cygwin option, nothing is printed after execute. Somebody can help me? Thanks a lot >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: Formerly PR gcj/330 >Unformatted: