[Bug 1814532] Re: Big samba memory leak fixed upstream
Mikael Hartzell
1814532 at bugs.launchpad.net
Mon Feb 4 14:28:01 UTC 2019
On top of the original Samba bug report
(https://bugzilla.samba.org/show_bug.cgi?id=13372) it says this affects
*Samba 4.1 and newer* or am I interpreting it incorrectly ?
At least I am experiencing the same behavior on Ubuntu 14.04.5 Server
with Samba 4.3.11. Sad if it won't help us with our problem.
The offending code was submitted to Samba at 29th Jun 2017, you can find
the commit here: https://gitlab.com/samba-
team/samba/commit/bd9285b19741128bae501b721d9e63dd9a9bd833 If you
search for the source file name: source3/modules/vfs_default.c on the
page.
Maybe the date when the bug appeared sheds some light which releases
really are affected.
** Bug watch added: Samba Bugzilla #13372
https://bugzilla.samba.org/show_bug.cgi?id=13372
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1814532
Title:
Big samba memory leak fixed upstream
Status in samba package in Ubuntu:
New
Bug description:
There is a big memory leak bug in Samba 4.1 - 4.7.6. Depending on the
circumstances all memory of the Ubuntu server will be eaten by Samba
sooner or later. Then Linux Oom - killer will kill Samba which will
either restart or hang.
On our Ubuntu Server 14.04.5 I need to restart Samba 1 - 2 times a
week. This bug probably affects also Ubuntu 18.04 if this fix has not
yet been backported.
This bug has been fixed upstream in Samba 4.7.7. The fix is only two
lines of code and the bug is caused by a single misplaced "if" when
releasing memory.
This upstream commit fixes the bug: https://gitlab.com/samba-
team/samba/commit/461a1172ff819692aa0a2dc5ce7fc5379c8a529e
This is the Samba bug report:
https://bugzilla.samba.org/show_bug.cgi?id=13372
And here the author apologizes for the bug :)
https://lists.samba.org/archive/samba-technical/2018-April/126937.html
Please backport this fix to Ubuntu 14.04 and 18.04, thanks :)
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: samba 2:4.3.11+dfsg-0ubuntu0.14.04.19
ProcVersionSignature: Ubuntu 3.13.0-164.214-generic 3.13.11-ckt39
Uname: Linux 3.13.0-164-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.29
Architecture: amd64
BothFailedConnect: Yes
Date: Mon Feb 4 11:34:06 2019
InstallationDate: Installed on 2014-09-25 (1592 days ago)
InstallationMedia: Ubuntu-Server 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.3)
SambaServerRegression: Yes
SmbConfIncluded: No
SourcePackage: samba
UpgradeStatus: No upgrade log present (probably fresh install)
upstart.samba-ad-dc.override: manual
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1814532/+subscriptions
More information about the Ubuntu-sponsors
mailing list