Subject: 2 valgrind reports on current CVS

2 valgrind reports on current CVS

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Jun 2007 23:41:05 +0200 (CEST)

Hey

Here's the curent situation. I'm having trouble actually finding and fixing
the cause of these and I would appreciate help! I would really like to get
these fixed before release, and I really want to release 1.4.0 ASAP... :-O

Building a current CVS c-ares and building a current CVS libcurl with it, I
get the following valgrind output:

$ valgrind ./src/curl daniel.haxx.se -o /dev/null
[...]

==11590== Syscall param socketcall.send(msg) points to uninitialised byte(s)
==11590== at 0x41007F2: (within /lib/ld-2.5.so)
==11590== by 0x80837EB: ares_send (ares_send.c:106)
==11590== by 0x8082A25: ares_query (ares_query.c:131)
==11590== by 0x808306B: ares_search (ares_search.c:117)
==11590== by 0x807ED64: next_lookup (ares_gethostbyname.c:129)
==11590== by 0x807EF70: ares_gethostbyname (ares_gethostbyname.c:112)
==11590== by 0x805B717: Curl_getaddrinfo (hostares.c:332)
==11590== by 0x805DB8F: Curl_resolv (hostip.c:458)
==11590== by 0x8066C71: Curl_connect (url.c:3946)
==11590== by 0x80715EB: Curl_perform (transfer.c:2319)
==11590== by 0x80587AC: curl_easy_perform (easy.c:492)
==11590== by 0x8051834: main (main.c:4357)
==11590== Address 0x6428F42 is 2 bytes inside a block of size 34 alloc'd
==11590== at 0x452E4B0: malloc (vg_replace_malloc.c:149)
==11590== by 0x80836E6: ares_send (ares_send.c:58)
==11590== by 0x8082A25: ares_query (ares_query.c:131)
==11590== by 0x808306B: ares_search (ares_search.c:117)
==11590== by 0x807ED64: next_lookup (ares_gethostbyname.c:129)
==11590== by 0x807EF70: ares_gethostbyname (ares_gethostbyname.c:112)
==11590== by 0x805B717: Curl_getaddrinfo (hostares.c:332)
==11590== by 0x805DB8F: Curl_resolv (hostip.c:458)
==11590== by 0x8066C71: Curl_connect (url.c:3946)
==11590== by 0x80715EB: Curl_perform (transfer.c:2319)
==11590== by 0x80587AC: curl_easy_perform (easy.c:492)
==11590== by 0x8051834: main (main.c:4357)
==11590==
==11590== Conditional jump or move depends on uninitialised value(s)
==11590== at 0x807E424: process_answer (ares_process.c:419)
==11590== by 0x807E816: read_udp_packets (ares_process.c:379)
==11590== by 0x807EADE: ares_process_fd (ares_process.c:103)
==11590== by 0x805B8E6: ares_waitperform (hostares.c:182)
==11590== by 0x805BB23: Curl_is_resolved (hostares.c:205)
==11590== by 0x805DC33: Curl_resolv (hostip.c:465)
==11590== by 0x8066C71: Curl_connect (url.c:3946)
==11590== by 0x80715EB: Curl_perform (transfer.c:2319)
==11590== by 0x80587AC: curl_easy_perform (easy.c:492)
==11590== by 0x8051834: main (main.c:4357)

Using linux 2.6.21 on amd64 (32 bit user-space though)
glibc 2.5
valgrind 3.2.3
gcc 4.1.3 20070601 (prerelease)

(packages are rather current debian unstable)
Received on 2007-06-06