View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001565 | bareos-core | file daemon | public | 2023-11-01 00:14 | 2023-12-12 10:11 |
Reporter | jamyles | Assigned To | joergs | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Mac | OS | MacOS X | OS Version | 10 |
Product Version | 22.1.1 | ||||
Summary | 0001565: bareos-fd crash on macOS 14.1 Sonoma | ||||
Description | bareos-fd crashes with "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString stringByStandardizingPath]: unrecognized selector sent to instance 0x600002118580'." Can reproduce on 22.1.1 subscription release and 23.0.0~pre1137. /var/run/bareos.log attached. | ||||
Steps To Reproduce | /usr/local/bareos/sbin/bareos-fd --version or in normal operation. | ||||
Additional Information | % sw_vers ProductName: macOS ProductVersion: 14.1 BuildVersion: 23B74 % otool -L /usr/local/bareos/sbin/bareos-fd /usr/local/bareos/sbin/bareos-fd: /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.255.0) @rpath/libbareosfind.22.dylib (compatibility version 22.0.0, current version 22.1.1) @rpath/libbareos.22.dylib (compatibility version 22.0.0, current version 22.1.1) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11) @rpath/libbareoslmdb.22.dylib (compatibility version 22.0.0, current version 22.1.1) @rpath/libbareosfastlz.22.dylib (compatibility version 22.0.0, current version 22.1.1) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.36.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0) % | ||||
Tags | No tags attached. | ||||
bareos.log (5,283 bytes)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString stringByStandardizingPath]: unrecognized selector sent to instance 0x600001b2c940' *** First throw call stack: ( 0 CoreFoundation 0x00007ff80ddbffa6 __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007ff80d8b5231 objc_exception_throw + 48 2 CoreFoundation 0x00007ff80de652a4 -[NSObject(NSObject) __retain_OA] + 0 3 CoreFoundation 0x00007ff80dd2d893 ___forwarding___ + 1379 4 CoreFoundation 0x00007ff80dd2d2a8 _CF_forwarding_prep_0 + 120 5 Foundation 0x00007ff80ec90b8f -[NSProcessInfo arguments] + 203 6 CoreFoundation 0x00007ff80de32c95 __getDefaultArguments_block_invoke + 101 7 libdispatch.dylib 0x00007ff80daca59a _dispatch_client_callout + 8 8 libdispatch.dylib 0x00007ff80dacb7cb _dispatch_once_callout + 20 9 CoreFoundation 0x00007ff80de326a6 _addBackstopValuesForIdentifierAndSource + 636 10 CoreFoundation 0x00007ff80dcf9a8d __81-[_CFXPreferences(SourceAdditions) withNamedVolatileSourceForIdentifier:perform:]_block_invoke + 151 11 CoreFoundation 0x00007ff80de32365 -[_CFXPreferences withNamedVolatileSourceForIdentifier:perform:] + 241 12 CoreFoundation 0x00007ff80dd00650 -[CFPrefsSearchListSource addNamedVolatileSourceForIdentifier:] + 98 13 CoreFoundation 0x00007ff80de6cdab __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke.160 + 310 14 CoreFoundation 0x00007ff80de6ca78 -[_CFXPreferences withSearchLists:] + 60 15 CoreFoundation 0x00007ff80dcfb0a8 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 278 16 CoreFoundation 0x00007ff80de6cbf0 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 349 17 CoreFoundation 0x00007ff80dcfab32 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 124 18 CoreFoundation 0x00007ff80dcfaa78 _CFPreferencesCopyAppValueWithContainerAndConfiguration + 101 19 libbareos.22.1.1.dylib 0x00000001062ef8f8 _libintl_locale_name_default + 66 20 libbareos.22.1.1.dylib 0x00000001062ed8b7 libintl_dcigettext + 1571 21 libbareos.22.1.1.dylib 0x00000001062b4ff5 _ZL7gettextPKc + 21 22 libbareos.22.1.1.dylib 0x00000001062b9e70 __cxx_global_var_init + 16 23 libbareos.22.1.1.dylib 0x00000001062ba1d9 _GLOBAL__sub_I_var.cc + 9 24 dyld 0x00007ff80d901fea ___ZZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateEENK3$_0clEv_block_invoke + 182 25 dyld 0x00007ff80d94376f ___ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv_block_invoke.180 + 241 26 dyld 0x00007ff80d937963 ___ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE_block_invoke + 543 27 dyld 0x00007ff80d8e507f _ZNK5dyld39MachOFile18forEachLoadCommandER11DiagnosticsU13block_pointerFvPK12load_commandRbE + 249 28 dyld 0x00007ff80d936b2c _ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE + 176 29 dyld 0x00007ff80d94335a _ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv + 470 30 dyld 0x00007ff80d8fed1c _ZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateE + 222 31 dyld 0x00007ff80d9045eb _ZNK5dyld416JustInTimeLoader15runInitializersERNS_12RuntimeStateE + 21 32 dyld 0x00007ff80d8fef11 _ZNK5dyld46Loader23runInitializersBottomUpERNS_12RuntimeStateERN5dyld35ArrayIPKS0_EE + 181 33 dyld 0x00007ff80d8feef3 _ZNK5dyld46Loader23runInitializersBottomUpERNS_12RuntimeStateERN5dyld35ArrayIPKS0_EE + 151 34 dyld 0x00007ff80d8feef3 _ZNK5dyld46Loader23runInitializersBottomUpERNS_12RuntimeStateERN5dyld35ArrayIPKS0_EE + 151 35 dyld 0x00007ff80d902060 _ZZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateEENK3$_1clEv + 98 36 dyld 0x00007ff80d8fefa7 _ZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateE + 93 37 dyld 0x00007ff80d9209ad _ZN5dyld44APIs25runAllInitializersForMainEv + 317 38 dyld 0x00007ff80d8ea261 _ZN5dyld4L7prepareERNS_4APIsEPKN5dyld313MachOAnalyzerE + 3397 39 dyld 0x00007ff80d8e933f start + 1839 ) libc++abi: terminating due to uncaught exception of type NSException |
|
Thank you for your report. I also read your message on bareos-users. Unfortunately, I don't have access to a test machine with macOS 14. For building (and testing) we use github actions. We use macos-12 there. macos-13 is only available as beta, so I'm afraid it will take a long time, before macos-14 will be available. However, the other problem described on bareos-users (Working Directory: "/usr/local/var/lib/bareos" not found. Cannot continue.) has been addressed by https://github.com/bareos/bareos/pull/1592. Without adapting, I wasn't able to start the bareos-fd (without copying the config files around). Test packages are available at https://download.bareos.org/experimental/PR-1592/MacOS/ To you mind to give it a try to see, if this also influence the problem from this bug report? I'm also not against applying your LC_MESSAGES=C to the plist file we do provide, as the bareos-fd do not use language support at all. Still, finding the root cause would be much better. Are your aware, where I could get access to a macOS 14 test machine, maybe as cloud offering? |
|
Thanks for the update. PR-1592 does fix the Working Directory issue in my testing. I'm working to get access to a macOS 14 system that you can use to test, at least in the short term, and I'll email you directly about that. |
|
With help of jamyles, we've been able to reproduce and solve the problem. https://github.com/bareos/bareos/pull/1592 is now updated accordingly and will hopefully get merged soon. | |
Fix committed to bareos master branch with changesetid 18412. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-11-01 00:14 | jamyles | New Issue | |
2023-11-01 00:14 | jamyles | File Added: bareos.log | |
2023-11-09 14:46 | joergs | Assigned To | => joergs |
2023-11-09 14:46 | joergs | Status | new => assigned |
2023-11-09 15:04 | joergs | Note Added: 0005509 | |
2023-11-09 16:26 | joergs | Status | assigned => feedback |
2023-11-09 16:30 | jamyles | Note Added: 0005510 | |
2023-11-09 16:30 | jamyles | Status | feedback => assigned |
2023-12-04 17:30 | joergs | Note Added: 0005566 | |
2023-12-12 10:11 | arogge | Changeset attached | => bareos master 73a3ec43 |
2023-12-12 10:11 | joergs | Note Added: 0005601 | |
2023-12-12 10:11 | joergs | Status | assigned => resolved |
2023-12-12 10:11 | joergs | Resolution | open => fixed |