advzip dies due to OOM killer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
advancecomp (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
System information
=======
$ lsb_release -rd
Release: 18.04
$ apt-cache policy advancecomp
Version table:
*** 2.1-1ubuntu0.
500 http://
500 http://
100 /var/lib/
2.1-1 500
500 http://
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
Mem: 15G 4.6G 7.4G 1.3G 3.4G 9.2G
Swap: 979M 0B 979M
$ du -hs
56G .
$ advzip -ap4 ../recovered.zip *
⋮ ⋮ ⋮ ⋮
Killed
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: advancecomp 2.1-1ubuntu0.
ProcVersionSign
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~
libc6 2.27-3ubuntu1
libgcc1 1:8.2.0-
libstdc++6 8.2.0-1ubuntu2~
zlib1g 1:1.2.11.
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)