classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DeflaterOutputStream.deflate [was: Re: Problems with SableVM and Ant]


From: Grzegorz B. Prokopski
Subject: DeflaterOutputStream.deflate [was: Re: Problems with SableVM and Ant]
Date: Mon, 08 Mar 2004 01:02:11 -0500

Cc:ing GNU Classpath ML.

May be somebody would be willing to help squashing this (apparently)
Classpath's bug? Or maybe it's been fixed in 0.08 already? Don't know.

W liƛcie z nie, 07-03-2004, godz. 17:47, Stefan Gybas pisze: 
> I have just uploaded a new version of libant1.5-java which now partly 
> works with SableVM. I have added the boot class path to the call to the 
> Java compiler so building classes with Jikes now works.

Thanks a lot, indeed compilation now works well :-)

> The main problem with SableVM and Ant is now that creating JARs does not 
> work. Ant has its own implementation of a ZipOutputStream (in 
> org.apache.tools.zip) which is used to create .zip and .jar archives 
> which consumes all CPU power but does not create the JAR.

Once upon a time SableVM was contributed a nice patch for stack/trace
dump. All one has to do is to 'kill -SIGQUIT $PID'. Here's what I got:

(DeflaterOutputStream.java:91) 
java/util/zip/DeflaterOutputStream.deflate   
(ZipOutputStream.java:284) 
org/apache/tools/zip/ZipOutputStream.closeEntry   
(ZipOutputStream.java:323) 
org/apache/tools/zip/ZipOutputStream.putNextEntry   
(Zip.java:869)  org/apache/tools/ant/taskdefs/Zip.zipDir   
(Zip.java:1025)  org/apache/tools/ant/taskdefs/Zip.addParentDirs   
(Zip.java:575)  org/apache/tools/ant/taskdefs/Zip.addResources   
(Zip.java:415)  org/apache/tools/ant/taskdefs/Zip.execute   
(Task.java:341)  org/apache/tools/ant/Task.perform   
(Target.java:309)  org/apache/tools/ant/Target.execute   
(Target.java:336)  org/apache/tools/ant/Target.performTasks   
(Project.java:1339)  org/apache/tools/ant/Project.executeTarget   
(Ant.java:397)  org/apache/tools/ant/taskdefs/Ant.execute   
(CallTarget.java:143) 
org/apache/tools/ant/taskdefs/CallTarget.execute   
(Task.java:341)  org/apache/tools/ant/Task.perform   
(Target.java:309)  org/apache/tools/ant/Target.execute   
(Target.java:336)  org/apache/tools/ant/Target.performTasks   
(Project.java:1339)  org/apache/tools/ant/Project.executeTarget   
(Project.java:1255)  org/apache/tools/ant/Project.executeTargets   
(Main.java:609)  org/apache/tools/ant/Main.runBuild   
(Main.java:196)  org/apache/tools/ant/Main.start   
(Main.java:235)  org/apache/tools/ant/Main.main   
(VirtualMachine.java:-1)  java/lang/VirtualMachine.invokeMain  n
(VirtualMachine.java:88)  java/lang/VirtualMachine.main   

The interesting thing is that
java/util/zip/DeflaterOutputStream is GNU Classpath's class.
This is not even included in ANT's source.

If I try to send SIGQUIT a few times, alternatively I see such top
of the stack:

(DeflaterEngine.java:694)  java/util/zip/DeflaterEngine.needsInput   
(Deflater.java:307)  java/util/zip/Deflater.needsInput   
(DeflaterOutputStream.java:91) 
java/util/zip/DeflaterOutputStream.deflate   
....

So I guess it's running in circles somewhere inside the deflate or
closeEntry method.

Any ideas?

                                Grzegorz B. Prokopski

-- 
Grzegorz B. Prokopski <address@hidden>
Debian GNU/Linux      http://www.debian.org
SableVM - LGPLed JVM  http://www.sablevm.org
Why SableVM ?!?       http://devel.sablevm.org/wiki/WhySableVM





reply via email to

[Prev in Thread] Current Thread [Next in Thread]