[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KDC core dumping on Solaris 7



I am having problems running version 0.2q of heimdal. It compiles and the
kdc will startup ok but if I try to use kpasswd or use kadmin in non-local
mode, the kdc dies with an alignment error and dumps core. A stack trace
shows the problem to be in a call to malloc from der_get_octet_string. Has
anyone got any ideas what I am doing wrong?

Here is the stack trace:

=>[1] _smalloc(0x8, 0xff23a270, 0x0, 0x0, 0x0, 0xff233968), at 0xff1c5568
  [2] malloc(0x8, 0xa, 0xffbeec8c, 0xffbeec88, 0xffbeec84, 0xffbeec90), at
0xff1c55a4
  [3] der_get_octet_string(0x12c9ae, 0x8, 0x10f954, 0xffbeed04, 0x4,
0xffbeed04), at 0x6be3c
  [4] decode_octet_string(0x12c9ac, 0xa, 0x10f954, 0xffbeed88, 0x1,
0xffbeed88), at 0x6c778
  [5] decode_EncryptionKey(0x12c9a3, 0x13, 0x10f950, 0xffbeee10, 0x1,
0xffbeee10), at 0x8094c
  [6] decode_Key(0x12c99a, 0x64, 0x10f94c, 0xffbeeea8, 0x10c268,
0x10c270), at 0x30a30
  [7] decode_hdb_entry(0x12c948, 0x153, 0x10f8a0, 0x0, 0xff233968,
0x4384c), at 0x329e4
  [8] hdb_value2entry(0x10beb8, 0xffbeef8c, 0x10f8a0, 0xffbeef8c,
0xff233968, 0x2fe48), at 0x35f8c
  [9] _hdb_fetch(0x10beb8, 0x10c8b0, 0x1, 0x10f8a0, 0xff233968, 0x2db28),
at 0x3607c
  [10] db_fetch(0x1108b0, 0xea3a8, 0x10c3b0, 0x10ff18, 0x10ce58, 0x0), at
0x2e018
  [11] tgs_rep2(0xffbef310, 0x110688, 0xffbef3ac, 0x10ff18, 0x10f4a8,
0xffbef26c), at 0x2d300
  [12] tgs_rep(0xffbef304, 0xffbef3ac, 0x10ff18, 0x10f4a8, 0x0, 0x107c28),
at 0x2d798
  [13] process_request(0x11b2d0, 0x296, 0xffbef3ac, 0xffbef404, 0x10ff18,
0x10f4a8), at 0x2474c
  [14] do_request(0x11b2d0, 0x296, 0x0, 0x10fee8, 0x10f4a8, 0x10ff14), at
0x249a8
  [15] handle_udp(0x10fee8, 0xff2369f4, 0xff2369f4, 0xff2369f4,
0xff2369f4, 0xc), at 0x24ce4
  [16] loop(0x0, 0xffbef580, 0x0, 0xff238604, 0x8, 0x0), at 0x26160
  [17] main(0x1, 0xffbef60c, 0xffbef614, 0x102000, 0x0, 0x0), at 0x2decc


I have tried compiling with both gcc 2.8.1 and Sun C 5.0 and it seems to
make no difference.

=============================================================================
Graeme Wood                                 Email: Graeme.Wood@ucs.ed.ac.uk
Unix Systems Support                        Phone: +44 131 650 5003
The University of Edinburgh                 Fax:   +44 131 650 6552
=============================================================================