Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make OpenSSL builds with VS2015 work again #2512

Closed
wants to merge 4 commits into from
Closed

Conversation

sunnyap
Copy link
Contributor

@sunnyap sunnyap commented Apr 20, 2018

Can't submit the code change with original pull request #1267. Hence creating new one.

@sunnyap
Copy link
Contributor Author

sunnyap commented Apr 20, 2018

The build error doesn't seems to be related my changes (or are they)?

@bagder
Copy link
Member

bagder commented Apr 20, 2018

You've introduced a memory leak in test 300:

 valgrind ERROR ==25874== 112 bytes in 1 blocks are definitely lost in loss record 45 of 47
==25874==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25874==    by 0x6411DB2: CRYPTO_malloc (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==25874==    by 0x648F12E: BIO_new (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==25874==    by 0x4E94352: servercert (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x4E9651D: ossl_connect_common (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x4E97265: Curl_ssl_connect_nonblocking (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x4E49621: https_connecting (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x4E4AEA2: Curl_http_connect (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x4E55B90: Curl_protocol_connect (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x4E6B05D: multi_runsingle (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x4E6BD02: curl_multi_perform (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x4E62957: curl_easy_perform (in /home/travis/build/curl/curl/lib/.libs/libcurl.so.4.5.0)
==25874==    by 0x40D435: operate_do (in /home/travis/build/curl/curl/src/.libs/lt-curl)
==25874==    by 0x40EB64: operate (in /home/travis/build/curl/curl/src/.libs/lt-curl)
==25874==    by 0x402C2C: main (in /home/travis/build/curl/curl/src/.libs/lt-curl)
==25874== 

@bagder
Copy link
Member

bagder commented Apr 20, 2018

... and a style nit:

./vtls/openssl.c:668:1: warning: Trailing whitespace (TRAILINGSPACE)
  
 ^

@bagder
Copy link
Member

bagder commented Apr 25, 2018

This is still leaking memory in several of the travis builds, see this:

https://travis-ci.org/curl/curl/jobs/369998652#L9446

@sunnyap
Copy link
Contributor Author

sunnyap commented Apr 30, 2018

@bagder Test 1056 is failing, seems connect operation timed out..
https://travis-ci.org/curl/curl/jobs/373017975
test 1056...[HTTP follow redirect from IPv4 to IPv6 with scope]
1056: protocol FAILED:
curl: (7) Failed to connect to ::1 port 8994: Operation timed out

@bagder
Copy link
Member

bagder commented May 7, 2018

Yeah 1056 is on the border of getting marked as flaky. I've restarted that build since that failure isn't related to your work.

@bagder bagder changed the title VS2015 Fix. make OpenSSL builds with VS2015 work again May 10, 2018
@bagder bagder closed this in 18cbbb7 May 10, 2018
@bagder
Copy link
Member

bagder commented May 10, 2018

Thanks for your hard work on this!

@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants