principal~.kadm5 & C.
Giuseppe Mazza
g.mazza at imperial.ac.uk
Thu Jul 17 08:59:30 EDT 2014
On 16/07/14 15:54, Greg Hudson wrote:
> You could also try installing the libkrb5-dbg
> package and gdb attaching to the process to get a stack trace.
>
Please find my attempt below:
<<On my slave tt-u1404>>
root at tt-u1404:~/foo# ls
kdb-dump kdb-dump.dump_ok
root at tt-u1404:~/foo# /usr/sbin/kdb5_util load kdb-dump
...it hangs...
root at tt-u1404:~# ps aux | grep kdb5_util
root 9842 3.1 0.1 6272 1428 pts/4 t+ 13:07 1:14
/usr/sbin/kdb5_util load kdb-dump
root at tt-u1404:/var/lib/krb5kdc# gdb -p 9842
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
...
Reading symbols from /lib/i386-linux-gnu/libdl.so.2...Reading symbols
from /usr/lib/debug//lib/i386-linux-gnu/libdl-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libdl.so.2
Reading symbols from
/usr/lib/i386-linux-gnu/krb5/plugins/kdb/db2.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/krb5/plugins/kdb/db2.so
0xb7231a76 in ?? () from /usr/lib/i386-linux-gnu/krb5/plugins/kdb/db2.so
(gdb) bt
#0 0xb7231a76 in ?? () from /usr/lib/i386-linux-gnu/krb5/plugins/kdb/db2.so
#1 0xb722e9d7 in ?? () from /usr/lib/i386-linux-gnu/krb5/plugins/kdb/db2.so
#2 0xb722e578 in ?? () from /usr/lib/i386-linux-gnu/krb5/plugins/kdb/db2.so
#3 0xb72255e7 in ?? () from /usr/lib/i386-linux-gnu/krb5/plugins/kdb/db2.so
#4 0xb722685d in ?? () from /usr/lib/i386-linux-gnu/krb5/plugins/kdb/db2.so
#5 0xb7790a93 in krb5_db_put_principal (kcontext=0x8fb0088,
entry=0x8fb7330)
at ../../../src/lib/kdb/kdb5.c:925
#6 0x0804f4e9 in ?? ()
#7 0x0804d5d4 in ?? ()
#8 0x08050746 in ?? ()
#9 0x0804ab31 in ?? ()
#10 0xb74bca83 in __libc_start_main (main=0x804a820, argc=3,
argv=0xbfbf6894,
init=0x8055580, fini=0x80555f0, rtld_fini=0xb77da180 <_dl_fini>,
stack_end=0xbfbf688c) at libc-start.c:287
#11 0x0804b484 in ?? ()
(gdb) list
1 ../sysdeps/i386/dl-procinfo.c: No such file or directory.
<<On my desktop>>
I have downloaded the source package krb5_1.12.1+dfsg.orig.tar.gz:
bee% wget
https://launchpad.net/ubuntu/+archive/primary/+files/krb5_1.12.1%2Bdfsg.orig.tar.gz
-O /data/downloads/kerberos/krb5_1.12.1+dfsg.orig.tar.gz
bee% pwd
/data/downloads/kerberos/krb5-1.12.1/src/lib/kdb
bee% head -n 928 kdb5.c | tail -4
status = v->put_principal(kcontext, entry, db_args);
if (status == 0 && ulog_locked)
(void) ulog_finish_update(kcontext, upd);
What do you think? Do you need more info?
Cheers,
Giuseppe
More information about the Kerberos
mailing list