no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory

Newly installed Ubuntu 14.04 server and samba on a new PC.
When I was trying to create an array by execute the mdadm command with sudo, I got this error message:

no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory

Somehow, the sudo command was successfully completed, but the error message is annoying. I was thinking this maybe a mdadm bug, but after tried some other commands – I found each time when I was execute a command with sudo I got this error message. Weird! After googling around I found some pages relating to this problem. Looks like this seems to be a issue with samba and libpam-smbpass?

libpam-smbpass
https://launchpad.net/ubuntu/trusty/+package/libpam-smbpass
pluggable authentication module for Samba

This is a module for PAM that enables a system administrator to migrate
user passwords from the Unix password database to the SMB password
database as used by Samba, and to subsequently keep the two databases in
sync. Unlike other solutions, it does this without needing users to log
in to Samba using cleartext passwords, or requiring them to change their
existing passwords.

Solution:

apt-get remove libpam-smbpass

or
Run "pam-auth-update" and uncheck “SMB password synchronization”.

Since I may not use PAM in samba at this time, so I simply removed libpam-smbpass from system, then the annoying error message disappeared.

References:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1257186
http://ubuntuforums.org/showthread.php?t=2214042
https://bugzilla.samba.org/show_bug.cgi?id=10420
https://bugzilla.samba.org/show_bug.cgi?id=8449

Leave a Reply

Your email address will not be published. Required fields are marked *