You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/02/12 19:30:59 UTC

DO NOT REPLY [Bug 41596] New: - ant 1.7 tar and bzip2 tasks corrupted output file when size exceeds certain limit

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596

           Summary: ant 1.7 tar and bzip2 tasks corrupted output file when
                    size exceeds certain limit
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: levanttran@yahoo.com


Description:

    Ant tar task with bzip2 compression option or ant bzip2 task generates
    corrupted output for filesize of roughly 170+MB (before compression).

    This problem occurs with ant version 1.7 installed in 12/06.
    Tested on linux with both jdk 1.5 and jdk 1.6

Work around: replace <tar compress=bzip2..> or <bzip2 ..>
         with 2 steps: <tar ..> and <exec ...bzip2>

For example,

 Replace this:
    <bzip2 src="${out.file}.dmp.tar"
        destfile="${out.file}.dmp.tar.bz2">
      <tarfileset dir="${dumps.dir}">
        <include name="${dist.schema}.dmp"/>
      </tarfileset>
    </bzip2>
 Or this:
    <tar destfile="${out.file}.dmp.tar"
        compression="bzip2">
      <tarfileset dir="${dumps.dir}">
        <include name="${dist.schema}.dmp"/>
      </tarfileset>
    </tar>


 With:

    <tar destfile="${out.file}.dmp.tar">
      <tarfileset dir="${dumps.dir}">
        <include name="${dist.schema}.dmp"/>
      </tarfileset>
    </tar>

    <exec dir="${dumps.dir}"
        executable="bzip2">
        <arg value="${out.file}.dmp.tar"/>
    </exec>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 tar and bzip2 tasks corrupted output file when size exceeds certain limit

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596





------- Additional Comments From levanttran@yahoo.com  2007-04-26 08:52 -------
(In reply to comment #0)
> Description:
> 
>     Ant tar task with bzip2 compression option or ant bzip2 task generates
>     corrupted output for filesize of roughly 170+MB (before compression).
> 
>     This problem occurs with ant version 1.7 installed in 12/06.
>     Tested on linux with both jdk 1.5 and jdk 1.6
> 
> Work around: replace <tar compress=bzip2..> or <bzip2 ..>
>          with 2 steps: <tar ..> and <exec ...bzip2>
> 
> For example,
> 
>  Replace this:
>     <bzip2 src="${out.file}.dmp.tar"
>         destfile="${out.file}.dmp.tar.bz2">
>       <tarfileset dir="${dumps.dir}">
>         <include name="${dist.schema}.dmp"/>
>       </tarfileset>
>     </bzip2>
>  Or this:
>     <tar destfile="${out.file}.dmp.tar"
>         compression="bzip2">
>       <tarfileset dir="${dumps.dir}">
>         <include name="${dist.schema}.dmp"/>
>       </tarfileset>
>     </tar>
> 
> 
>  With:
> 
>     <tar destfile="${out.file}.dmp.tar">
>       <tarfileset dir="${dumps.dir}">
>         <include name="${dist.schema}.dmp"/>
>       </tarfileset>
>     </tar>
> 
>     <exec dir="${dumps.dir}"
>         executable="bzip2">
>         <arg value="${out.file}.dmp.tar"/>
>     </exec>

(In reply to comment #3)
> I can't attach the testcase, since its compressed size (1.4M) exceeds the
> bugzilla limit for uploads. Does anyone have a server where I can upload and
> link it?


I believe it's the content specific.  However I couldn't upload our data because
it's confidential.  Your testcase is crucial in this case.
Hopefully ant developers will contact you to get your testcase.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596





------- Additional Comments From mkoch@rowa.de  2007-05-02 03:06 -------
Created an attachment (id=20086)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20086&action=view)
Testcase with datafile for which the bzip2 task creates a corrupted bz2 file

I have managed to reduce the size of my testcase to 10MB uncompressed (should
have done that earlier). Note that if I only take the last 9MB of the testcase
file, the created bzip2 file is correct.

The attached archive contains a testcase data file for which the ant bzip2 task
creates a corrupted bz2 archive and an ant buildfile which demonstrates the
behavior. The buildfile creates the bz2 archive and then executes the
command-line bzip2 -tv, which shows the error.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596


mkoch@rowa.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|dev@ant.apache.org          |peterreilly@apache.org
             Status|NEEDINFO                    |NEW




------- Additional Comments From mkoch@rowa.de  2007-05-02 03:08 -------
Changing status and reassigning to peterreilly@apache.org as requested in the
NEEDINFO status description.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression




------- Additional Comments From peterreilly@apache.org  2007-05-28 08:34 -------
Tested with ant 1.6.5.
ant 1.6.5 works with this build file - so this is a regression.
comment #2 also says this.

Looking at the SVN repository the main change that
I can see is: revison 278185
http://svn.apache.org/viewvc?view=rev&revision=276208

which was applied as a result of:
http://issues.apache.org/bugzilla/show_bug.cgi?id=24798

this was done to make bzip2 faster and use less memory - however
on some edge cases it does seem to generate corrupt files.
I would suggest rolling back the changes.





-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596





------- Additional Comments From peterreilly@apache.org  2007-05-28 08:39 -------

Opps THAT should be: !
http://svn.apache.org/viewvc?view=rev&revision=278185


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|peterreilly@apache.org      |dev@ant.apache.org




------- Additional Comments From peterreilly@apache.org  2007-05-02 03:20 -------
Thanks for the test build file and data.
I can confirm that I see the same error.
reassigning to dev@ant.apache.org

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 tar and bzip2 tasks corrupted output file when size exceeds certain limit

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596


mkoch@rowa.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkoch@rowa.de




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596





------- Additional Comments From gudnabrsam@yahoo.com  2007-04-28 13:41 -------
So is it the content of your specific file, or might it be possible to create a
buildfile or other program capable of -producing- a file that would show the
same problems?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596





------- Additional Comments From mkoch@rowa.de  2007-04-29 22:53 -------
(In reply to comment #6)
> So is it the content of your specific file, or might it be possible to create a
> buildfile or other program capable of -producing- a file that would show the
> same problems?

I tried at first to set up a script which creates files with random data of
increasing length to generate a smaller testcase, but the script ran very slow
(mainly because of /dev/random taking long to generate random data). I am also
not sure how the bzip2 algorithm behaves on pseudorandom data and if the error
will be triggered at all.

I think that to create a testcase, knowledge of the algorithms used is needed to
generate testcases for the boundary conditions; in other words you already need
to have a good idea what the error might be to write a testcase for it (and I
have no understanding of how bzip2 works).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 tar and bzip2 tasks corrupted output file when size exceeds certain limit

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From peterreilly@apache.org  2007-02-12 11:30 -------
I have not been able to reproduce this.
I have tested with the Knoppix.iso file as
an example of a large (~700M) file:

    <tar destfile="iso.tar.bz2"
         compression="bzip2">
      <tarfileset dir=".">
       <include name="big.iso"/>
     </tarfileset>
   </tar>

The resultant tar bz2 file seems ok,
tar xjf works on it and the cmp program
reports no difference:

~/learning/a/big> ls
big.iso  big.iso.save  build.xml  iso.tar.bz2
~/learning/a/big> tar tjf iso.tar.bz2
big.iso
~/learning/a/big> mkdir z
~/learning/a/big> cd z
~/learning/a/big/z> tar xjf ../iso.tar.bz2
~/learning/a/big/z> cmp big.iso ../big.iso
~/learning/a/big/z>      


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596


mkoch@rowa.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ant 1.7 tar and bzip2 tasks |ant 1.7 bzip2 task creates
                   |corrupted output file when  |corrupted output file for
                   |size exceeds certain limit  |some inputs




------- Additional Comments From mkoch@rowa.de  2007-04-26 23:02 -------
I have updated the summary to better describe the problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.7.1




------- Additional Comments From peterreilly@apache.org  2007-05-30 06:30 -------
I have reverted the bzip2 output stream code, and the example
files that were provided now work. Thanks a lot for providing
the example files - they were extremely useful.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 bzip2 task creates corrupted output file for some inputs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596





------- Additional Comments From levanttran@yahoo.com  2007-04-29 21:08 -------
(In reply to comment #6)
> So is it the content of your specific file, or might it be possible to create a
> buildfile or other program capable of -producing- a file that would show the
> same problems?

My file was an oracle dump file.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 tar and bzip2 tasks corrupted output file when size exceeds certain limit

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596





------- Additional Comments From mkoch@rowa.de  2007-04-26 06:57 -------
I can't attach the testcase, since its compressed size (1.4M) exceeds the
bugzilla limit for uploads. Does anyone have a server where I can upload and
link it?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 41596] - ant 1.7 tar and bzip2 tasks corrupted output file when size exceeds certain limit

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41596


mkoch@rowa.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Linux                       |All




------- Additional Comments From mkoch@rowa.de  2007-04-26 06:38 -------
I've run into the same problem with the bzip2 task. The src file was originally
837MB, but through repeatedly splitting the file I could create a 22MB test file
which when bzipped with the ant task creates a corrupt bz2 file (verified with
bzip2 -t). I'll attach this file as a testcase. If I cut the file to 21MB, ant
creates a working bz2 file.

I could reproduce this error on both Windows XP and Linux, so I changed the OS
field to "All".

The error happens with both Java 1.5.0_10 and Java 1.6.0. I also tested the
following ant versions:

Corrupted bz2 file:
Apache Ant version 1.7.1alpha compiled on April 25 2007 (nightly build)
Apache Ant version 1.7.0 compiled on December 13 2006

Working:
Apache Ant version 1.6.5 compiled on June 2 2005

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org