cargo-c icon indicating copy to clipboard operation
cargo-c copied to clipboard

regression test failure on macOS sonoma

Open chenrui333 opened this issue 1 year ago • 6 comments

While trying to build bottle for Sonoma, run into the following test failure

==> /opt/homebrew/Cellar/cargo-c/0.9.24_1/bin/cargo-cinstall cinstall 2>&1
  sh: line 1:  9086 Abort trap: 6           /opt/homebrew/Cellar/cargo-c/0.9.24_1/bin/cargo-cinstall cinstall 2>&1
  *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString stringByStandardizingPath]: unrecognized selector sent to instance 0x600002254050'
  *** First throw call stack:
  (
  	0   CoreFoundation                      0x0000000186df88c0 __exceptionPreprocess + 176
  	1   libobjc.A.dylib                     0x00000001868f1eb4 objc_exception_throw + 60
  	2   CoreFoundation                      0x0000000186eaa3dc -[NSObject(NSObject) __retain_OA] + 0
  	3   CoreFoundation                      0x0000000186d629e4 ___forwarding___ + 1572
  	4   CoreFoundation                      0x0000000186d62300 _CF_forwarding_prep_0 + 96
  	5   Foundation                          0x0000000187e374f0 -[NSProcessInfo arguments] + 188
  	6   CoreFoundation                      0x0000000186e73ff8 __getDefaultArguments_block_invoke + 96
  	7   libdispatch.dylib                   0x0000000186af9910 _dispatch_client_callout + 20
  	8   libdispatch.dylib                   0x0000000186afb14c _dispatch_once_callout + 32
  	9   CoreFoundation                      0x0000000186e73994 _addBackstopValuesForIdentifierAndSource + [64](https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455#step:4:65)0
  	10  CoreFoundation                      0x0000000186d2e254 __81-[_CFXPreferences(SourceAdditions) withNamedVolatileSourceForIdentifier:perform:]_block_invoke + 144
  	11  CoreFoundation                      0x0000000186e7363c -[_CFXPreferences withNamedVolatileSourceForIdentifier:perform:] + 272
  	12  CoreFoundation                      0x0000000186d345c4 -[CFPrefsSearchListSource addNamedVolatileSourceForIdentifier:] + 136
  	13  CoreFoundation                      0x0000000186eb28bc __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke.155 + 296
  	14  CoreFoundation                      0x0000000186eb2564 -[_CFXPreferences withSearchLists:] + 84
  	15  CoreFoundation                      0x0000000186d2fb18 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 300
  	16  CoreFoundation                      0x0000000186eb2710 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 384
  	17  CoreFoundation                      0x0000000186d2f440 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 156
  	18  CoreFoundation                      0x0000000186d2f368 _CFPreferencesCopyAppValueWithContainerAndConfiguration + 112
  	19  SystemConfiguration                 0x0000000187abf478 SCDynamicStoreCopyProxiesWithOptions + 180
  	20  cargo-cinstall                      0x0000000104cce3d4 Curl_macos_init + 16
  	21  cargo-cinstall                      0x0000000104cbc624 curl_global_init + 176
  	22  cargo-cinstall                      0x0000000104ca82ec _ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17hf42cb5f7744358bcE + 36
  	23  cargo-cinstall                      0x0000000104e0cd84 _ZN3std10sys_common4once5queue4Once4call17hf8f1076e0eb7cb95E + 756
  	24  cargo-cinstall                      0x0000000104ca86b4 _ZN4curl9INIT_CTOR9init_ctor17hfaccc6b8efdfd1[65](https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455#step:4:66)E + 96
  	25  dyld                                0x00000001869495c8 ___ZZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateEENK3$_0clEv_block_invoke + 1[68](https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455#step:4:69)
  	26  dyld                                0x000000018[69](https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455#step:4:70)8e920 ___ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv_block_invoke.209 + 340
  	27  dyld                                0x0000000186981c60 ___ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE_block_invoke + 496
  	28  dyld                                0x00000001869292fc _ZNK5dyld39MachOFile18forEachLoadCommandER11DiagnosticsU13block_pointerFvPK12load_commandRbE + 300
  	29  dyld                                0x0000000186980c98 _ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE + 192
  	30  dyld                                0x000000018698e434 _ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv + 516
  	31  dyld                                0x0000000186945[79](https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455#step:4:80)8 _ZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateE + 448
  	32  dyld                                0x00000001[86](https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455#step:4:87)94bb14 _ZNK5dyld416JustInTimeLoader15runInitializersERNS_12RuntimeStateE + 36
  	33  dyld                                0x0000000186945b4c _ZNK5dyld46Loader23runInitializersBottomUpERNS_12RuntimeStateERN5dyld35ArrayIPKS0_EE + 220
  	34  dyld                                0x0000000186949654 _ZZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateEENK3$_1clEv + 112
  	35  dyld                                0x0000000186945ccc _ZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateE + 304
  	36  dyld                                0x000000018696aad4 _ZN5dyld44APIs25runAllInitializersForMainEv + 464
  	37  dyld                                0x0000000186[92](https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455#step:4:93)df34 _ZN5dyld4L7prepareERNS_4APIsEPKN5dyld313MachOAnalyzerE + 3192
  	38  dyld                                0x000000018692cf44 start + 1[94](https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455#step:4:95)8
  )
  libc++abi: terminating due to uncaught exception of type NSException
  Error: cargo-c: failed
  An exception occurred within a child process:
    Minitest::Assertion: Expected: 1
    Actual: 134

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/6230032354/job/16915123455


I could not reproduce on my ventura arm (which is using xcode 15)

chenrui333 avatar Sep 19 '23 17:09 chenrui333

The curl in use apparently is broken.

lu-zero avatar Sep 19 '23 18:09 lu-zero

  	19  SystemConfiguration                 0x0000000187abf478 SCDynamicStoreCopyProxiesWithOptions + 180
  	20  cargo-cinstall                      0x0000000104cce3d4 Curl_macos_init + 16
  	21  cargo-cinstall                      0x0000000104cbc624 curl_global_init + 176

lu-zero avatar Sep 19 '23 18:09 lu-zero

It seems using cargo install cargo-c causes this issue, whereas using brew install cargo-c works fine (and installs curl 8.3.0 currently).

Relevant homebrew commit: https://github.com/Homebrew/homebrew-core/commit/a3c5b3dd3077f2c82d0dbca51c22c14ed16e643e Links https://github.com/alexcrichton/curl-rust/issues/524

quietvoid avatar Oct 08 '23 18:10 quietvoid

I guess upstream cargo should be notified as well.

lu-zero avatar Oct 08 '23 18:10 lu-zero

👋 Upstream curl issue had been fixed, new curl-sys version had been released and seems to work on Sonoma. See https://github.com/alexcrichton/curl-rust/issues/524#issuecomment-1753070751 for more details.

SomeoneToIgnore avatar Oct 09 '23 14:10 SomeoneToIgnore

It should work now, please let me know if anything is missing.

lu-zero avatar Oct 10 '23 07:10 lu-zero