Opened 5 months ago

Closed 5 months ago

#68951 closed defect (fixed)

aria2 @1.37.0_1: aria2c crashes with uncaught exception

Reported by: vigna (Sebastiano Vigna) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: aria2 gettext

Description

Port aria2-1.37.0_1+python311, MacBook M1 Sonoma 14.2.1:

at 11:17:54 ❯ aria2c
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString stringByStandardizingPath]: unrecognized selector sent to instance 0x6000025bc4e0'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018de94570 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x000000018d985eb4 objc_exception_throw + 60
	2   CoreFoundation                      0x000000018df4612c -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x000000018ddfe7d4 ___forwarding___ + 1572
	4   CoreFoundation                      0x000000018ddfe0f0 _CF_forwarding_prep_0 + 96
	5   Foundation                          0x000000018eed4860 -[NSProcessInfo arguments] + 188
	6   CoreFoundation                      0x000000018df0fd48 __getDefaultArguments_block_invoke + 96
	7   libdispatch.dylib                   0x000000018db90910 _dispatch_client_callout + 20
	8   libdispatch.dylib                   0x000000018db9214c _dispatch_once_callout + 32
	9   CoreFoundation                      0x000000018df0f6e4 _addBackstopValuesForIdentifierAndSource + 640
	10  CoreFoundation                      0x000000018ddc9ffc __81-[_CFXPreferences(SourceAdditions) withNamedVolatileSourceForIdentifier:perform:]_block_invoke + 144
	11  CoreFoundation                      0x000000018df0f38c -[_CFXPreferences withNamedVolatileSourceForIdentifier:perform:] + 272
	12  CoreFoundation                      0x000000018ddd036c -[CFPrefsSearchListSource addNamedVolatileSourceForIdentifier:] + 136
	13  CoreFoundation                      0x000000018df4e60c __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke.155 + 296
	14  CoreFoundation                      0x000000018df4e2b4 -[_CFXPreferences withSearchLists:] + 84
	15  CoreFoundation                      0x000000018ddcb8c0 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 300
	16  CoreFoundation                      0x000000018df4e460 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 384
	17  CoreFoundation                      0x000000018ddcb1e8 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 156
	18  CoreFoundation                      0x000000018ddcb110 _CFPreferencesCopyAppValueWithContainerAndConfiguration + 112
	19  libintl.8.dylib                     0x0000000100800c94 _nl_locale_name_default + 72
	20  libintl.8.dylib                     0x00000001007fefa4 libintl_dcigettext + 1876
	21  aria2c                              0x000000010009d860 _GLOBAL__sub_I_OptionHandlerException.cc + 20
	22  dyld                                0x000000018d9dda24 ___ZZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateEENK3$_0clEv_block_invoke + 168
	23  dyld                                0x000000018da23328 ___ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv_block_invoke.209 + 340
	24  dyld                                0x000000018da16668 ___ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE_block_invoke + 496
	25  dyld                                0x000000018d9bd2fc _ZNK5dyld39MachOFile18forEachLoadCommandER11DiagnosticsU13block_pointerFvPK12load_commandRbE + 300
	26  dyld                                0x000000018da156a0 _ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE + 192
	27  dyld                                0x000000018da22e3c _ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv + 516
	28  dyld                                0x000000018d9d9b38 _ZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateE + 524
	29  dyld                                0x000000018d9dff70 _ZNK5dyld416JustInTimeLoader15runInitializersERNS_12RuntimeStateE + 36
	30  dyld                                0x000000018d9d9f24 _ZNK5dyld46Loader23runInitializersBottomUpERNS_12RuntimeStateERN5dyld35ArrayIPKS0_EE + 220
	31  dyld                                0x000000018d9ddab0 _ZZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateEENK3$_1clEv + 112
	32  dyld                                0x000000018d9da0f0 _ZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateE + 380
	33  dyld                                0x000000018d9ff4dc _ZN5dyld44APIs25runAllInitializersForMainEv + 464
	34  dyld                                0x000000018d9c1fa0 _ZN5dyld4L7prepareERNS_4APIsEPKN5dyld313MachOAnalyzerE + 3192
	35  dyld                                0x000000018d9c0edc start + 1844
)
libc++abi: terminating due to uncaught exception of type NSException
Abort trap: 6

Change History (4)

comment:1 Changed 5 months ago by vigna (Sebastiano Vigna)

Apparently, a problem with gettext translation. Running the program with LC_ALL=C solves the problem.

See https://github.com/aria2/aria2/issues/2083

comment:2 Changed 5 months ago by jmroot (Joshua Root)

Cc: ryandesign added
Owner: set to Schamschula
Port: aria2 gettext added
Status: newassigned
Summary: aria2c crashes with uncaught exceptionaria2 @1.37.0_1: aria2c crashes with uncaught exception

comment:3 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Then this would be resolved by updating gettext to 0.22.x or later (#68030).

comment:4 Changed 5 months ago by Marius Schamschula <mschamschula@…>

Resolution: fixed
Status: assignedclosed

In f0cbfe3687f436daa93dd3de86af8a86bdae2a69/macports-ports (master):

aria2: add missing CoreServices framework on Sonoma

Closes: #68951

Note: See TracTickets for help on using tickets.