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

curl+openssl crashed #13657

Closed
xuvw opened this issue May 15, 2024 · 4 comments
Closed

curl+openssl crashed #13657

xuvw opened this issue May 15, 2024 · 4 comments

Comments

@xuvw
Copy link

xuvw commented May 15, 2024

I did this

0 libsystem_pthread.dylib 0x00000001f15ee54c pthread_rwlock_wrlock + 0 (inline_internal.h:87)
1 KNet 0x0000000108b52cf4 CRYPTO_THREAD_write_lock + 12 (threads_pthread.c:78)
2 KNet 0x0000000108b31b48 RAND_get_rand_method + 88 (rand_lib.c:851)
3 KNet 0x0000000108b320b8 RAND_status + 12 (rand_lib.c:960)
4 KNet 0x0000000108898118 rand_enough + 12
5 KNet 0x00000001088980ac ossl_seed + 64
6 KNet 0x0000000108898c10 ossl_connect_step1 + 1612
7 KNet 0x0000000108898220 ossl_connect_common + 232
8 KNet 0x0000000108896cf8 ossl_connect_nonblocking + 56
9 KNet 0x000000010889fff0 Curl_ssl_connect_nonblocking + 212
10 KNet 0x0000000108854a8c https_connecting + 68
11 KNet 0x00000001088549d4 Curl_http_connect + 320
12 KNet 0x000000010886ebb4 protocol_connect + 336
13 KNet 0x000000010886be20 multi_runsingle + 1944
14 KNet 0x000000010886b4a4 curl_multi_perform + 176
15 KNet 0x000000010884ad7c easy_transfer + 140
16 KNet 0x0000000108849b74 easy_perform + 404
17 KNet 0x00000001088499d4 curl_easy_perform + 32
18 KNet 0x000000010870c2c4 -[KNetDataTask startCurlLoading] + 1708 (KNetDataTask.m:408)
19 KNet 0x000000010870b744 -[KNetDataTask startLoading] + 188 (KNetDataTask.m:0)
20 KNet 0x000000010870b5b4 -[KNetDataTask resume_] + 220 (KNetDataTask.m:157)

I expected the following

no crash

curl/libcurl version

curl 7.84.0
OpenSSL 1.1.1k 25 Mar 2021

operating system

iPhone14 OS version:17.3.1

@bagder
Copy link
Member

bagder commented May 15, 2024

Thanks a lot for your report!

I've failed to reproduce this problem myself, so can I ask you to provide us with more details on how to go ahead and repeat this. Preferably with a command line or a stand-alone program we can run from our ends against a public URL to trigger the problem?

@xuvw
Copy link
Author

xuvw commented May 15, 2024

Thanks a lot for your report!

I've failed to reproduce this problem myself, so can I ask you to provide us with more details on how to go ahead and repeat this. Preferably with a command line or a stand-alone program we can run from our ends against a public URL to trigger the problem?

This is occasional and difficult to reproduce.

@bagder
Copy link
Member

bagder commented May 15, 2024

This is occasional and difficult to reproduce.

Then I would suggest that your best remedy is to upgrade libcurl and openssl, as we have fixed numerous bugs since then and chances are a current version works better. If we can't reproduce the problem and you don't provide a busload of details, there is nothing for us to act on here.

@bagder
Copy link
Member

bagder commented May 20, 2024

 Presumed fixed in modern versions.

@bagder bagder closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants