#848589 snap-aligner: Build requires 188 GB of memory (fortunately not used, just allocated) #848589
- Package:
- src:snap-aligner
- Source:
- snap-aligner
- Submitter:
- Santiago Vila
- Date:
- 2026-10-04 19:51:02 UTC
- Severity:
- normal
Hello Andreas et al. Building this package allocates 188 GB of memory. To see how this could be a problem, take a machine with a lot of memory, say, 64 GB of RAM, which btw is more than three times the amount required to build any other Debian package, and disable memory overcommiting by creating /etc/sysctl.d/10-no-overcommit.conf with this contents: vm.overcommit_ratio = 100 vm.overcommit_memory = 2 Then write "sysctl --system" to load those values. Then try to build this package in such machine, and it will fail. It is normally assumed that applications overcommit as a normal thing, but this package builds fine in a machine having as little as 1 GB of RAM, so the overcommit ratio is about 188:1. Maybe this package does actually require such high amount of memory to work, but as far as building is concerned, every other Debian package which I know (well, except gpgme which requires 230 GB, the only other anomaly I found) could be built with only 20 GB of RAM, so this package is really an outlier. Thanks.
Hi, I've forwarded the issue upstream: https://github.com/amplab/snap/issues/82 Kind regards Andreas.
Hello, Bug #848589 in snap-aligner reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/med-team/snap-aligner/-/commit/4673d2fec96d0113f1dea1418cab665c54a64d2e (this message was generated automatically) -- Greetings https://bugs.debian.org/848589
We believe that the bug you reported is fixed in the latest version of
snap-aligner, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 848589@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated snap-aligner package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 04 Oct 2026 21:25:00 +0200
Source: snap-aligner
Architecture: source
Version: 2.0.5+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 848589
Changes:
snap-aligner (2.0.5+dfsg-2) unstable; urgency=medium
.
* Team upload.
* Detach threads created in StartNewThread to stop leaking thread stacks.
Closes: #848589.
* Drop "Rules-Requires-Root: no" (default).
* Drop "Priority: optional" (default).
* Update standards-version.
* Fine-tune salsa-ci.yml.
Checksums-Sha1:
d940ac69d8cbefea0d38b387470b9e7b3d2acc5a 1775 snap-aligner_2.0.5+dfsg-2.dsc
0951c07ddadbc95f19d2d6f2df117d8d85e60079 8756 snap-aligner_2.0.5+dfsg-2.debian.tar.xz
4b5c1b26eacb5bb517c0e11af4e4ba59994e563e 5220 snap-aligner_2.0.5+dfsg-2_source.buildinfo
Checksums-Sha256:
8b2c96dd905fe7f4a52c0c8c67b6563e4df5930bdeb410b4e36eb6bc16438ec6 1775 snap-aligner_2.0.5+dfsg-2.dsc
92585a9b1157c0f0dc6b35d0dbc7e9e492d823964301d8e1ef0fcf7725041f73 8756 snap-aligner_2.0.5+dfsg-2.debian.tar.xz
e862a23121389420b5fe673705de5650d5a893b2c3136ce2c9250aad38259525 5220 snap-aligner_2.0.5+dfsg-2_source.buildinfo
Files:
2da9ac2a7ab02cfec3f31bb7b57d38ba 1775 science optional snap-aligner_2.0.5+dfsg-2.dsc
a77465d78eb9a839256a8157b9c294bc 8756 science optional snap-aligner_2.0.5+dfsg-2.debian.tar.xz
44d9c5d1a2af6aa80ad3a7f68f486481 5220 science optional snap-aligner_2.0.5+dfsg-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmrCqPIACgkQQc5/C58b
izKG5QgAp8/ZoeQo14gsD5M2rR8hGgTDlYEfPkYjn9IpKVO4AbDd8GdYT/4JeKQc
JfhFlslcmcyY0kmbyFR+DVKScy08+cFN8IdePewzTAlMoOlTyeBICEbMAh4/dCCe
pLa4WHTenoXYkFvojA1wDOZmCHHrQlCmYHRtSZOlu3no9d5biX1NLTUSOaN/1wcb
m/2U0vVLKdK8+1WGQhHtQY7njz+k9+bivr/GmpSImoOxzYVCdVJYdJxmli3E1qYd
V+Q/l+3AsG4Ayy5NwF9vk+BSzbgW19ZzxFwij4fdOPOVBfZy1m3CpAzWmdUbYORN
zih1omj0hGFHM1xLUEqi26ZxdhCl9A==
=BvJ3
-----END PGP SIGNATURE-----