valgrind test failed on test--https-enforce-soft3
I got this when running VALGRIND_TESTS=1 ./test--https-enforce-soft3
Removed test directory '../.test_5566'
cmd=valgrind --error-exitcode=301 --leak-check=yes --show-reachable=yes --track-origins=yes --child-silent-after-fork=yes --suppressions=/home/zingdle/wget2/tests/valgrind-suppressions /home/zingdle/wget2/tests/../src/wget2_noinstall -d --no-config --no-local-db --max-threads=1 --prefer-family=ipv4 --no-proxy --timeout 10 --https-enforce=soft --recursive -nH --default-https-port=39899 --default-http-port=35205 "http://localhost/index.html" 2>&1
Testing 'valgrind --error-exitcode=301 --leak-check=yes --show-reachable=yes --track-origins=yes --child-silent-after-fork=yes --suppressions=/home/zingdle/wget2/tests/valgrind-suppressions /home/zingdle/wget2/tests/../src/wget2_noinstall -d --no-config --no-local-db --max-threads=1 --prefer-family=ipv4 --no-proxy--timeout 10 --https-enforce=soft --recursive -nH --default-https-port=39899 --default-http-port=35205 "http://localhost/index.html" 2>&1'
==5589== Memcheck, a memory error detector
==5589== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==5589== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==5589== Command: /home/zingdle/wget2/tests/../src/wget2_noinstall -d --no-config --no-local-db --max-threads=1 --prefer-family=ipv4 --no-proxy --timeout 10 --https-enforce=soft --recursive -nH --default-https-port=39899 --default-http-port=35205 http://localhost/index.html
==5589==
09.111549.638 name=config value=--no-local-db invert=1
09.111549.699 name=local-db value=--max-threads=1 invert=1
09.111549.701 name=max-threads value=1 invert=0
09.111549.704 name=prefer-family value=ipv4 invert=0
09.111549.706 name=proxy value=--timeout invert=1
09.111549.706 name=timeout value=10 invert=0
09.111549.718 name=https-enforce value=soft invert=0
09.111549.719 name=recursive value=-nH invert=0
09.111549.721 name=-nH value=0
09.111549.721 name=default-https-port value=39899 invert=0
09.111549.722 name=default-http-port value=35205 invert=0
09.111549.725 name=config value=--no-local-db invert=1
09.111549.725 name=local-db value=--max-threads=1 invert=1
09.111549.725 name=max-threads value=1 invert=0
09.111549.725 name=prefer-family value=ipv4 invert=0
09.111549.726 name=proxy value=--timeout invert=1
09.111549.726 name=timeout value=10 invert=0
09.111549.726 name=https-enforce value=soft invert=0
09.111549.726 name=recursive value=-nH invert=0
09.111549.726 name=-nH value=0
09.111549.727 name=default-https-port value=39899 invert=0
09.111549.727 name=default-http-port value=35205 invert=0
09.111549.731 Local URI encoding = 'UTF-8'
09.111549.731 Input URI encoding = 'UTF-8'
09.111549.742 set_exit_status(0)
09.111549.746 *url = http://localhost/index.html
09.111549.747 *3 http://localhost/index.html
09.111549.771 *url = /robots.txt
09.111549.772 path /robots.txt ->
09.111549.774 robots.txt
09.111549.775 *2 https://localhost/robots.txt
09.111549.781 local filename = 'robots.txt'
09.111549.784 host_add_robotstxt_job: 0x7e90620 https://localhost/robots.txt
09.111549.785 host_add_robotstxt_job: qsize 1 host-qsize=1
09.111549.789 local filename = 'index.html'
09.111549.790 host_add_job: job fname index.html
09.111549.791 host_add_job: 0x7e909f0 https://localhost/index.html
09.111549.792 host_add_job: qsize 2 host-qsize=2
09.111549.793 queue_size: qsize=2
09.111549.794 queue_size: qsize=2
09.111549.823 [0] action=1 pending=0 host=0x0
09.111549.828 host localhost dequeue robot job
09.111549.844 resolving localhost:39899...
09.111549.952 has 127.0.0.1:39899
09.111549.956 trying 127.0.0.1:39899...
09.111549.961 GnuTLS init
09.111550.483 Certificates loaded: 148
09.111550.492 GnuTLS init done
TLS False Start requested but Wget built with insufficient GnuTLS version
09.111550.616 gnutls_handshake: (-110) The TLS connection was non-properly terminated. (errno=11)
09.111550.640 closing connection
09.111550.642 Failed to connect (-4)
09.111550.644 _host_remove_job: 0x7e90620
09.111550.646 host_remove_job: qsize=1 host->qsize=1
09.111550.647 [0] action=3 pending=1 host=0x7e902c0
09.111550.651 [0] action=1 pending=0 host=0x0
09.111550.652 dequeue job https://localhost/index.html
09.111550.655 Found dns cache entry localhost:39899
09.111550.655 trying 127.0.0.1:39899...
TLS False Start requested but Wget built with insufficient GnuTLS version
09.111550.656 main: wake up
09.111550.659 gnutls_handshake: (-110) The TLS connection was non-properly terminated. (errno=11)
09.111550.660 closing connection
09.111550.660 Failed to connect (-4)
09.111550.664 host_pattern[0] 'localhost' - localhost
09.111550.667 *url = /robots.txt
09.111550.667 path /robots.txt ->
09.111550.668 robots.txt
09.111550.668 *2 http://localhost/robots.txt
09.111550.668 local filename = 'robots.txt'
09.111550.669 host_add_robotstxt_job: 0x955d030 http://localhost/robots.txt
09.111550.669 host_add_robotstxt_job: qsize 2 host-qsize=1
09.111550.670 local filename = 'index.html'
09.111550.671 host_add_job: job fname index.html
09.111550.671 host_add_job: 0x955d3b0 http://localhost/index.html
09.111550.671 host_add_job: qsize 3 host-qsize=2
09.111550.672 _host_remove_job: 0x7e909f0
09.111550.673 host_remove_job: qsize=2 host->qsize=0
09.111550.673 [0] action=3 pending=1 host=0x7e902c0
09.111550.674 [0] action=1 pending=0 host=0x0
09.111550.674 host localhost dequeue robot job
09.111550.674 resolving localhost:35205...
09.111550.674 main: wake up
09.111550.703 has 127.0.0.1:35205
09.111550.703 trying 127.0.0.1:35205...
09.111550.706 established connection localhost
09.111550.729 # sent 206 bytes:
GET /robots.txt HTTP/1.1
Host: localhost
Accept-Encoding: bzip2, xz, lzma, br
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: wget2/1.99.0
Connection: keep-alive
09.111550.732 [0] action=2 pending=1 host=0x955cce0
09.111550.733 ### req 0x9579740 pending requests = 1
09.111550.738 # got header 134 bytes:
HTTP/1.1 404 Not Found
Connection: Keep-Alive
Content-Length: 0
Server: Libmicrohttpd/00094400
Date: Fri, 09 Mar 2018 03:15:50 GMT
09.111550.762 keep_alive=1
09.111550.772 _host_remove_job: 0x955d030
09.111550.772 host_remove_job: qsize=1 host->qsize=1
09.111550.772 [0] action=1 pending=0 host=0x955cce0
09.111550.773 dequeue job http://localhost/index.html
09.111550.775 reuse connection localhost
09.111550.775 main: wake up
09.111550.776 # sent 206 bytes:
GET /index.html HTTP/1.1
Host: localhost
Accept-Encoding: bzip2, xz, lzma, br
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: wget2/1.99.0
Connection: keep-alive
09.111550.777 [0] action=2 pending=1 host=0x955cce0
09.111550.777 ### req 0x9593170 pending requests = 1
09.111550.777 # got header 154 bytes:
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 182
Server: Libmicrohttpd/00094400
Content-Type: text/html
Date: Fri, 09 Mar 2018 03:15:50 GMT
09.111550.793 Falling back to Content-Encoding 'identity'
09.111550.795 method 2
09.111550.799 keep_alive=1
09.111550.813 ='Main Page'
09.111550.815 ='A link to a '
09.111550.817 a/@href=http://localhost/secondpage.html
09.111550.821 ='second page'
09.111550.821 ='. '
09.111550.821 a/@href=thirdpage.html
09.111550.821 ='third page'
09.111550.822 ='.'
09.111550.864 transcoded 32 bytes from 'CP1252' to 'utf-8'
09.111550.868 *url = http://localhost/secondpage.html
09.111550.868 *3 http://localhost/secondpage.html
09.111550.871 host_pattern[0] 'localhost' - localhost
09.111550.873 local filename = 'secondpage.html'
09.111550.874 host_add_job: job fname secondpage.html
09.111550.874 host_add_job: 0x95b68b0 https://localhost/secondpage.html
09.111550.874 host_add_job: qsize 2 host-qsize=1
09.111550.876 transcoded 14 bytes from 'CP1252' to 'utf-8'
09.111550.876 *url = thirdpage.html
09.111550.877 path thirdpage.html ->
09.111550.878 thirdpage.html
09.111550.878 *4 http://localhost/thirdpage.html 31
09.111550.879 host_pattern[0] 'localhost' - localhost
09.111550.879 local filename = 'thirdpage.html'
09.111550.879 host_add_job: job fname thirdpage.html
09.111550.879 host_add_job: 0x95bf1c0 https://localhost/thirdpage.html
09.111550.880 host_add_job: qsize 3 host-qsize=2
09.111550.882 _host_remove_job: 0x955d3b0
09.111550.883 host_remove_job: qsize=2 host->qsize=0
09.111550.883 [0] action=1 pending=0 host=0x955cce0
09.111550.883 closing connection
09.111550.884 [0] action=1 pending=0 host=0x0
09.111550.884 dequeue job https://localhost/secondpage.html
09.111550.885 Found dns cache entry localhost:39899
09.111550.885 main: wake up
09.111550.885 trying 127.0.0.1:39899...
TLS False Start requested but Wget built with insufficient GnuTLS version
09.111550.887 gnutls_handshake: (-110) The TLS connection was non-properly terminated. (errno=11)
09.111550.889 closing connection
09.111550.889 Failed to connect (-4)
09.111550.889 host_pattern[0] 'localhost' - localhost
09.111550.889 local filename = 'secondpage.html'
09.111550.889 host_add_job: job fname secondpage.html
09.111550.890 host_add_job: 0x95cbef0 http://localhost/secondpage.html
09.111550.890 host_add_job: qsize 3 host-qsize=1
09.111550.890 _host_remove_job: 0x95b68b0
09.111550.890 host_remove_job: qsize=2 host->qsize=1
09.111550.891 [0] action=3 pending=1 host=0x7e902c0
09.111550.891 [0] action=1 pending=0 host=0x0
09.111550.891 dequeue job http://localhost/secondpage.html
09.111550.891 Found dns cache entry localhost:35205
09.111550.891 main: wake up
09.111550.892 trying 127.0.0.1:35205...
09.111550.892 established connection localhost
09.111550.893 # sent 211 bytes:
GET /secondpage.html HTTP/1.1
Host: localhost
Accept-Encoding: bzip2, xz, lzma, br
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: wget2/1.99.0
Connection: keep-alive
09.111550.893 [0] action=2 pending=1 host=0x955cce0
09.111550.893 ### req 0x95e5360 pending requests = 1
09.111550.894 # got header 153 bytes:
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 5
Server: Libmicrohttpd/00094400
Content-Type: text/plain
Date: Fri, 09 Mar 2018 03:15:50 GMT
09.111550.895 Falling back to Content-Encoding 'identity'
09.111550.895 method 2
09.111550.896 keep_alive=1
09.111550.897 _host_remove_job: 0x95cbef0
09.111550.897 host_remove_job: qsize=1 host->qsize=0
09.111550.898 [0] action=1 pending=0 host=0x955cce0
09.111550.898 closing connection
09.111550.898 [0] action=1 pending=0 host=0x0
09.111550.898 dequeue job https://localhost/thirdpage.html
09.111550.898 Found dns cache entry localhost:39899
09.111550.898 main: wake up
09.111550.899 trying 127.0.0.1:39899...
TLS False Start requested but Wget built with insufficient GnuTLS version
09.111550.901 gnutls_handshake: (-110) The TLS connection was non-properly terminated. (errno=11)
09.111550.902 closing connection
09.111550.902 Failed to connect (-4)
09.111550.902 host_pattern[0] 'localhost' - localhost
09.111550.902 local filename = 'thirdpage.html'
09.111550.902 host_add_job: job fname thirdpage.html
09.111550.903 host_add_job: 0x960c0c0 http://localhost/thirdpage.html
09.111550.903 host_add_job: qsize 2 host-qsize=1
09.111550.903 _host_remove_job: 0x95bf1c0
09.111550.903 host_remove_job: qsize=1 host->qsize=0
09.111550.903 [0] action=3 pending=1 host=0x7e902c0
09.111550.903 [0] action=1 pending=0 host=0x0
09.111550.903 dequeue job http://localhost/thirdpage.html
09.111550.904 Found dns cache entry localhost:35205
09.111550.904 main: wake up
09.111550.904 trying 127.0.0.1:35205...
09.111550.905 established connection localhost
09.111550.905 # sent 210 bytes:
GET /thirdpage.html HTTP/1.1
Host: localhost
Accept-Encoding: bzip2, xz, lzma, br
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: wget2/1.99.0
Connection: keep-alive
09.111550.905 [0] action=2 pending=1 host=0x955cce0
09.111550.906 ### req 0x9625530 pending requests = 1
09.111550.906 # got header 153 bytes:
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 5
Server: Libmicrohttpd/00094400
Content-Type: text/plain
Date: Fri, 09 Mar 2018 03:15:50 GMT
09.111550.907 Falling back to Content-Encoding 'identity'
09.111550.907 method 2
09.111550.907 keep_alive=1
09.111550.908 _host_remove_job: 0x960c0c0
09.111550.908 host_remove_job: qsize=0 host->qsize=0
09.111550.908 [0] action=1 pending=0 host=0x955cce0
09.111550.908 closing connection
09.111550.909 [0] action=1 pending=0 host=0x0
09.111550.909 main: wake up
09.111550.910 main: done
09.111550.920 blacklist http://localhost/robots.txt
09.111550.921 blacklist https://localhost/robots.txt
09.111550.921 blacklist http://localhost/index.html
09.111550.921 blacklist https://localhost/index.html
09.111550.921 blacklist http://localhost/secondpage.html
09.111550.921 blacklist https://localhost/thirdpage.html
09.111550.921 blacklist https://localhost/secondpage.html
09.111550.922 blacklist http://localhost/thirdpage.html
----
Transport authentication failure
----
Key Exchange: (null)
Protocol: TLS1.2
Certificate Type: X.509
Cipher: NULL
MAC: MAC-NULL
----
----
Transport authentication failure
----
Key Exchange: (null)
Protocol: TLS1.2
Certificate Type: X.509
Cipher: NULL
MAC: MAC-NULL
----
Adding URL: http://localhost/index.html
[0] Downloading 'http://localhost/robots.txt' ...
HTTP ERROR response 404 Not Found [http://localhost/robots.txt]
[0] Downloading 'http://localhost/index.html' ...
Saving 'index.html'
HTTP response 200 OK [http://localhost/index.html]
URI content encoding = 'CP1252' (default, encoding not specified)
Adding URL: http://localhost/secondpage.html
Adding URL: http://localhost/thirdpage.html
----
Transport authentication failure
----
Key Exchange: (null)
Protocol: TLS1.2
Certificate Type: X.509
Cipher: NULL
MAC: MAC-NULL
----
Adding URL: http://localhost/secondpage.html
[0] Downloading 'http://localhost/secondpage.html' ...
Saving 'secondpage.html'
HTTP response 200 OK [http://localhost/secondpage.html]
----
Transport authentication failure
----
Key Exchange: (null)
Protocol: TLS1.2
Certificate Type: X.509
Cipher: NULL
MAC: MAC-NULL
----
Adding URL: http://localhost/thirdpage.html
[0] Downloading 'http://localhost/thirdpage.html' ...
Saving 'thirdpage.html'
HTTP response 200 OK [http://localhost/thirdpage.html]
Downloaded: 3 files, 192 bytes, 0 redirects, 1 errors
==5589==
==5589== HEAP SUMMARY:
==5589== in use at exit: 2,688 bytes in 4 blocks
==5589== total heap usage: 34,287 allocs, 34,283 frees, 7,474,244 bytes allocated
==5589==
==5589== 288 bytes in 1 blocks are possibly lost in loss record 3 of 4
==5589== at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5589== by 0x40138A4: allocate_dtv (dl-tls.c:322)
==5589== by 0x40138A4: _dl_allocate_tls (dl-tls.c:539)
==5589== by 0x54F826E: allocate_stack (allocatestack.c:588)
==5589== by 0x54F826E: pthread_create@@GLIBC_2.2.5 (pthread_create.c:539)
==5589== by 0x5AD8215: handle_requests (gai_misc.c:411)
==5589== by 0x54F76B9: start_thread (pthread_create.c:333)
==5589==
==5589== LEAK SUMMARY:
==5589== definitely lost: 0 bytes in 0 blocks
==5589== indirectly lost: 0 bytes in 0 blocks
==5589== possibly lost: 288 bytes in 1 blocks
==5589== still reachable: 0 bytes in 0 blocks
==5589== suppressed: 2,400 bytes in 3 blocks
==5589==
==5589== For counts of detected and suppressed errors, rerun with: -v
==5589== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 1 from 1)
Unexpected error code 45, expected 0 [ --https-enforce=soft --recursive -nH --default-https-port=39899 --default-http-port=35205]
Removed test directory '.test_5566'
I'm on master branch. Any idea?