[Bug java/41745] New: Segmentation fault when ecj.jar is run as a binary compiled by gcj

yuri at tsoft dot com gcc-bugzilla@gcc.gnu.org
Sun Oct 18 22:39:00 GMT 2009


I use this command line:
gcj -o ecj --main=org.eclipse.jdt.internal.compiler.batch.Main
/usr/local/share/java/ecj.jar
to compile ecj.jar into native binary ecj.

However, when I try running resulting binary on Hello World Java program it
crashes. Original ecj.jar compiles HelloWorld successfully.

public class HelloWorld {
  public static void main(String args[]) {
    System.out.println("Hello World!");
  }
}


-- 
           Summary: Segmentation fault when ecj.jar is run as a binary
                    compiled by gcj
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yuri at tsoft dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41745



More information about the Gcc-bugs mailing list