This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/354: Cannot compile .jar files with current compiler
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/354: Cannot compile .jar files with current compiler
- From: bryce at albatross dot co dot nz
- Date: 10 Oct 2000 00:45:46 -0000
- Cc: Heinz at chanet dot de
- Reply-To: bryce at albatross dot co dot nz
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com, Heinz at chanet dot de
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, bryce@albatross.co.nz
>Number: 354
>Category: gcj
>Synopsis: Cannot compile .jar files with current compiler
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 09 17:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: gcc version 2.97 20001008 (experimental)
>Organization:
>Environment:
linux
>Description:
The compiler gets a SIGSEGV attempting to build a .jar file.
It doesn't matter if the .jar is compressed or not.
(gdb) r gnu-regexp-1.0.8.jar -fno-use-divide-subroutine -fuse-boehm-gc -fasynchronous-exceptions -quiet -dumpbase gnu-regexp-1.0.8.jar -g1 -version -o /tmp/cc8fdFdw.s
Starting program: /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/jc1 gnu-regexp-1.0.8.jar -fno-use-divide-subroutine -fuse-boehm-gc -fasynchronous-exceptions -quiet -dumpbase gnu-regexp-1.0.8.jar -g1 -version -o /tmp/cc8fdFdw.s
GNU Java version 2.97 20001008 (experimental) (i686-pc-linux-gnu) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
Program received signal SIGSEGV, Segmentation fault.
0x4006c6d4 in _IO_seekoff (fp=0x0, offset=251, dir=0, mode=3) at ioseekoff.c:56
56 ioseekoff.c: No such file or directory.
(gdb) bt
#0 0x4006c6d4 in _IO_seekoff (fp=0x0, offset=251, dir=0, mode=3)
at ioseekoff.c:56
#1 0x4006cfc9 in fseek (fp=0x0, offset=251, whence=0) at fseek.c:39
#2 0x80a2f5a in parse_zip_file_entries () at ../../../gcc/java/jcf-parse.c:961
#3 0x80a2cd0 in yyparse () at ../../../gcc/java/jcf-parse.c:915
#4 0x80aef65 in compile_file (name=0x4011c6a0 "gnu-regexp-1.0.8.jar")
at ../../gcc/toplev.c:2350
#5 0x80b29b4 in main (argc=12, argv=0xbffff9c4) at ../../gcc/toplev.c:4845
>How-To-Repeat:
gcj -c some-jar-file.jar
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: