curl / Mailing Lists / curl-library / Single Mail

curl-library

Valgrind errors in test suite with 7.52.1

From: Douglas R. Reno <renodr_at_linuxfromscratch.org>
Date: Fri, 23 Dec 2016 05:45:58 -0600

Good morning,

I'm working on updating cURL to 7.52.1 for Linux From Scratch (I just
updated to 7.52.0 last night!), and am getting errors in the test suite
that I haven't in the past.

I've been getting these errors every 5 tests or so. These are
"Conditional jump or move depends on uninitialised value(s)" errors.
Here is one from test 0587:

test 0587... valgrind ERROR ==18399== Conditional jump or move depends
on uninitialised value(s)
==18399== at 0x4E6163C: dprintf_formatf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E62399: curl_maprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E45EAB: formboundary (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E47076: Curl_getformdata (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E4C058: Curl_http (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E70A35: multi_runsingle (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E71550: curl_multi_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E67A3B: curl_easy_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x400F3A: once (in
/sources/curl-7.52.1/curl-7.52.1/tests/libtest/.libs/lt-lib587)
==18399== by 0x400F94: test (in
/sources/curl-7.52.1/curl-7.52.1/tests/libtest/.libs/lt-lib587)
==18399== by 0x52EB290: (below main) (libc-start.c:289)
==18399==
==18399== Use of uninitialised value of size 8
==18399== at 0x4E61669: dprintf_formatf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E62399: curl_maprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E45EAB: formboundary (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E47076: Curl_getformdata (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E4C058: Curl_http (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E70A35: multi_runsingle (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E71550: curl_multi_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E67A3B: curl_easy_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x400F3A: once (in
/sources/curl-7.52.1/curl-7.52.1/tests/libtest/.libs/lt-lib587)
==18399== by 0x400F94: test (in
/sources/curl-7.52.1/curl-7.52.1/tests/libtest/.libs/lt-lib587)
==18399== by 0x52EB290: (below main) (libc-start.c:289)
==18399==
==18399== Conditional jump or move depends on uninitialised value(s)
==18399== at 0x4E61674: dprintf_formatf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E62399: curl_maprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E45EAB: formboundary (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E47076: Curl_getformdata (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E4C058: Curl_http (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E70A35: multi_runsingle (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E71550: curl_multi_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x4E67A3B: curl_easy_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==18399== by 0x400F3A: once (in
/sources/curl-7.52.1/curl-7.52.1/tests/libtest/.libs/lt-lib587)
==18399== by 0x400F94: test (in
/sources/curl-7.52.1/curl-7.52.1/tests/libtest/.libs/lt-lib587)
==18399== by 0x52EB290: (below main) (libc-start.c:289)
==18399==

Another one from test 1095 (there are several more, but I'm copying them
as they're coming out of my console):

test 1095... valgrind ERROR ==26408== Conditional jump or move depends
on uninitialised value(s)
==26408== at 0x4E6163C: dprintf_formatf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E62294: curl_mvsnprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E60C81: curl_msnprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E8A7D8: Curl_auth_create_digest_http_message (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E72788: Curl_output_digest (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E4A098: output_auth_headers (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E4B549: Curl_http (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E70A35: multi_runsingle (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E71550: curl_multi_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E67A3B: curl_easy_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x40CDF5: operate_do (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408== by 0x40D4FC: operate (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408== by 0x4027B2: main (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408==
==26408== Use of uninitialised value of size 8
==26408== at 0x4E61669: dprintf_formatf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E62294: curl_mvsnprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E60C81: curl_msnprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E8A7D8: Curl_auth_create_digest_http_message (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E72788: Curl_output_digest (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E4A098: output_auth_headers (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E4B549: Curl_http (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E70A35: multi_runsingle (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E71550: curl_multi_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E67A3B: curl_easy_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x40CDF5: operate_do (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408== by 0x40D4FC: operate (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408== by 0x4027B2: main (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408==
==26408== Conditional jump or move depends on uninitialised value(s)
==26408== at 0x4E61674: dprintf_formatf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E62294: curl_mvsnprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E60C81: curl_msnprintf (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E8A7D8: Curl_auth_create_digest_http_message (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E72788: Curl_output_digest (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E4A098: output_auth_headers (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E4B549: Curl_http (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E70A35: multi_runsingle (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E71550: curl_multi_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x4E67A3B: curl_easy_perform (in
/sources/curl-7.52.1/curl-7.52.1/lib/.libs/libcurl.so.4.4.0)
==26408== by 0x40CDF5: operate_do (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408== by 0x40D4FC: operate (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408== by 0x4027B2: main (in
/sources/curl-7.52.1/curl-7.52.1/src/.libs/lt-curl)
==26408==

What would you like me to do? Am I doing something wrong, or is this a
resurgence of the same issue that required pushing 7.52.1 out the door?

-- 
Douglas R. Reno
--LFS/BLFS systemd maintainer
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-12-23