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 of programs linked with libcurl on macOS Sonoma 14: unrecognized selector sent to instance #11893
Comments
ryandesign
added a commit
to ryandesign/curl
that referenced
this issue
Sep 20, 2023
When linking with CoreFoundation, also link with CoreServices which is apparently required to avoid an NSInvalidArgumentException in software linking with libcurl on macOS Sonoma 14 and later. Fixes curl#11893
ptitSeb
pushed a commit
to wasix-org/curl
that referenced
this issue
Sep 25, 2023
When linking with CoreFoundation, also link with CoreServices which is apparently required to avoid an NSInvalidArgumentException in software linking with libcurl on macOS Sonoma 14 and later. Fixes curl#11893 Closes curl#11894
SomeoneToIgnore
added a commit
to SomeoneToIgnore/curl-rust
that referenced
this issue
Sep 28, 2023
This curl version fixes macOs Sonoma curl initialization crash: curl/curl#11893
smoelius
added a commit
to trailofbits/dylint
that referenced
this issue
Sep 29, 2023
github-merge-queue bot
pushed a commit
to trailofbits/dylint
that referenced
this issue
Sep 29, 2023
6 tasks
12 tasks
1 task
zuoxiaofeng
pushed a commit
to zuoxiaofeng/curl
that referenced
this issue
Nov 28, 2023
When linking with CoreFoundation, also link with CoreServices which is apparently required to avoid an NSInvalidArgumentException in software linking with libcurl on macOS Sonoma 14 and later. Fixes curl#11893 Closes curl#11894
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did this
On macOS Sonoma 14 beta,
cargo
and other programs that link with libcurl may crash with anNSInvalidArgumentException
because of anunrecognized selector sent to instance
.Crash log
This has been reported here:
cargo espflash
fails when installed in macOS beta esp-rs/espflash#463macOS Sonoma will be publicly released September 26, 2023, so it seems that this problem will likely make it into the public release so curl should work around it.
@Ryu-ga commented in some of these issues that in macOS Sonoma, CoreFoundation requires CoreServices, and that linking libcurl with CoreServices fixes the problem.
This relates to curl's recent use of
SCDynamicStoreCopyProxies
at startup on macOS so it should only affect builds on macOS that enable IPv6 support and that do not use c-ares.I'll submit a PR to update curl's autotools and cmake build systems to do that and @Schamschula has already prepared a patch to curl in MacPorts to use in the mean time (macports/macports-ports#20502).
I expected the following
No crash
curl/libcurl version
curl 8.3.0
operating system
macOS 14 beta
The text was updated successfully, but these errors were encountered: