The Samba-Bugzilla – Bug 4190
Sementation fault when using password component of pam_winbind
Last modified: 2006-11-29 13:58:14 UTC
From our user:
/usr/bin/passwd crashes with "Segmentation fault" when changing password.
passwd: password updated successfully
The password is acually changed OK, the crash comes during PAM cleanup.
The problem seems to be these lines form pam_sm_chauthtok() in
time_t pwdlastset_prelim = 0;
pam_set_data(pamh, PAM_WINBIND_PWD_LAST_SET, (void *)pwdlastset_prelim, _pam_winbind_cleanup_func);
Although this strange type conversion from (time_t) to (void *) seems to work,
bad things happen when _pam_winbind_cleanup_func() cllas free() on the value
during PAM cleanup.
pam_set_data( ... , NULL);
instead seems to resolve this problem (I do not know if NULL is allowed
for this argument. It seems to work).
Our users reports that the bug has been fixed in 3.0.23d. If he's right, I suggest setting that bug report to FIXED
Yes, I did fix that (and wasn't even aware of this good error report ;-)).