[Bug 1828151] [NEW] advzip dies due to OOM killer
Chai T. Rex
1828151 at bugs.launchpad.net
Wed May 8 03:17:43 UTC 2019
Public bug reported:
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)
** Affects: advancecomp (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to advancecomp in Ubuntu.
https://bugs.launchpad.net/bugs/1828151
Title:
advzip dies due to OOM killer
Status in advancecomp package in Ubuntu:
New
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/advancecomp/+bug/1828151/+subscriptions
More information about the foundations-bugs
mailing list