[Bug java/15543] New: "jv-scan --complexity" segfaults

vadimn at redhat dot com gcc-bugzilla@gcc.gnu.org
Wed May 19 16:00:00 GMT 2004


I came across two .java files that cause jv-scan to segfault.  The files
are

http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/*checkout*/speedo/src/org/objectweb/speedo/generation/enhancer/CodeDuplicator.java?rev=1.6&content-type=text/plain
http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/*checkout*/speedo/src/org/objectweb/speedo/generation/enhancer/ClassAccessorModifier.java?rev=1.31&content-type=text/plain

Here's what I get:

$ jv-scan --complexity \
 src/org/objectweb/speedo/generation/enhancer/CodeDuplicator.java
Segmentation fault
$ jv-scan34 --complexity \
 src/org/objectweb/speedo/generation/enhancer/CodeDuplicator.java
Segmentation fault

Build information for jv-scan is as follows:

$ rpm -ql $(rpm -qf $(which jv-scan)) | grep /bin
/usr/bin/gcj
/usr/bin/gcjh
/usr/bin/jcf-dump
/usr/bin/jv-scan
$ /usr/bin/gcj -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/libgcj.spec
rename spec lib to liborig
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --enable-shared --enable-threads=posix \
--disable-checking --disable-libunwind-exceptions --with-system-zlib \
--enable-__cxa_atexit --host=i386-redhat-linux

Thread model: posix
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)


Build information for jv-scan34 is as follows:

$ rpm -ql $(rpm -qf $(which jv-scan34)) | grep /bin
/usr/bin/gcj34
/usr/bin/gcjh34
/usr/bin/jcf-dump34
/usr/bin/jv-scan34
$ /usr/bin/gcj34 -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.0/specs
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.0/libgcj.spec
rename spec lib to liborig
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --enable-shared --enable-threads=posix \
--disable-checking --with-system-zlib --enable-__cxa_atexit \
--disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f77 \
--host=i386-redhat-linux

Thread model: posix
gcc version 3.4.0 (Red Hat Linux 3.4.0-1)

-- 
           Summary: "jv-scan --complexity" segfaults
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vadimn at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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



More information about the Java-prs mailing list