List Info

Thread: kadmin for ktremove takes a lock out on which file




kadmin for ktremove takes a lock out on which file
user name
2007-03-01 20:38:30
Hello,

Am using kadmin.local / kadmin to remove an entry from my
keytab but
everytime I do so - I get a hang after I specify ktremove.

Used gdb to look at the location of the hang - its in
__KerberosInternal_krb5_lock_file lock_file.c:111

using gdb I could figure out that it was trying to get an
Exclusive lock but
couldnt figure out on which file.
bt showed -

0x905b5d44 in fcntl$NOCANCEL$UNIX2003 ()
#1  0x2006fe18 in __KerberosInternal_krb5_lock_file
(context=<value
optimized out>, fd=5, mode=<value optimized out>)
at
/Sources/lib/krb5/os/lock_file.c:111
#2  0x2004d2e4 in krb5_ktfileint_open (context=0x805600,
id=0x30ad60,
mode=2) at /Sources/lib/krb5/keytab/kt_file.c:1076
#3  0x2004eec0 in krb5_ktfile_remove (context=<value
optimized out>,
id=<value optimized out>, entry=0xbffff848,
id=<value optimized out>,
context=<value optimized out>) at
/Sources/lib/krb5/keytab/kt_file.c:1125
#4  0x00007984 in kadmin_keytab_remove (argc=<value
optimized out>,
argv=<value optimized out>, kvno_str=<value
optimized out>,
princ_str=0xbffffba7 "keyName", keytab=0x30ad60,
keytab_str=0x30a210
"WRFILE:keytabFileName") at
/Sources/kadmin/cli/keytab.c:410
#5  0x00008154 in check_request_table (rqtbl=<value
optimized out>, argc=5,
argv=0x301d40, sci_idx=1) at
/Sources/util/ss/execute_cmd.c:89


Can anyone help me here? Would like to know which file is
ktremove trying to
get a lock on

Thanks
Kanika
_______________________________________________
krbdev mailing list             krbdevmit.edu
https
://mailman.mit.edu/mailman/listinfo/krbdev

Re: kadmin for ktremove takes a lock out on which file
country flaguser name
United States
2007-03-01 21:01:54
On Mar 1, 2007, at 21:38, Kanika Malhotra wrote:
> Am using kadmin.local / kadmin to remove an entry from
my keytab but
> everytime I do so - I get a hang after I specify
ktremove.
>
> Used gdb to look at the location of the hang - its in
> __KerberosInternal_krb5_lock_file lock_file.c:111
>
> using gdb I could figure out that it was trying to get
an Exclusive  
> lock but
> couldnt figure out on which file.
> bt showed -
>
> 0x905b5d44 in fcntl$NOCANCEL$UNIX2003 ()
> #1  0x2006fe18 in __KerberosInternal_krb5_lock_file
(context=<value
> optimized out>, fd=5, mode=<value optimized
out>) at
> /Sources/lib/krb5/os/lock_file.c:111

Use the "lsof" program on the process, and look at
file descriptor 5.

Ken

_______________________________________________
krbdev mailing list             krbdevmit.edu
https
://mailman.mit.edu/mailman/listinfo/krbdev

Re: kadmin for ktremove takes a lock out on which file
country flaguser name
United States
2007-03-05 20:12:54
Make sure you use RWFILE: instead of FILE: to refer to your
keytab
_______________________________________________
krbdev mailing list             krbdevmit.edu
https
://mailman.mit.edu/mailman/listinfo/krbdev

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )