Open Kyle-Ye opened 2 years ago
In the help content, there is a demo.
Thoroughly dump the Swift content in color in the Console app dsdump --swift /Applications/Utilities/Console.app/Contents/MacOS/Console -cvvvv And I tried it with the following dsdump --swift /System/Applications/Utilities/Console.app/Contents/MacOS/Console -cvvvv Multiple arches found: [ x86_64 | arm64e ] Use --arches (-a) (or ARCH env var) to specify arch dsdump --swift /System/Applications/Utilities/Console.app/Contents/MacOS/Console -cvvvv -a x86_64 WARNING: couldn't find address 0x3ef031b44 (0x3ef031b44) in binary! [1] 62677 segmentation fault dsdump --swift -cvvvv -a x86_64 dsdump --swift /System/Applications/Utilities/Console.app/Contents/MacOS/Console -cvvvv -a arm64e 2022-02-10 01:06:52.500 dsdump[62697:1005801] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 259 beyond bounds for empty array' *** First throw call stack: ( 0 CoreFoundation 0x000000019eb82af8 __exceptionPreprocess + 240 1 libobjc.A.dylib 0x000000019e8cde14 objc_exception_throw + 60 2 CoreFoundation 0x000000019ec54378 -[__NSCFString characterAtIndex:].cold.1 + 0 3 CoreFoundation 0x000000019eaee494 -[__NSArrayM objectAtIndexedSubscript:] + 188 4 dsdump 0x0000000102ef3784 __53-[XRMachOLibrary(Opcode) printChainDetails:callback:]_block_invoke_2 + 148 5 dsdump 0x0000000102efdfe0 _ZNK5dyld311MachOLoaded9walkChainER11DiagnosticsPNS0_25ChainedFixupPointerOnDiskEtbjU13block_pointerFvS4_RbE + 300 6 dsdump 0x0000000102efe168 _ZNK5dyld311MachOLoaded27forEachFixupInSegmentChainsER11DiagnosticsPK30dyld_chained_starts_in_segmentbU13block_pointerFvPNS0_25ChainedFixupPointerOnDiskES5_RbE + 180 7 dsdump 0x0000000102efdd98 _ZNK5dyld311MachOLoaded23forEachFixupInAllChainsER11DiagnosticsPK28dyld_chained_starts_in_imagebU13block_pointerFvPNS0_25ChainedFixupPointerOnDiskEPK30dyld_chained_starts_in_segmentRbE + 92 8 dsdump 0x0000000102ef36c0 __53-[XRMachOLibrary(Opcode) printChainDetails:callback:]_block_invoke + 124 9 dsdump 0x0000000102f0c0c4 _ZNK5dyld313MachOAnalyzer15withChainStartsER11DiagnosticsyU13block_pointerFvPK28dyld_chained_starts_in_imageE + 140 10 dsdump 0x0000000102ef3560 -[XRMachOLibrary(Opcode) printChainDetails:callback:] + 284 11 dsdump 0x0000000102ee9e3c -[XRMachOLibrary handleLoadCommand:] + 368 12 dsdump 0x0000000102effa60 _ZNK5dyld39MachOFile18forEachLoadCommandER11DiagnosticsU13block_pointerFvPK12load_commandRbE + 160 13 dsdump 0x0000000102ee972c -[XRMachOLibrary initWithPath:] + 956 14 dsdump 0x0000000102ef69f8 main + 1400 15 dyld 0x000000010375d08c start + 520 ) libc++abi: terminating with uncaught exception of type NSException [1] 62697 abort dsdump --swift -cvvvv -a arm64e
Thoroughly dump the Swift content in color in the Console app dsdump --swift /Applications/Utilities/Console.app/Contents/MacOS/Console -cvvvv
And I tried it with the following
dsdump --swift /System/Applications/Utilities/Console.app/Contents/MacOS/Console -cvvvv Multiple arches found: [ x86_64 | arm64e ] Use --arches (-a) (or ARCH env var) to specify arch dsdump --swift /System/Applications/Utilities/Console.app/Contents/MacOS/Console -cvvvv -a x86_64 WARNING: couldn't find address 0x3ef031b44 (0x3ef031b44) in binary! [1] 62677 segmentation fault dsdump --swift -cvvvv -a x86_64 dsdump --swift /System/Applications/Utilities/Console.app/Contents/MacOS/Console -cvvvv -a arm64e 2022-02-10 01:06:52.500 dsdump[62697:1005801] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 259 beyond bounds for empty array' *** First throw call stack: ( 0 CoreFoundation 0x000000019eb82af8 __exceptionPreprocess + 240 1 libobjc.A.dylib 0x000000019e8cde14 objc_exception_throw + 60 2 CoreFoundation 0x000000019ec54378 -[__NSCFString characterAtIndex:].cold.1 + 0 3 CoreFoundation 0x000000019eaee494 -[__NSArrayM objectAtIndexedSubscript:] + 188 4 dsdump 0x0000000102ef3784 __53-[XRMachOLibrary(Opcode) printChainDetails:callback:]_block_invoke_2 + 148 5 dsdump 0x0000000102efdfe0 _ZNK5dyld311MachOLoaded9walkChainER11DiagnosticsPNS0_25ChainedFixupPointerOnDiskEtbjU13block_pointerFvS4_RbE + 300 6 dsdump 0x0000000102efe168 _ZNK5dyld311MachOLoaded27forEachFixupInSegmentChainsER11DiagnosticsPK30dyld_chained_starts_in_segmentbU13block_pointerFvPNS0_25ChainedFixupPointerOnDiskES5_RbE + 180 7 dsdump 0x0000000102efdd98 _ZNK5dyld311MachOLoaded23forEachFixupInAllChainsER11DiagnosticsPK28dyld_chained_starts_in_imagebU13block_pointerFvPNS0_25ChainedFixupPointerOnDiskEPK30dyld_chained_starts_in_segmentRbE + 92 8 dsdump 0x0000000102ef36c0 __53-[XRMachOLibrary(Opcode) printChainDetails:callback:]_block_invoke + 124 9 dsdump 0x0000000102f0c0c4 _ZNK5dyld313MachOAnalyzer15withChainStartsER11DiagnosticsyU13block_pointerFvPK28dyld_chained_starts_in_imageE + 140 10 dsdump 0x0000000102ef3560 -[XRMachOLibrary(Opcode) printChainDetails:callback:] + 284 11 dsdump 0x0000000102ee9e3c -[XRMachOLibrary handleLoadCommand:] + 368 12 dsdump 0x0000000102effa60 _ZNK5dyld39MachOFile18forEachLoadCommandER11DiagnosticsU13block_pointerFvPK12load_commandRbE + 160 13 dsdump 0x0000000102ee972c -[XRMachOLibrary initWithPath:] + 956 14 dsdump 0x0000000102ef69f8 main + 1400 15 dyld 0x000000010375d08c start + 520 ) libc++abi: terminating with uncaught exception of type NSException [1] 62697 abort dsdump --swift -cvvvv -a arm64e
Environment M1 + macOS 12.3 beta2 + dsdump beta
dsdump binary is from https://github.com/DerekSelander/dsdump/blob/5909e0891b50eca4cbb9076f0ea460edb758fade/compiled/dsdump_beta.zip?raw=true
https://github.com/DerekSelander/dsdump/blob/5909e0891b50eca4cbb9076f0ea460edb758fade/compiled/dsdump_beta.zip?raw=true
In the help content, there is a demo.