[1811] in Kerberos-V5-bugs
krb5 b6-: kdc SEGV on shutdown
daemon@ATHENA.MIT.EDU (Richard Basch)
Fri Feb 23 08:55:54 1996
Date: Fri, 23 Feb 1996 08:55:00 -0500
To: krb5-bugs@MIT.EDU
Cc: krbdoc@lehman.com
From: "Richard Basch" <basch@lehman.com>
I am finding that shutting down the kdc (SIGTERM) yields a SEGV coredump.
The stack traces I have are not conclusive, but indicate the following path:
finish_realm()
. . .
if (rdp->realm_keytab)
krb5_kt_close(rdp->realm_context, rdp->realm_keytab);
(called from) finish_realms()
Looking at the realm_keytab structure:
(gdb) print *kdc_realmlist[0]->realm_keytab->ops
$6 = {magic = 0, prefix = 0x22698 "KDB", resolve = 0, get_name = 0, close = 0,
get = 0x1cc34 <krb5_ktkdb_get_entry>, start_seq_get = 0, get_next = 0,
end_get = 0, add = 0, remove = 0, serializer = 0x0}
The macro in k5-int.h will try to invoke the close function, which is a
NULL pointer, and would certainly account for the behavior seen.
This should be cleaned up before the production release; I need to
tackle a few other things in the meantime (and this isn't one of my
showstoppers for a k5 roll-out here).
Richard Basch
Sr. Developer/Analyst URL: http://web.mit.edu/basch/www/home.html
Lehman Brothers, Inc. Email: basch@lehman.com, basch@mit.edu
101 Hudson St., 33rd Floor Fax: +1-201-524-5828
Jersey City, NJ 07302-3988 Voice: +1-201-524-5049