renew initial tickets leak
prabhakaran
prab at apple.com
Mon Nov 17 15:44:40 EST 2003
Hi
I was doing leaks testing on Mac OS X 10.2.6 and Panther 10.3 on
some code that renews tickets periodically. I am able to nail the
problem to one line of code, If I comment that line no leaks, if I
include that line leaks show
up. (OS X command leaks <pid> was used to determine)
rc = KLRenewInitialTickets( principal, loginOptions, NULL, NULL);
loginOptions is created with KLCreateLoginOptions and has addressless
option set and
the ticket and renewal life times set. The cache has three users with
TGTs obtained for 10, 20, 30 minutes
respectively.
Any help will be appreciated...
Thanks
-prab
looks like the cache name 1, 2 are leaking. since the last parm is the
cache name and I am passing
null the renew code must have freed it internally. Also the principal
name (zcat) is also leaking.
I could not see anything obvious in the KLRenew code, might be deep
within ?
========= leak result ===========
0x3fb93029 0x00000000 0x00000000 0x00025050
Leak: 0x00507640 size=16
0x0000357b 0xa4311dc0 0x005279b0 0x00010001
Leak: 0x005077b0 size=16
0x005277a0 0x005274b0 0x005074b0 0x00010001
Leak: 0x00527250 size=16
0x00527260 0x00527558 0x00000000 0x0002352e
Leak: 0x00527260 size=16 string '1'
Leak: 0x005077d0 size=16 string '2'
Leak: 0x005275b0 size=16
0x00527a20 0x00000000 0x005074a0 0x0002ab67
Leak: 0x00527660 size=16
0x0000357b 0xa4311dc0 0x00527250 0x00010001
Leak: 0x00527670 size=16 string 'zcat'
Leak: 0x00527680 size=16
0x0000357b 0xa4311dc0 0x00527690 0x0002352e
Leak: 0x00527690 size=16
0x00527820 0x00527778 0x00000000 0x00010001
Leak: 0x005276f0 size=16
0x0000357b 0xa4311dc0 0x00527700 0x00020000
Leak: 0x00527760 size=16
0x00001c2f 0x00000000 0x00000000 0x00100001
Leak: 0x00527820 size=16 string '0'
Leak: 0x00527830 size=16
0x00001c2f 0x00000000 0x00000000 0x00020002
Leak: 0x00527940 size=16
0x00527950 0x00527918 0x00000000 0x00020000
Leak: 0x00508bf0 size=16
0x0000357b 0xa4311dc0 0x00508c00 0x0002352e
Leak: 0x00527950 size=16 string '1'
Leak: 0x005279b0 size=16
0x005279c0 0x00527b78 0x00000000 0x0002352e
Leak: 0x005279c0 size=16 string '0'
Leak: 0x00527b40 size=16
0x0000357b 0xa4311dc0 0x005071f0 0x00010001
Leak: 0x00527bd0 size=16 string '0'
0x00527670 0x00527240 0x005071e0 0x00010001
Leak: 0x005071d0 size=16
0x00001c2f 0x00000000 0x00527a70 0x00200001
Leak: 0x005071f0 size=16
0x00507200 0x005278b8 0x00507220 0x0002352e
Leak: 0x00507200 size=16 string '1'
Leak: 0x00507220 size=16
0x00001c2f 0x00000000 0x00000000 0x0002352e
Leak: 0x00507240 size=16 string '2'
Leak: 0x00507250 size=16
0x00001c2f 0x00000000 0x00000000 0x00020002
Leak: 0x00507290 size=16
0x005077d0 0x00507268 0x005077d0 0x00010001
Leak: 0x005073e0 size=16
0x0000357b 0xa4311dc0 0x005073f0 0x0002352e
Leak: 0x005073f0 size=16
0x00507240 0x00507608 0x00000000 0x00010001
Leak: 0x00507410 size=16
0x005047eb 0xa4311dc0 0x00507290 0x00010001
Leak: 0x00507420 size=16
0x0000357b 0xa4311dc0 0x00527940 0x00010001
More information about the krbdev
mailing list