Bug#1110495: mame-tools: Possible chdman memory leak
Nacho
cbx130 at protonmail.com
Thu Aug 7 01:13:17 BST 2025
Package: mame-tools
Version: 0.276+dfsg.1-1
Severity: important
X-Debbugs-Cc: cbx130 at protonmail.com
Dear Maintainer,
Upon running chdman (part of the tools included in the package mame-tools) to compress an ISO file to CHD, memory usage increases until it fills both physical and swap memory, rendering the system unusable until the OOM killer stops the process before it finishes and makes the resulting file useless.
The command used is chdman createdvd -i 'name_of_iso.iso' -o 'name_of_iso.chd' and it should not use more than a few GB's of memory to finish the process. It seems to happen with every single ISO file I've tried no matter the size, but on smaller files the process at least completes before the system runs out of memory, resulting in a compressed and usable CHD file.
I have not yet tried any of the other functions of the chdman package, but I have tried older and newer versions of chdman on other systems and have never experienced this problem. (I have not found any mention of a memory leak 'fix' in the last releases upstream)
-- System Information:
Debian Release: 13.0
APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.38+deb13-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), LANGUAGE=es_AR:es
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mame-tools depends on:
ii libc6 2.41-11
ii libflac14 1.5.0+ds-2
ii libgcc-s1 14.2.0-19
ii libsdl2-2.0-0 2.32.4+dfsg-1
ii libstdc++6 14.2.0-19
ii libutf8proc3 2.9.0-1+b2
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
Versions of packages mame-tools recommends:
ii mame 0.276+dfsg.1-1
mame-tools suggests no packages.
-- no debconf information
More information about the Pkg-games-devel
mailing list