public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.)
@ 2006-04-23 16:30 doko at ubuntu dot com
2006-04-23 16:31 ` [Bug libgcj/27271] " doko at ubuntu dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: doko at ubuntu dot com @ 2006-04-23 16:30 UTC (permalink / raw)
To: java-prs
The following code fails to run with the gij-4.1 runtime (4.1 branch 20060421),
works ok with the blackdown runtime (example distilled from FC's azureus-themed
patch by Stephan Michels).
$ cat TestLoadImage.java
import java.io.InputStream;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
public class TestLoadImage {
public static void main(String[] args) {
final Display display = new Display();
InputStream is = TestLoadImage.class.getResourceAsStream("new.gif");
System.out.println("is="+is);
Image im = new Image(display, is);
System.out.println("im="+im);
}
}
$ gij -Djava.library.path=/usr/lib/jni -cp
/usr/lib/java/swt3.1-gtk.jar:test.jar TestLoadImage
is=java.util.jar.JarFile$EntryInputStream@2d93c04d
Exception in thread "main" org.eclipse.swt.SWTException: i/o error
(java.util.zip.ZipException: Deflated stream ends early.)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.SWT.error(SWT.java:2866)
at
org.eclipse.swt.internal.image.GIFFileFormat.readID(GIFFileFormat.java:138)
at
org.eclipse.swt.internal.image.GIFFileFormat.getExtensions(GIFFileFormat.java:150)
at
org.eclipse.swt.internal.image.GIFFileFormat.loadFromByteStream(GIFFileFormat.java:124)
at
org.eclipse.swt.internal.image.FileFormat.loadFromStream(FileFormat.java:47)
at org.eclipse.swt.internal.image.FileFormat.load(FileFormat.java:75)
at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:126)
at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:18)
at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:327)
at org.eclipse.swt.graphics.Image.<init>(Image.java:490)
at TestLoadImage.main(TestLoadImage.java:11)
Caused by: java.util.zip.ZipException: Deflated stream ends early.
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:156)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:195)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:169)
at java.io.FilterInputStream.read(FilterInputStream.java:155)
at java.util.jar.JarFile$EntryInputStream.read(JarFile.java:974)
at
org.eclipse.swt.internal.image.LEDataInputStream.read(LEDataInputStream.java:76)
at
org.eclipse.swt.internal.image.GIFFileFormat.readID(GIFFileFormat.java:134)
...9 more
--
Summary: i/o error (java.util.zip.ZipException: Deflated stream
ends early.)
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
@ 2006-04-23 16:31 ` doko at ubuntu dot com
2006-04-24 17:43 ` tromey at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: doko at ubuntu dot com @ 2006-04-23 16:31 UTC (permalink / raw)
To: java-prs
------- Comment #1 from doko at ubuntu dot com 2006-04-23 16:31 -------
Created an attachment (id=11318)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11318&action=view)
test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
2006-04-23 16:31 ` [Bug libgcj/27271] " doko at ubuntu dot com
@ 2006-04-24 17:43 ` tromey at gcc dot gnu dot org
2006-06-02 16:09 ` green at redhat dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-04-24 17:43 UTC (permalink / raw)
To: java-prs
------- Comment #2 from tromey at gcc dot gnu dot org 2006-04-24 17:43 -------
Also fails with svn head.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-04-24 17:43:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
2006-04-23 16:31 ` [Bug libgcj/27271] " doko at ubuntu dot com
2006-04-24 17:43 ` tromey at gcc dot gnu dot org
@ 2006-06-02 16:09 ` green at redhat dot com
2006-07-11 22:10 ` tromey at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: green at redhat dot com @ 2006-06-02 16:09 UTC (permalink / raw)
To: java-prs
------- Comment #3 from green at redhat dot com 2006-06-02 16:09 -------
This bug may also be what's causing rssowl to suddenly fail in FC5. Both
Eclipse (swt) and gcc were updated in FC5 recently, and one of those triggered
the failure.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193880
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
` (2 preceding siblings ...)
2006-06-02 16:09 ` green at redhat dot com
@ 2006-07-11 22:10 ` tromey at gcc dot gnu dot org
2006-07-12 0:24 ` tromey at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-07-11 22:10 UTC (permalink / raw)
To: java-prs
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-04-24 17:43:28 |2006-07-11 22:10:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
` (3 preceding siblings ...)
2006-07-11 22:10 ` tromey at gcc dot gnu dot org
@ 2006-07-12 0:24 ` tromey at gcc dot gnu dot org
2006-07-12 17:00 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-07-12 0:24 UTC (permalink / raw)
To: java-prs
------- Comment #4 from tromey at gcc dot gnu dot org 2006-07-12 00:24 -------
The bug here is that Inflater needs an extra input byte in some situations.
I think ZipFile has to provide this byte; a patch to do this makes this
test case work again. I need to investigate ZipInputStream and
GZIPInputStream, too, before committing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
` (4 preceding siblings ...)
2006-07-12 0:24 ` tromey at gcc dot gnu dot org
@ 2006-07-12 17:00 ` tromey at gcc dot gnu dot org
2006-07-12 17:01 ` cvs-commit at developer dot classpath dot org
2006-07-12 17:02 ` tromey at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-07-12 17:00 UTC (permalink / raw)
To: java-prs
------- Comment #5 from tromey at gcc dot gnu dot org 2006-07-12 17:00 -------
Subject: Bug 27271
Author: tromey
Date: Wed Jul 12 17:00:49 2006
New Revision: 115378
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115378
Log:
PR libgcj/27271:
* java/util/zip/ZipFile.java (getInputStream): Call addDummyByte
on PartialInputStream.
(PartialInputStream.dummyByteCount): New field.
(PartialInputStream.fillBuffer): Handle dummy byte.
(PartialInputStream.read): Likewise.
(PartialInputStream.addDummyByte): New method.
Modified:
trunk/libjava/classpath/ChangeLog.gcj
trunk/libjava/classpath/java/util/zip/ZipFile.java
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
` (5 preceding siblings ...)
2006-07-12 17:00 ` tromey at gcc dot gnu dot org
@ 2006-07-12 17:01 ` cvs-commit at developer dot classpath dot org
2006-07-12 17:02 ` tromey at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at developer dot classpath dot org @ 2006-07-12 17:01 UTC (permalink / raw)
To: java-prs
------- Comment #6 from cvs-commit at developer dot classpath dot org 2006-07-12 17:01 -------
Subject: Bug 27271
CVSROOT: /cvsroot/classpath
Module name: classpath
Changes by: Tom Tromey <tromey> 06/07/12 17:00:34
Modified files:
. : ChangeLog
java/util/zip : ZipFile.java
Log message:
PR libgcj/27271:
* java/util/zip/ZipFile.java (getInputStream): Call
addDummyByte
on PartialInputStream.
(PartialInputStream.dummyByteCount): New field.
(PartialInputStream.fillBuffer): Handle dummy byte.
(PartialInputStream.read): Likewise.
(PartialInputStream.addDummyByte): New method.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8080&r2=1.8081
http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/zip/ZipFile.java?cvsroot=classpath&r1=1.34&r2=1.35
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
` (6 preceding siblings ...)
2006-07-12 17:01 ` cvs-commit at developer dot classpath dot org
@ 2006-07-12 17:02 ` tromey at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-07-12 17:02 UTC (permalink / raw)
To: java-prs
------- Comment #7 from tromey at gcc dot gnu dot org 2006-07-12 17:02 -------
Fix checked in.
It works with the test case from the PR.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27271
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-07-12 17:02 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-23 16:30 [Bug libgcj/27271] New: i/o error (java.util.zip.ZipException: Deflated stream ends early.) doko at ubuntu dot com
2006-04-23 16:31 ` [Bug libgcj/27271] " doko at ubuntu dot com
2006-04-24 17:43 ` tromey at gcc dot gnu dot org
2006-06-02 16:09 ` green at redhat dot com
2006-07-11 22:10 ` tromey at gcc dot gnu dot org
2006-07-12 0:24 ` tromey at gcc dot gnu dot org
2006-07-12 17:00 ` tromey at gcc dot gnu dot org
2006-07-12 17:01 ` cvs-commit at developer dot classpath dot org
2006-07-12 17:02 ` tromey at gcc dot gnu dot org
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).