Description of problem: valgrind reports a memory leak in getaddrinfo(). Version-Release number of selected component (if applicable): 2.14-2 How reproducible: always Steps to Reproduce: 1. Compile and link the following: #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <stdio.h> int main() { struct addrinfo *res; if (getaddrinfo("localhost", "http", NULL, &res) == 0) { freeaddrinfo(res); } return 0; } 2. Run with valgrind --tool=memcheck --leak-check=yes Actual results: See attached Expected results: No memory leaks.
Created attachment 503959 [details] Valgrind log file
I am seeing this with many many programs which are properly written and do freeaddrinfo as well. One example is a program that has less than 45M in memory size when first started (actually about an hour afterward). With the new glibc in just a few days this will grow to over 100M. This wasn't the case before.
glibc-2.14-3 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/glibc-2.14-3
I have two networks (virtual) in libvirt. One doesn't want to start automatically after this update. I am also seeing some other strange things even after reboot that I cannot describe. Other than ssh doesn't work at least for a while.
Package glibc-2.14-3: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing glibc-2.14-3' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/glibc-2.14-3 then log in and leave karma (feedback).
glibc-2.14-3 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.