Apparent memory leak in libselinux

Ed Swierk eswierk at aristanetworks.com
Thu Dec 31 00:32:01 UTC 2009


When I run the following on a F12 system booted with selinux=0, the
tcmalloc heap checker complains about a leak somewhere in libselinux:

$ HEAPCHECK=normal LD_PRELOAD=/usr/lib64/libtcmalloc.so.0
/usr/bin/python -c 'import _ssl'

Leak check _main_ detected leaks of 120 bytes in 1 objects
The 1 largest leaks:
Leak of 120 bytes in 1 objects allocated from:
       @ 0x3bf9866589 _IO_getdelim
       @ 0x3bfb40ca53 set_selinuxmnt
       @ 0x3bfb414fe6 string_to_security_class
       @ 0x3bfb404cdb _init
       @ 0x7fff4bdfa8ed 0x00007fff4bdfa8ed

No leak is detected when I run this with selinux enabled. My system
has libselinux-2.0.87-1.fc12 installed.

--Ed




More information about the fedora-selinux-list mailing list