Skip to content

dllmain: exclude from Cygwin builds#17528

Closed
jeremyd2019 wants to merge 1 commit into
curl:masterfrom
jeremyd2019:cygwin-no-dllmain
Closed

dllmain: exclude from Cygwin builds#17528
jeremyd2019 wants to merge 1 commit into
curl:masterfrom
jeremyd2019:cygwin-no-dllmain

Conversation

@jeremyd2019
Copy link
Copy Markdown
Contributor

On Cygwin, it is unsafe to call POSIX functions from DllMain, which OPENSSL_thread_stop does. Additionally, it should be unnecessary as OpenSSL uses pthread_key_create to register a thread destructor to do thread cleanup in a POSIX way.

Reported-by: Yuyi Wang <@Berrysoft>

Ref: https://cygwin.com/pipermail/cygwin/2025-June/258235.html

Fixes #17262

On Cygwin, it is unsafe to call POSIX functions from DllMain, which
OPENSSL_thread_stop does.  Additionally, it should be unnecessary as
OpenSSL uses pthread_key_create to register a thread destructor to do
thread cleanup in a POSIX way.

Reported-by: Yuyi Wang <Strawberry_Str@hotmail.com>

Ref: https://cygwin.com/pipermail/cygwin/2025-June/258235.html

Fixes curl#17262
@jay jay closed this in 7a30481 Jun 3, 2025
@jay jay added the Windows Windows-specific label Jun 3, 2025
@jay
Copy link
Copy Markdown
Member

jay commented Jun 3, 2025

Thanks

@jeremyd2019 jeremyd2019 deleted the cygwin-no-dllmain branch June 3, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

SIGSEGV on exit on cygwin

2 participants