Public bug reported: The attached libcurl test program that should be compiled with
<<<<<<<<<<< gcc -g test-curl.c -lcurl -lssh2 -lssl -lidn >>>>>>>>>>> Generates the following errors with valgrind on Ubuntu Gutsy on an x86: {{{{{{{{{{{{{{ ==28535== Memcheck, a memory error detector. ==28535== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==28535== Using LibVEX rev 1732, a library for dynamic binary translation. ==28535== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==28535== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation framework. ==28535== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==28535== For more details, rerun with: -v ==28535== ==28535== Invalid read of size 4 ==28535== at 0x4014C09: (within /lib/ld-2.6.1.so) ==28535== by 0x4005BE9: (within /lib/ld-2.6.1.so) ==28535== by 0x4007A07: (within /lib/ld-2.6.1.so) ==28535== by 0x4010F83: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x401099D: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7061: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7224: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41B1756: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41862CF: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x418761F: getaddrinfo (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== Address 0x440DDCC is 36 bytes inside a block of size 37 alloc'd ==28535== at 0x4022765: malloc (vg_replace_malloc.c:149) ==28535== by 0x4007FA1: (within /lib/ld-2.6.1.so) ==28535== by 0x4010F83: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x401099D: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7061: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7224: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41B1756: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41862CF: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x418761F: getaddrinfo (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x806D731: Curl_getaddrinfo (hostip6.c:292) ==28535== ==28535== Invalid read of size 4 ==28535== at 0x4014C37: (within /lib/ld-2.6.1.so) ==28535== by 0x4005BE9: (within /lib/ld-2.6.1.so) ==28535== by 0x4007A07: (within /lib/ld-2.6.1.so) ==28535== by 0x4010F83: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x401099D: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7061: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7224: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41B1756: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41862CF: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x418761F: getaddrinfo (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== Address 0x440E46C is 28 bytes inside a block of size 31 alloc'd ==28535== at 0x4022765: malloc (vg_replace_malloc.c:149) ==28535== by 0x4007FA1: (within /lib/ld-2.6.1.so) ==28535== by 0x4010F83: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x401099D: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7061: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7224: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41B1756: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41862CF: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x418761F: getaddrinfo (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x806D731: Curl_getaddrinfo (hostip6.c:292) ==28535== ==28535== Invalid read of size 4 ==28535== at 0x4014BF3: (within /lib/ld-2.6.1.so) ==28535== by 0x4005BE9: (within /lib/ld-2.6.1.so) ==28535== by 0x4007A07: (within /lib/ld-2.6.1.so) ==28535== by 0x4010F83: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x401099D: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7061: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7224: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41B1756: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41862CF: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x418761F: getaddrinfo (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== Address 0x440E960 is 32 bytes inside a block of size 35 alloc'd ==28535== at 0x4022765: malloc (vg_replace_malloc.c:149) ==28535== by 0x4007FA1: (within /lib/ld-2.6.1.so) ==28535== by 0x4010F83: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x401099D: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7061: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7224: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41B1756: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41862CF: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x418761F: getaddrinfo (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x806D731: Curl_getaddrinfo (hostip6.c:292) ==28535== ==28535== Invalid read of size 4 ==28535== at 0x4014BF3: (within /lib/ld-2.6.1.so) ==28535== by 0x4005BE9: (within /lib/ld-2.6.1.so) ==28535== by 0x4007A07: (within /lib/ld-2.6.1.so) ==28535== by 0x400B806: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x400B9E6: (within /lib/ld-2.6.1.so) ==28535== by 0x4010FE3: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x401099D: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7061: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7224: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== Address 0x440ECA8 is 32 bytes inside a block of size 34 alloc'd ==28535== at 0x4022765: malloc (vg_replace_malloc.c:149) ==28535== by 0x4007FA1: (within /lib/ld-2.6.1.so) ==28535== by 0x400B806: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x400B9E6: (within /lib/ld-2.6.1.so) ==28535== by 0x4010FE3: (within /lib/ld-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x401099D: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7061: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x400D015: (within /lib/ld-2.6.1.so) ==28535== by 0x41D7224: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== by 0x41B1756: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.6.1.so) ==28535== ==28535== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 45 from 1) ==28535== malloc/free: in use at exit: 29,260 bytes in 2,023 blocks. ==28535== malloc/free: 11,323 allocs, 9,300 frees, 723,237 bytes allocated. ==28535== For counts of detected errors, rerun with: -v ==28535== searching for pointers to 2,023 not-freed blocks. ==28535== checked 261,400 bytes. ==28535== ==28535== LEAK SUMMARY: ==28535== definitely lost: 0 bytes in 0 blocks. ==28535== possibly lost: 0 bytes in 0 blocks. ==28535== still reachable: 29,260 bytes in 2,023 blocks. ==28535== suppressed: 0 bytes in 0 blocks. ==28535== Rerun with --leak-check=full to see details of leaked memory. }}}}}}}}}}}}}} This seems like a bug in glibc. Regards, Shlomi Fish ** Affects: glibc (Ubuntu) Importance: Undecided Status: New -- getaddrinfo() Generates several valgrind warnings in a libcurl test program on Ubuntu Gutsy. https://bugs.launchpad.net/bugs/213825 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs