First known broken version: 4.1 SVN revision 106387
Last known working version: 4.0.1

Trying to byte-compile ecj results in a segmentation fault.

In the attached testcase (it's still relatively huge - sorry, my knowledge of
Java is limited to "it's similar to C++ without MI"), run

cd testcase
for f in `find -name '*.java' |cut -c 3-`; do
    gcj -Wno-deprecated -C $f
done

to reproduce the problem.

Note that just running gcj -Wno-deprecated -C on the file causing the problem
works; this appears to be related to processing .class files created by running
gcj -Wno-deprecated -C on the other files it's importing.

gcj -Wno-deprecated -C org/eclipse/jdt/internal/compiler/ast/ASTNode.java
./org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java:1267:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: [4.1 Regression] Segmentation fault while bytecompiling
                    ecj
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bero at arklinux dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to