[946] in Kerberos-V5-bugs
Problem with the Kerberos V beta 2 KDC daemon on HP-UX platform.
daemon@ATHENA.MIT.EDU (Mark.Vandenwauver@esat.kuleuven.ac)
Tue Nov 8 11:18:32 1994
From: Mark.Vandenwauver@esat.kuleuven.ac.be
To: krb5-bugs@MIT.EDU
Date: Tue, 8 Nov 94 17:13:49 MET
Here is the problem I rapported you about. The problem lies
with the Kerberos KDC daemon.
When trying to test
Kerberos I always get this error message when starting up the
KDC.
krb5kdc:
And then the process starts to use all the CPU time.
I have recompiled everything with the debugflags on
and using xdb I have found the location of the troubles.
It is in file network.c (krb5/src/kdc/network.c) on line
76. When trying to do this instruction the whole thing
collapses and I get the message
Bad access to child process (UE308)
When trying to execute line 76 in network.c.
Apparently there is something wrong with the way
sockets are defined on HP.
Mark
PS : Attached you will find the output of the xdb debugger.
If you need any other information please tell me.
XDB-OUTPUT
64: struct servent *sp;
65: struct sockaddr_in sin;
66: krb5_error_code retval;
FD_ZERO(&select_fds);
69: select_nfsd = 0;
70: sp = getservbyname(krb5_kdc_udp_portname, "udp");
71: if (!sp) {
72: com_err(prog, 0, "%s/udp service unknown\n",
73: krb5_kdc_udp_portname);
74: return KDC5_NOPORT;
75: }
> 76: if ((udp_port_fd = socket(PF_INET, SOCK_DGRAM, 0)) == -1) {
77: retval = errno;
78: com_err(prog, 0, "Cannot create server socket");
79: return retval;
80: }
81: memset((char *)&sin, 0, sizeof(sin));
82: sin.sin_port = sp->s_port;
83: if (bind(udp_port_fd, (struct sockaddr *)&sin, sizeof(sin)) == -1) {
84: retval = errno;
85: com_err(prog, 0, "Cannot bind server socket");
86: return retval;
87: }
88: FD_SET(udp_port_fd, &select_fds);
File: network.c Procedure: setup_network Line: 76
>s
>s
>s
>s
>s
>s
>s
>s
>s
>s
>s
Bad access to child process (UE308)
>s
krb5kdc: