Skip to content

Conversation

@lechium
Copy link

@lechium lechium commented Mar 22, 2017

When running on tvOS 10.x it crashes on a full dump when it hits NSLeafProxy in Foundation:

./classdump-dyld -o tvOSH2 -c -D

Now dumping /System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64...

2017-03-22 10:29:41.156 classdump-dyld[22900:558139] classdump-dyld : Current Image /usr/lib/libSystem.B.dylib
....
[truncated for brevity]
....
72% [==================================== ] 450/624
2017-03-22 10:29:56.295 classdump-dyld[22900:558139] classdump-dyld : Processing Class NSDocumentSerializer
2017-03-22 10:29:56.303 classdump-dyld[22900:558139] classdump-dyld : Processing Class NSDirInfoSerializer
2017-03-22 10:29:56.341 classdump-dyld[22900:558139] classdump-dyld : Processing Class NSDirInfoDeserializer
2017-03-22 10:29:56.349 classdump-dyld[22900:558139] classdump-dyld : Processing Class NSLeafProxy
2017-03-22 10:29:56.350 classdump-dyld[22900:558139] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(0x1961e251c 0x1957d455c 0x1961d3784 0x1000e87b4 0x1000ebec4 0x1000ef574 0x195c59674)
Abort trap: 6

I traced the error to this section of ParsingFunctions, there may be a more proper fix to this, but this at least prevents the crash from happening and allows it to run through the full cache dump successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant