Your message dated Tue, 15 Nov 2016 19:33:32 +0000
with message-id <e1c6ju4-0008lx...@fasolo.debian.org>
and subject line Bug#844299: fixed in bash 4.4-2
has caused the Debian Bug report #844299,
regarding big $HISTSIZE causes exessive memory usage
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
844299: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844299
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: bash
Version: 4.4-1
Severity: serious
Hello,
apparently bash 4.4 as available in Debian Stretch introduced a
regression compared to 4.3 from Debian Jessie: when setting $HISTSIZE to
a big value (e.g. 99999999 as suggested in a lot of docs out there on
the web), the resulting bash process seems to allocate way to much
memory, approximately 800MB each.
I consider this a severe memory leak/consumption bug, thus setting
severity to serious. Feel free to lower severity if you disagree.
It's not enough to set the environment variable $HISTSIZE in a running
bash session. Instead, it needs to set at invocation of the shell, e.g.
by setting it in the ~/.bashrc:
HISTSIZE=99999999
Here's the process status page of a process with HISTSIZE=99999999:
$ cat /proc/3156/status
Name: bash
Umask: 0022
State: S (sleeping)
Tgid: 3156
Ngid: 0
Pid: 3156
PPid: 2796
TracerPid: 0
Uid: 1000 1000 1000 1000
Gid: 1000 1000 1000 1000
FDSize: 256
Groups: 24 25 27 29 30 44 46 107 111 123 125 126 127 1000
NStgid: 3156
NSpid: 3156
NSpgid: 3156
NSsid: 3156
VmPeak: 1071904 kB
VmSize: 1071868 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 787328 kB
VmRSS: 787328 kB
RssAnon: 783640 kB
RssFile: 3688 kB
RssShmem: 0 kB
VmData: 1050920 kB
VmStk: 136 kB
VmExe: 1024 kB
VmLib: 2116 kB
VmPTE: 1600 kB
VmPMD: 16 kB
VmSwap: 0 kB
HugetlbPages: 0 kB
Threads: 1
SigQ: 0/45722
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000010000
SigIgn: 0000000000380004
SigCgt: 000000004b817efb
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000003fffffffff
CapAmb: 0000000000000000
Seccomp: 0
Cpus_allowed: ff
Cpus_allowed_list: 0-7
Mems_allowed: 00000000,00000001
Mems_allowed_list: 0
voluntary_ctxt_switches: 30
nonvoluntary_ctxt_switches: 13
And here you find the status page of a bash process with default
HISTSIZE=1000:
$ cat /proc/6888/status
Name: bash
Umask: 0022
State: S (sleeping)
Tgid: 6888
Ngid: 0
Pid: 6888
PPid: 2796
TracerPid: 0
Uid: 1000 1000 1000 1000
Gid: 1000 1000 1000 1000
FDSize: 256
Groups: 24 25 27 29 30 44 46 107 111 123 125 126 127 1000
NStgid: 6888
NSpid: 6888
NSpgid: 6888
NSsid: 6888
VmPeak: 23220 kB
VmSize: 23156 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 6028 kB
VmRSS: 6028 kB
RssAnon: 2248 kB
RssFile: 3780 kB
RssShmem: 0 kB
VmData: 2208 kB
VmStk: 136 kB
VmExe: 1024 kB
VmLib: 2116 kB
VmPTE: 64 kB
VmPMD: 12 kB
VmSwap: 0 kB
HugetlbPages: 0 kB
Threads: 1
SigQ: 0/45722
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000010000
SigIgn: 0000000000380004
SigCgt: 000000004b817efb
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000003fffffffff
CapAmb: 0000000000000000
Seccomp: 0
Cpus_allowed: ff
Cpus_allowed_list: 0-7
Mems_allowed: 00000000,00000001
Mems_allowed_list: 0
voluntary_ctxt_switches: 57
nonvoluntary_ctxt_switches: 7
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages bash depends on:
ii base-files 9.6
ii dash 0.5.8-2.3
ii debianutils 4.8
ii libc6 2.24-5
ii libtinfo5 6.0+20160917-1
Versions of packages bash recommends:
ii bash-completion 1:2.1-4.3
Versions of packages bash suggests:
pn bash-doc <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: bash
Source-Version: 4.4-2
We believe that the bug you reported is fixed in the latest version of
bash, 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 844...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <d...@debian.org> (supplier of updated bash 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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 15 Nov 2016 19:49:00 +0100
Source: bash
Binary: bash bash-static bash-builtins bash-doc
Architecture: source
Version: 4.4-2
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <d...@debian.org>
Changed-By: Matthias Klose <d...@debian.org>
Description:
bash - GNU Bourne Again SHell
bash-builtins - Bash loadable builtins - headers & examples
bash-doc - Documentation and examples for the GNU Bourne Again SHell
bash-static - GNU Bourne Again SHell (static version)
Closes: 842037 844299
Changes:
bash (4.4-2) unstable; urgency=medium
.
* Apply upstream patches 001 - 005.
- Closes: #844299, LP: #1641832.
* Don't build with PIE. Closes: #842037.
Checksums-Sha1:
5c1b6bab6dbaa4cdf49eb7c7414379bed50d8851 2229 bash_4.4-2.dsc
d840cef4beabe831d02f8e4b3e898e0219959792 61272 bash_4.4-2.debian.tar.xz
Checksums-Sha256:
b19a65fe01d13a457cd29261557a8c7d731d9127ebe5696d2130a30374ec4644 2229
bash_4.4-2.dsc
912b60da8f84db158c734e912a0fe8c4babd1df760a58b17d0bd9d12bf6a96c8 61272
bash_4.4-2.debian.tar.xz
Files:
441999cdb3e386806fa9948deca497c2 2229 base required bash_4.4-2.dsc
17afd422b49c780118e5bda81a455359 61272 base required bash_4.4-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAlgrXW0QHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9eaaD/sEBJE1GyNlChPROotILEcCNk8aoGUF3WB3
oT+lrBBcdoRHaUIXMTJT2+wfqvO4GiTugp5YWAOjg4NQk4+4+uVV94lZwKlqi2lt
an6uvc3VdDa4AddUmLJcv/Y8aBOYq94EYlGXcHvS7r+JIu+3xUHQuM/y3o31SNKb
9lt0TpmcqaXE+OB1GSk9weHawg7pNuP8TNpnxxYM754lJ08GqEM3d9ru1zPFbNHu
PfiduuGQFNqHGf+19Hk8SJxUwK4tFe6e5hu2XMHV9/oNKD7oavf34cWUwHoTUIcH
MYzt8H5yR9qWR2LM4aJMHRfLCAGTvUS/6Hoabgo7AACfKuhPI4Qscved8vzFcRL+
CWy6iAc4WPc4UHPV+NXUpoynihe4u+7SkV1mF1broYQfbEYRtubYZ7a1ttw507+G
IopCTpuxltREX38z2bHLcOW8JBvhwHa7oyUrablhf/bOmyVcQBNVvdZ8xHWjVMKX
Hf2nxCsPTcfNYD8ail/VLaVhPzbjpk5nqjwUSV8qpkJBPjlwabXWmEo3EUnDn3s7
uNtZoX1iWLkRrMhJzNmbxlbnQU9Gtb2ur/jP2LJnF7AgBrCXkSMXuRQ/3vjKzhH7
yJ/lUw1ERbgkbjl0V1WRBiNAd4wvTTSASZ4b+oPS2Ie6G4cqgNM8ZngEHxmnEJnI
qh3y5rekUw==
=WSO2
-----END PGP SIGNATURE-----
--- End Message ---