This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

java/5733: Segmentation fault of the java compiler



>Number:         5733
>Category:       java
>Synopsis:       Segmentation fault of the java compiler
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 19 23:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Julien Cervelle
>Release:        3.0.3
>Organization:
>Environment:
System: Linux azure 2.4.13 #8 SMP Wed Nov 21 10:52:00 CET 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --prefix=/usr
>Description:
compilation produces a segmentation fault. It only occurs when
I add an import of classes which are neither standard java classes, nor
classes in the same directory.
>How-To-Repeat:
I have this file tree :

root -+- Main_class.java
      |
      +- Graph -- Sommet.java

Sommet.java :
import Graph.*;

public class Sommet {
    String s;

    public Sommet(String $name) {
        s=$name;
    }
    public String toString() {
        return s;
    }
}
-----

Main_class.java :
import Graph.*;

public class Main_class {
    public static void main(String args[]) {
        Sommet s=new Sommet("sommet");
        System.out.println(s);
    }
}


In the root directory, I launch

% gcj --main=Main_class Main_class.java 
Main_class.java:0: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


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