Andrew,

Thanks for looking into this.

The attached captures the output from valgrind as requested, for two failed 
attempts to "sudo su" with password from a domain account.  (I tried adding the 
'-v' option to valgrind to display the "suppressed" errors, but that didn't 
have the desired effect.)

Let me know if there's more I can add, and I'll do my best to get you the 
information.

Thanks,
    Murthy



----- Original Message -----
From: Andrew Bartlett <abart...@samba.org>
To: S Murthy Kambhampaty <smk...@yahoo.com>
Cc: "samba@lists.samba.org" <samba@lists.samba.org>
Sent: Sunday, September 22, 2013 11:44 AM
Subject: Re: [Samba] S4-Winbind dumping core on password

On Tue, 2013-09-17 at 15:31 -0700, S Murthy Kambhampaty wrote:
> Samba4-winbind (sernet-samba-4.0.9) on RHEL 6.4 dumps core on password 
> authentication for a domain user (su/sudo), and so domain password 
> authentication fails.  The machine is a standalone server in a Windows AD 
> (2008R2) domain.

Are you able to reproduce this with winbindd running under valgrind?
eg:

valgrind --trace-children=yes winbindd

Thanks,

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team          http://samba.org
[root@myhostname myusername]# valgrind --trace-children=yes winbindd
==32733== Memcheck, a memory error detector
==32733== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==32733== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==32733== Command: winbindd
==32733==
==32733==
==32733== HEAP SUMMARY:
==32733==     in use at exit: 18,433 bytes in 160 blocks
==32733==   total heap usage: 502 allocs, 342 frees, 78,810 bytes allocated
==32733==
==32733== LEAK SUMMARY:
==32733==    definitely lost: 26 bytes in 2 blocks
==32733==    indirectly lost: 0 bytes in 0 blocks
==32733==      possibly lost: 15,112 bytes in 98 blocks
==32733==    still reachable: 3,295 bytes in 60 blocks
==32733==         suppressed: 0 bytes in 0 blocks
==32733== Rerun with --leak-check=full to see details of leaked memory
==32733==
==32733== For counts of detected and suppressed errors, rerun with: -v
==32733== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)
==32735==
==32735== HEAP SUMMARY:
==32735==     in use at exit: 22,502 bytes in 189 blocks
==32735==   total heap usage: 16,102 allocs, 15,913 frees, 3,151,910 bytes 
allocated
==32735==
==32735== LEAK SUMMARY:
==32735==    definitely lost: 26 bytes in 2 blocks
==32735==    indirectly lost: 0 bytes in 0 blocks
==32735==      possibly lost: 18,795 bytes in 125 blocks
==32735==    still reachable: 3,681 bytes in 62 blocks
==32735==         suppressed: 0 bytes in 0 blocks
==32735== Rerun with --leak-check=full to see details of leaked memory
==32735==
==32735== For counts of detected and suppressed errors, rerun with: -v
==32735== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)
==32737==
==32737== HEAP SUMMARY:
==32737==     in use at exit: 58,508 bytes in 321 blocks
==32737==   total heap usage: 3,486 allocs, 3,165 frees, 2,059,134 bytes 
allocated
==32737==
==32737== LEAK SUMMARY:
==32737==    definitely lost: 26 bytes in 2 blocks
==32737==    indirectly lost: 0 bytes in 0 blocks
==32737==      possibly lost: 48,163 bytes in 230 blocks
==32737==    still reachable: 10,319 bytes in 89 blocks
==32737==         suppressed: 0 bytes in 0 blocks
==32737== Rerun with --leak-check=full to see details of leaked memory
==32737==
==32737== For counts of detected and suppressed errors, rerun with: -v
==32737== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)
==32736== Invalid read of size 8
==32736==    at 0x77C304D: krb5_storage_free (in 
/usr/lib64/samba/libkrb5-samba4.so.26.0.0)
==32736==    by 0x77AB80C: ??? (in /usr/lib64/samba/libkrb5-samba4.so.26.0.0)
==32736==    by 0x77AA13D: krb5_kt_end_seq_get (in 
/usr/lib64/samba/libkrb5-samba4.so.26.0.0)
==32736==    by 0x9476FE1: ??? (in /usr/lib64/samba/libgse.so)
==32736==    by 0x947742C: gse_krb5_get_server_keytab (in 
/usr/lib64/samba/libgse.so)
==32736==    by 0x9478F36: ??? (in /usr/lib64/samba/libgse.so)
==32736==    by 0x843DB74: gensec_start_mech (in 
/usr/lib64/samba/libgensec.so.0.0.1)
==32736==    by 0x843F452: gensec_start_mech_by_oid (in 
/usr/lib64/samba/libgensec.so.0.0.1)
==32736==    by 0x133ADD: kerberos_return_pac (in /usr/sbin/winbindd)
==32736==    by 0x148ECE: winbindd_dual_pam_auth (in /usr/sbin/winbindd)
==32736==    by 0x160545: ??? (in /usr/sbin/winbindd)
==32736==    by 0x1607F0: ??? (in /usr/sbin/winbindd)
==32736==  Address 0x28 is not stack'd, malloc'd or (recently) free'd
==32736==
==32736==
==32736== HEAP SUMMARY:
==32736==     in use at exit: 167,058 bytes in 854 blocks
==32736==   total heap usage: 381,705 allocs, 380,851 frees, 85,533,476 bytes 
allocated
==32736==
==32736== LEAK SUMMARY:
==32736==    definitely lost: 2,510 bytes in 7 blocks
==32736==    indirectly lost: 0 bytes in 0 blocks
==32736==      possibly lost: 78,726 bytes in 435 blocks
==32736==    still reachable: 85,822 bytes in 412 blocks
==32736==         suppressed: 0 bytes in 0 blocks
==32736== Rerun with --leak-check=full to see details of leaked memory
==32736==
==32736== For counts of detected and suppressed errors, rerun with: -v
==32736== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 54 from 9)
==32736== could not unlink 
/tmp/vgdb-pipe-from-vgdb-to-32736-by-root-on-myhostname.mydomainname
==32736== could not unlink 
/tmp/vgdb-pipe-to-vgdb-from-32736-by-root-on-myhostname.mydomainname
==32736== could not unlink 
/tmp/vgdb-pipe-shared-mem-vgdb-32736-by-root-on-myhostname.mydomainname
==319== Invalid read of size 8
==319==    at 0x77C304D: krb5_storage_free (in 
/usr/lib64/samba/libkrb5-samba4.so.26.0.0)
==319==    by 0x77AB80C: ??? (in /usr/lib64/samba/libkrb5-samba4.so.26.0.0)
==319==    by 0x77AA13D: krb5_kt_end_seq_get (in 
/usr/lib64/samba/libkrb5-samba4.so.26.0.0)
==319==    by 0x9476FE1: ??? (in /usr/lib64/samba/libgse.so)
==319==    by 0x947742C: gse_krb5_get_server_keytab (in 
/usr/lib64/samba/libgse.so)
==319==    by 0x9478F36: ??? (in /usr/lib64/samba/libgse.so)
==319==    by 0x843DB74: gensec_start_mech (in 
/usr/lib64/samba/libgensec.so.0.0.1)
==319==    by 0x843F452: gensec_start_mech_by_oid (in 
/usr/lib64/samba/libgensec.so.0.0.1)
==319==    by 0x133ADD: kerberos_return_pac (in /usr/sbin/winbindd)
==319==    by 0x148ECE: winbindd_dual_pam_auth (in /usr/sbin/winbindd)
==319==    by 0x160545: ??? (in /usr/sbin/winbindd)
==319==    by 0x1607F0: ??? (in /usr/sbin/winbindd)
==319==  Address 0x28 is not stack'd, malloc'd or (recently) free'd
==319==
==319==
==319== HEAP SUMMARY:
==319==     in use at exit: 116,483 bytes in 646 blocks
==319==   total heap usage: 264,632 allocs, 263,986 frees, 62,504,521 bytes 
allocated
==319==
==319== LEAK SUMMARY:
==319==    definitely lost: 2,526 bytes in 15 blocks
==319==    indirectly lost: 0 bytes in 0 blocks
==319==      possibly lost: 60,232 bytes in 319 blocks
==319==    still reachable: 53,725 bytes in 312 blocks
==319==         suppressed: 0 bytes in 0 blocks
==319== Rerun with --leak-check=full to see details of leaked memory
==319==
==319== For counts of detected and suppressed errors, rerun with: -v
==319== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 48 from 9)
==319== could not unlink 
/tmp/vgdb-pipe-from-vgdb-to-319-by-root-on-myhostname.mydomainname
==319== could not unlink 
/tmp/vgdb-pipe-to-vgdb-from-319-by-root-on-myhostname.mydomainname
==319== could not unlink 
/tmp/vgdb-pipe-shared-mem-vgdb-319-by-root-on-myhostname.mydomainname

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to