Subject: bin/15520: ktutil coredumps on "get"
To: None <gnats-bugs@gnats.netbsd.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 02/07/2002 23:31:44
>Number:         15520
>Category:       bin
>Synopsis:       ktutil coredumps on "get"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 07 02:32:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mark Davies
>Release:        NetBSD 1.5ZA 5/2/2002.
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
	
	
System: NetBSD marche.mcs.vuw.ac.nz 1.5ZA NetBSD 1.5ZA (MCS_WORKSTATION) #7: Tue Feb  5
21:31:08 NZDT 2002     mark@turakirae.mcs.vuw.ac.nz:/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	ktutil dies with a SEGV when trying to do a 'get' to update host
	keys in a keytab.

	Stacktrace from the core shows:

(gdb) where
#0  0x4808fae6 in krb5_store_string () from /usr/lib/libkrb5.so.18
#1  0x480662fa in _kadm5_marshal_params () from /usr/lib/libkadm5clnt.so.7
#2  0x48064a92 in _kadm5_c_init_context () from /usr/lib/libkadm5clnt.so.7
#3  0x48064c39 in _kadm5_connect () from /usr/lib/libkadm5clnt.so.7
#4  0x48065478 in kadm5_c_create_principal () from /usr/lib/libkadm5clnt.so.7
#5  0x48063aa9 in kadm5_create_principal () from /usr/lib/libkadm5clnt.so.7
#6  0x804aca9 in kt_get ()
#7  0x4817c329 in sl_command () from /usr/lib/libsl.so.2
#8  0x804b2a0 in main ()
#9  0x8049770 in ___start ()

	
>How-To-Repeat:
	

	Run something like "ktutil get -p mark/admin host/marche.mcs.vuw.ac.nz"
	Watch it core dump.

	Note the kdc/kadmind is also on an i386 1.5ZA system.

	Running the same command to the same kdc/kadmind from a Tru64 box
	running heimdal 0.4c works.
>Fix:
	
	Don't know yet.

cheers
mark
>Release-Note:
>Audit-Trail:
>Unformatted: