advzip dies due to OOM killer

Bug #1828151 reported by Chai T. Rex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
advancecomp (Ubuntu)
New
Undecided
Unassigned

Bug Description

 System information
====================

        $ lsb_release -rd
        Description: Ubuntu 18.04.2 LTS
        Release: 18.04

        $ apt-cache policy advancecomp
        advancecomp:
          Installed: 2.1-1ubuntu0.18.04.1
          Candidate: 2.1-1ubuntu0.18.04.1
          Version table:
         *** 2.1-1ubuntu0.18.04.1 500
                500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
                500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
                100 /var/lib/dpkg/status
             2.1-1 500
                500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

 Problem
=========

When creating a ZIP file with a bunch of files, it seems that intermediate results are never written to disk until the compression is complete. Since all intermediate results are retained in RAM, the OOM killer can strike when the files to be compressed are too large to fit in memory all at the same time.

 Example
=========

        $ free -mh
                      total used free shared buff/cache available
        Mem: 15G 4.6G 7.4G 1.3G 3.4G 9.2G
        Swap: 979M 0B 979M

        $ du -hs
        56G .

        $ advzip -ap4 ../recovered.zip *
        LostFiles/Dir_3928/Application Data/Avira/AntiVir Desktop/UPDATE_000/VALIDATION/xbv00016.vdf
        LostFiles/Dir_3928/Application Data/Avira/AntiVir Desktop/UPDATE_000/VALIDATION/xbv00134.vdf
        LostFiles/Dir_3928/Application Data/Avira/AntiVir Desktop/UPDATE_000/VALIDATION/xbv00169.vdf
        ⋮ ⋮ ⋮ ⋮
        Killed

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: advancecomp 2.1-1ubuntu0.18.04.1
ProcVersionSignature: Ubuntu 4.15.0-48.51-generic 4.15.18
Uname: Linux 4.15.0-48-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue May 7 22:55:26 2019
Dependencies:
 gcc-8-base 8.2.0-1ubuntu2~18.04
 libc6 2.27-3ubuntu1
 libgcc1 1:8.2.0-1ubuntu2~18.04
 libstdc++6 8.2.0-1ubuntu2~18.04
 zlib1g 1:1.2.11.dfsg-0ubuntu2
InstallationDate: Installed on 2018-12-27 (131 days ago)
InstallationMedia: Xubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: advancecomp
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Chai T. Rex (chaitrex) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.