public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1382: Cannot compile .jar files with current compiler
@ 2000-12-20 12:27 bryce
  0 siblings, 0 replies; only message in thread
From: bryce @ 2000-12-20 12:27 UTC (permalink / raw)
  To: java-gnats; +Cc: Heinz

>Number:         1382
>Category:       java
>Synopsis:       Cannot compile .jar files with current compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    green
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:19:28 PST 2000
>Closed-Date:    
>Last-Modified:  Fri Dec 15 20:16:01 PST 2000
>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:

Formerly PR gcj/354

Responsible-Changed-From-To: apbianco->green
Responsible-Changed-By: green
Responsible-Changed-When: Mon Oct  9 19:21:15 2000
Responsible-Changed-Why:
    I'll look at this one as it relates to jar support in the compiler.

From: green@cygnus.com
To: Heinz@chanet.de, apbianco@cygnus.com, bryce@albatross.co.nz,
  green@cygnus.com, java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/354
Date: 10 Oct 2000 02:21:15 -0000

 Synopsis: Cannot compile .jar files with current compiler
 
 Responsible-Changed-From-To: apbianco->green
 Responsible-Changed-By: green
 Responsible-Changed-When: Mon Oct  9 19:21:15 2000
 Responsible-Changed-Why:
     I'll look at this one as it relates to jar support in the compiler.
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=354&database=java

From: Bryce McKinlay <bryce@albatross.co.nz>
To: java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/354
Date: Sat, 16 Dec 2000 17:05:58 +1300

 Unfortunatly this is still not working for compressed .jar files. With
 the current tree, I get:
 
 $ gcj --shared gnu-regexp-1.0.8.jar -o gnu-regexp.so
 gnu-regexp-1.0.8.jar:0: Not a valid Java .class file.
 
 (If I rebuild the .jar without compression, it works fine.)
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=354&database=java
 
 
 
>Unformatted:



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-20 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:27 java/1382: Cannot compile .jar files with current compiler bryce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).