kinit locking up

Russ Allbery rra at stanford.edu
Wed Dec 14 22:39:56 EST 2005


Jon DeVree <jadevree at mtu.edu> writes:

> Attached is the output from valgrind.

Below is the interesting bit.  valgrind at least thinks that the mutexes
aren't fully initialized, it looks like, before they're passed into the
pthread functions.  Note that I don't get these same errors when I run
valgrind against the kinit in unstable, so I'm curious about what's
different in your situation.

One thing that I did notice was a bunch of SASL calls earlier on.  I think
the invalid reads there are probably just the standard ld.so noise that
doesn't appear to mean anything, but their presence indicates that you're
using some nsswitch module (I'm guessing) that uses SASL.  Are you using
LDAP to do UID lookups, by any chance?

I don't know why that would affect things, but maybe it is.

> ==16877== Conditional jump or move depends on uninitialised value(s)
> ==16877==    at 0x444AF7A: pthread_mutex_lock (in /lib/tls/i686/cmov/libpthread-2.3.5.so)
> ==16877==    by 0x41C9FE5: pthread_mutex_lock (in /lib/tls/i686/cmov/libc-2.3.5.so)
> ==16877==    by 0x406DB49: krb5_fcc_initialize (cc_file.c:1423)
> ==16877==    by 0x4070197: krb5_cc_initialize (ccfns.c:49)
> ==16877==    by 0x804A397: (within /usr/bin/kinit)
> ==16877==    by 0x4100EAF: __libc_start_main (in /lib/tls/i686/cmov/libc-2.3.5.so)

[...]

> ==16877== Conditional jump or move depends on uninitialised value(s)
> ==16877==    at 0x444AF7A: pthread_mutex_lock (in /lib/tls/i686/cmov/libpthread-2.3.5.so)
> ==16877==    by 0x41C9FE5: pthread_mutex_lock (in /lib/tls/i686/cmov/libc-2.3.5.so)
> ==16877==    by 0x406D259: krb5_fcc_store (cc_file.c:2124)
> ==16877==    by 0x40701F7: krb5_cc_store_cred (ccfns.c:68)
> ==16877==    by 0x804AB5E: (within /usr/bin/kinit)
> ==16877==    by 0x4100EAF: __libc_start_main (in /lib/tls/i686/cmov/libc-2.3.5.so)

[...]

> ==16877== Conditional jump or move depends on uninitialised value(s)
> ==16877==    at 0x444AF7A: pthread_mutex_lock (in /lib/tls/i686/cmov/libpthread-2.3.5.so)
> ==16877==    by 0x41C9FE5: pthread_mutex_lock (in /lib/tls/i686/cmov/libc-2.3.5.so)
> ==16877==    by 0x406E075: dereference (cc_file.c:1485)
> ==16877==    by 0x406E2EE: krb5_fcc_close (cc_file.c:1503)
> ==16877==    by 0x40701D3: krb5_cc_close (ccfns.c:61)
> ==16877==    by 0x8049E3B: (within /usr/bin/kinit)
> ==16877==    by 0x4100EAF: __libc_start_main (in /lib/tls/i686/cmov/libc-2.3.5.so)

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>


More information about the Kerberos mailing list