-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Crash on OSX #1450
Comments
Tell us more about the cert + key you're using. Can we generate/get a similar set somehow? |
Can't rightly give you a cert signed by our core CA, but I set up a new CA cert and signed a cert for you here: |
|
I made it happen once with current git master but it doesn't happen on subsequent invokes:
|
Hmm, though I can't reproduce it, I can see how this could happen. I've attached a patch that ought to prevent the crash from happening. Reporter, could you please try it out and let me know how it goes? |
@teyrow, any news? |
@nickzman: I read the |
I did this
curl --cacert ./ca.modio.se.cacert --cert ./hsb-demo.crt --key ./hsb-demo.key https://api.moodio.se/
I expected the following
Download or error
curl/libcurl version
using system curl:
$ which curl
/usr/bin/curl
curl 7.51.0 (x86_64-apple-darwin16.0) libcurl/7.51.0 SecureTransport zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets
2017-04-25 14:50:23.802 curl[47694:4961444] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
0 CoreFoundation 0x00007fffa197237b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffb676648d objc_exception_throw + 48
2 CoreFoundation 0x00007fffa1868184 -[__NSPlaceholderArray initWithObjects:count:] + 276
3 libcurl.4.dylib 0x00007fffb605c45f darwinssl_connect_common + 2166
4 libcurl.4.dylib 0x00007fffb605aa85 Curl_ssl_connect_nonblocking + 77
5 libcurl.4.dylib 0x00007fffb6022631 https_connecting + 23
6 libcurl.4.dylib 0x00007fffb60225fc Curl_http_connect + 71
7 libcurl.4.dylib 0x00007fffb6030c4d Curl_protocol_connect + 127
8 libcurl.4.dylib 0x00007fffb6044f2f multi_runsingle + 921
9 libcurl.4.dylib 0x00007fffb6044b1d curl_multi_perform + 92
10 libcurl.4.dylib 0x00007fffb603daa9 curl_easy_perform + 339
11 curl 0x0000000101e7558d curl + 46477
12 curl 0x0000000101e72515 curl + 34069
13 curl 0x0000000101e71dcf curl + 32207
14 libdyld.dylib 0x00007fffb704b235 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
operating system
Darwin rambo.local 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: