[krbdev.mit.edu #2862] Memory leak in krb5-libs up to 1.3.6

Bojan Smojver via RT rt-comment at krbdev.mit.edu
Sun Jan 9 17:37:58 EST 2005


Quoting Tom Yu via RT <rt-comment at krbdev.mit.edu>:

> Ok, I've looked at it briefly.  The leak should be fixed in 1.4, which
> is in beta-test.  Does the segfault still happen in 1.3.6, or 1.3.5
> with double-free fixes?  I think the segfault in the redhat bug report
> results from attempting to close an invalid ccache handle.

I've had three types of errors pop up in the httpd log file, some of them thanks
to the new glibc in FC3, which detects double-free and invalid pointers to free:

---------------------------------------
*** glibc detected *** free(): invalid pointer: 0x08d68670 ***
[Mon Jan 10 08:08:26 2005] [notice] child pid 14565 exit signal Abort (6)
*** glibc detected *** double free or corruption (out): 0x08d46d38 ***
[Mon Jan 10 08:08:49 2005] [notice] child pid 14630 exit signal Abort (6)
*** glibc detected *** double free or corruption (out): 0x08d6ca60 ***
[Mon Jan 10 08:09:13 2005] [notice] child pid 14496 exit signal Abort (6)
[Mon Jan 10 08:09:49 2005] [notice] child pid 14494 exit signal Segmentation fau
lt (11)
---------------------------------------

You'll also notice another segfault, which is probably a result of closing the
invalid ccache handle, as you explained above. This all happened within 10000
requests, which is considered a "small test". I normally run millions of
requests when I want to stress test the whole setup.

If you want to run inside gdb to produce stack traces or some other info, let me
know.

--
Bojan



More information about the krb5-bugs mailing list