commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Li (JIRA)" <>
Subject [jira] [Created] (COMPRESS-248) Naive OOM when deal with a corrupt .gz file
Date Tue, 10 Dec 2013 03:47:06 GMT
Jing Li created COMPRESS-248:

             Summary: Naive OOM when deal with a corrupt .gz file
                 Key: COMPRESS-248
             Project: Commons Compress
          Issue Type: Bug
          Components: Compressors
    Affects Versions: 1.6
         Environment: Fedora 19 x86_64, 8G RAM, Java version "1.7.0_45"
OpenJDK Runtime Environment (fedora- u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
            Reporter: Jing Li

I tried to extract three gz files, and they are corrupt. The two of them at ahead  throw the
Caused by: Gzip-compressed data is corrupt

But when comes to the third one it throw out OOM as below:
	at Method)

The third file is corrupt, but Linux recognize it as a compressed gz file.
More info:

[jing@localhost logs]$ file stdout.log.txt.gz 
stdout.log.txt.gz: gzip compressed data, was "stdout.log_backup", from Unix, last modified:
Tue Nov 19 22:53:19 2013
[jing@localhost logs]$ tar -xvzf stdout.log.txt.gz

gzip: stdin: invalid compressed data--format violated
tar: Child returned status 1
tar: Error is not recoverable: exiting now

This message was sent by Atlassian JIRA

View raw message