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

kadmin dumps core -- missing auth_context in kadm5/mk_priv.c




(gdb) run -p leifj/admin
Starting program: /usr/local/heimdal/sbin/kadmin -p leifj/admin
leifj/admin@MATEMATIK.SU.SE's Password:
kadmin> list *

Program received signal SIGSEGV, Segmentation fault.
krb5_mk_priv (context=0x804e960, auth_context=0x0, userdata=0xbfffef74,
    outbuf=0xbfffef6c, outdata=0x0) at mk_priv.c:69
mk_priv.c:69: No such file or directory.
(gdb) bt
#0  krb5_mk_priv (context=0x804e960, auth_context=0x0, userdata=0xbfffef74,
    outbuf=0xbfffef6c, outdata=0x0) at mk_priv.c:69
#1  0x4000ea05 in _kadm5_client_send (context=0x804ea20, sp=0x8056558)
    at send_recv.c:56
#2  0x4000d4d9 in kadm5_c_get_principals (server_handle=0x804ea20,
    exp=0x805642d "*", princs=0xbffff3f0, count=0xbffff3ec)
    at get_princs_c.c:60
#3  0x4000d08a in kadm5_get_principals (server_handle=0x804ea20,
    exp=0x805642d "*", princs=0xbffff3f0, count=0xbffff3ec)
    at common_glue.c:121
#4  0x804bfa4 in foreach_principal (exp=0x805642d "*",
    func=0x804a870 <do_get_entry>, data=0xbffff414) at util.c:287
#5  0x804aa01 in list_princs (argc=2, argv=0x8056528) at get.c:253
#6  0x400888f0 in sl_command (cmds=0x804e410, argc=2, argv=0x8056528)
    at sl.c:143
#7  0x40088a57 in sl_command_loop (cmds=0x804e410,
    prompt=0x804cdf9 "kadmin> ", data=0xbffff47c) at sl.c:209
#8  0x40088abe in sl_loop (cmds=0x804e410, prompt=0x804cdf9 "kadmin> ")
    at sl.c:225
#9  0x804b083 in main (argc=3, argv=0xbffff514) at kadmin.c:276

This is not limited to list:

(gdb) run -p leifj/admin
The program being debugged has been started already.
Start it from the beginning? (y or n) yes
Starting program: /usr/local/heimdal/sbin/kadmin -p leifj/admin
leifj/admin@MATEMATIK.SU.SE's Password:
kadmin> add -r host/trurl.matematik.su.se
Max ticket life [unlimited]:
Max renewable life [unlimited]:
Attributes []:

Program received signal SIGSEGV, Segmentation fault.
krb5_mk_priv (context=0x804e960, auth_context=0x0, userdata=0xbfffeb2c,
    outbuf=0xbfffeb24, outdata=0x0) at mk_priv.c:69
mk_priv.c:69: No such file or directory.
(gdb) bt
#0  krb5_mk_priv (context=0x804e960, auth_context=0x0, userdata=0xbfffeb2c,
    outbuf=0xbfffeb24, outdata=0x0) at mk_priv.c:69
#1  0x4000ea05 in _kadm5_client_send (context=0x804ea20, sp=0x8056598)
    at send_recv.c:56
#2  0x4000d10f in kadm5_c_create_principal (server_handle=0x804ea20,
    princ=0xbffff3d0, mask=17, password=0x804c248 "hemlig") at create_c.c:60
#3  0x4000cf66 in kadm5_create_principal (server_handle=0x804ea20,
    princ=0xbffff3d0, mask=17, password=0x804c248 "hemlig") at common_glue.c:59
#4  0x8049d6f in add_new_key (argc=3, argv=0x8056558) at ank.c:117
#5  0x400888f0 in sl_command (cmds=0x804e410, argc=3, argv=0x8056558)
    at sl.c:143
#6  0x40088a57 in sl_command_loop (cmds=0x804e410,
    prompt=0x804cdf9 "kadmin> ", data=0xbffff47c) at sl.c:209
#7  0x40088abe in sl_loop (cmds=0x804e410, prompt=0x804cdf9 "kadmin> ")
    at sl.c:225
#8  0x804b083 in main (argc=3, argv=0xbffff514) at kadmin.c:276 

The culprit seems to be a missing auth_context (and you indeed have
a comment in mk_priv.c which indicates that you have been thinking
about this)

	Cheers Leif

PS version is 0.1g naturally DS