You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dalibor topic <da...@oracle.com> on 2015/06/08 13:53:12 UTC

Re: [compress] JDK 9 b64 breaks bzip2 decompression

Thanks for stripping the test case down, Stefan - the behaviour sounds 
rather odd.

Please file a bug at bugs.java.com, and let us know what issue ID you 
receive.

cheers,
dalibor topic

On 29.05.2015 21:00, Stefan Bodewig wrote:
> I've stripped down the test case to
>
> -------------------------------------
>
> import java.io.*;
> import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
> import org.apache.commons.compress.utils.IOUtils;
>
> public class Bzip2DecompressorLoop {
>      public static void main(String[] args) throws IOException {
>          int loops = 0;
>          while (true) {
>              ByteArrayOutputStream devNull = new ByteArrayOutputStream();
>              BZip2CompressorInputStream in = new BZip2CompressorInputStream(new FileInputStream("bla.tar.bz2"));
>              IOUtils.copy(in, devNull);
>              System.err.println("Finished loop: " + (loops++));
>          }
>      }
> }
>
> -------------------------------------
>
> compile it against Commons Compress 1.9 and use
> https://svn.apache.org/repos/asf/commons/proper/compress/trunk/src/test/resources/bla.txt.bz2
>
> It's not always the same number but somewhere around "loop 53" I get a
> "BZip2 CRC error" when using JDK 9 b64 - this is after decompressing the
> same file several times without any problems.
>
> Cheers
>
>          Stefan
>

-- 
<http://www.oracle.com> Dalibor Topic | Principal Product Manager
Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961
<tel:+491737185961>

Oracle | Kühnehöfe 5 | 22761 Hamburg
<http://www.oracle.com/commitment> Oracle is committed to developing
practices and products that help protect the environment

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


Re: [compress] JDK 9 b64 breaks bzip2 decompression

Posted by Rory O'Donnell <ro...@oracle.com>.
Thanks Stefan!

On 18/06/2015 15:59, Stefan Bodewig wrote:
> On 2015-06-18, Rory O'Donnell wrote:
>
>> Did you log a bug at bugs.java.com, if yes can you send me the
>> Incident number ?
> Sorry, so far I hadn't found the time to do so, just opened one
>
> Review ID: JI-9021700
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

-- 
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland


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


Re: [compress] JDK 9 b64 breaks bzip2 decompression

Posted by Rory O'Donnell <ro...@oracle.com>.
Thanks Stefan!

On 18/06/2015 15:59, Stefan Bodewig wrote:
> On 2015-06-18, Rory O'Donnell wrote:
>
>> Did you log a bug at bugs.java.com, if yes can you send me the
>> Incident number ?
> Sorry, so far I hadn't found the time to do so, just opened one
>
> Review ID: JI-9021700
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

-- 
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland


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


Re: [compress] JDK 9 b64 breaks bzip2 decompression

Posted by Balchandra Vaidya <ba...@oracle.com>.
Hi Stefan,

    Thank you for submitting the bug. The JBS id is 
https://bugs.openjdk.java.net/browse/JDK-8129330.

Regards
Balchandra

On 6/18/2015 8:29 PM, Stefan Bodewig wrote:
> On 2015-06-18, Rory O'Donnell wrote:
>
>> Did you log a bug at bugs.java.com, if yes can you send me the
>> Incident number ?
> Sorry, so far I hadn't found the time to do so, just opened one
>
> Review ID: JI-9021700
>
> Stefan


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


Re: [compress] JDK 9 b64 breaks bzip2 decompression

Posted by Balchandra Vaidya <ba...@oracle.com>.
Hi Stefan,

    Thank you for submitting the bug. The JBS id is 
https://bugs.openjdk.java.net/browse/JDK-8129330.

Regards
Balchandra

On 6/18/2015 8:29 PM, Stefan Bodewig wrote:
> On 2015-06-18, Rory O'Donnell wrote:
>
>> Did you log a bug at bugs.java.com, if yes can you send me the
>> Incident number ?
> Sorry, so far I hadn't found the time to do so, just opened one
>
> Review ID: JI-9021700
>
> Stefan


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


Re: [compress] JDK 9 b64 breaks bzip2 decompression

Posted by Stefan Bodewig <bo...@apache.org>.
On 2015-06-18, Rory O'Donnell wrote:

> Did you log a bug at bugs.java.com, if yes can you send me the
> Incident number ?

Sorry, so far I hadn't found the time to do so, just opened one

Review ID: JI-9021700

Stefan

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


Re: [compress] JDK 9 b64 breaks bzip2 decompression

Posted by Stefan Bodewig <bo...@apache.org>.
On 2015-06-18, Rory O'Donnell wrote:

> Did you log a bug at bugs.java.com, if yes can you send me the
> Incident number ?

Sorry, so far I hadn't found the time to do so, just opened one

Review ID: JI-9021700

Stefan

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


Re: [compress] JDK 9 b64 breaks bzip2 decompression

Posted by Rory O'Donnell <ro...@oracle.com>.
Hi Stefan

Did you log a bug at bugs.java.com, if yes can you send me the Incident 
number ?

Thanks,Rory

On 08/06/2015 12:53, dalibor topic wrote:
> Thanks for stripping the test case down, Stefan - the behaviour sounds 
> rather odd.
>
> Please file a bug at bugs.java.com, and let us know what issue ID you 
> receive.
>
> cheers,
> dalibor topic
>
> On 29.05.2015 21:00, Stefan Bodewig wrote:
>> I've stripped down the test case to
>>
>> -------------------------------------
>>
>> import java.io.*;
>> import 
>> org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
>> import org.apache.commons.compress.utils.IOUtils;
>>
>> public class Bzip2DecompressorLoop {
>>      public static void main(String[] args) throws IOException {
>>          int loops = 0;
>>          while (true) {
>>              ByteArrayOutputStream devNull = new 
>> ByteArrayOutputStream();
>>              BZip2CompressorInputStream in = new 
>> BZip2CompressorInputStream(new FileInputStream("bla.tar.bz2"));
>>              IOUtils.copy(in, devNull);
>>              System.err.println("Finished loop: " + (loops++));
>>          }
>>      }
>> }
>>
>> -------------------------------------
>>
>> compile it against Commons Compress 1.9 and use
>> https://svn.apache.org/repos/asf/commons/proper/compress/trunk/src/test/resources/bla.txt.bz2 
>>
>>
>> It's not always the same number but somewhere around "loop 53" I get a
>> "BZip2 CRC error" when using JDK 9 b64 - this is after decompressing the
>> same file several times without any problems.
>>
>> Cheers
>>
>>          Stefan
>>
>

-- 
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland


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


Re: [compress] JDK 9 b64 breaks bzip2 decompression

Posted by Rory O'Donnell <ro...@oracle.com>.
Hi Stefan

Did you log a bug at bugs.java.com, if yes can you send me the Incident 
number ?

Thanks,Rory

On 08/06/2015 12:53, dalibor topic wrote:
> Thanks for stripping the test case down, Stefan - the behaviour sounds 
> rather odd.
>
> Please file a bug at bugs.java.com, and let us know what issue ID you 
> receive.
>
> cheers,
> dalibor topic
>
> On 29.05.2015 21:00, Stefan Bodewig wrote:
>> I've stripped down the test case to
>>
>> -------------------------------------
>>
>> import java.io.*;
>> import 
>> org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
>> import org.apache.commons.compress.utils.IOUtils;
>>
>> public class Bzip2DecompressorLoop {
>>      public static void main(String[] args) throws IOException {
>>          int loops = 0;
>>          while (true) {
>>              ByteArrayOutputStream devNull = new 
>> ByteArrayOutputStream();
>>              BZip2CompressorInputStream in = new 
>> BZip2CompressorInputStream(new FileInputStream("bla.tar.bz2"));
>>              IOUtils.copy(in, devNull);
>>              System.err.println("Finished loop: " + (loops++));
>>          }
>>      }
>> }
>>
>> -------------------------------------
>>
>> compile it against Commons Compress 1.9 and use
>> https://svn.apache.org/repos/asf/commons/proper/compress/trunk/src/test/resources/bla.txt.bz2 
>>
>>
>> It's not always the same number but somewhere around "loop 53" I get a
>> "BZip2 CRC error" when using JDK 9 b64 - this is after decompressing the
>> same file several times without any problems.
>>
>> Cheers
>>
>>          Stefan
>>
>

-- 
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland


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