[Bug java/30466] New: gcj crashes when using invalid options

davorin dot ucakar at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 15 01:22:00 GMT 2007


gcj crashes when invoking like 'gcj -Msomething -MT something SomeFile.java'
where SomeFile.java could be any existing file, even empty.

OUTPUT:
$ gcj -Manything -MT anything Test.java -v
Using built-in specs.
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libgcj.spec
rename spec lib to liborig
gcj: unrecognized option '-Manything'
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1-20061215/configure --prefix=/usr --enable-shared
--enable-languages=java --enable-threads=posix --enable-__cxa_atexit
--enable-java-awt=gtk --libdir=/usr/lib --disable-multilib --enable-clocale=gnu
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
Thread model: posix
gcc version 4.1.2 20061215 (prerelease)
 /usr/libexec/gcc/i686-pc-linux-gnu/4.1.2/jc1 Test.java -fhash-synchronization
-fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions
-fkeep-inline-functions -quiet -dumpbase Test.java -mtune=pentiumpro -auxbase
Test -g1 -version -MT anything -o /tmp/ccpXTZV8.s
GNU Java version 4.1.2 20061215 (prerelease) (i686-pc-linux-gnu)
        compiled by GNU C version 4.1.2 20061215 (prerelease).
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48233
Class path starts here:
    ./
    /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/
    /usr/share/java/libgcj-4.1.2.jar/ (system) (zip)
jc1: ../../gcc-4.1-20061215/gcc/java/jcf-depend.c:135: jcf_dependency_write:
Assertion `dependencies' failed.
Test.java:1: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: gcj crashes when using invalid options
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: davorin dot ucakar at gmail dot com
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



More information about the Java-prs mailing list