Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes a crash on tvOS 10 Foundation framework dump at NSLeafProxy #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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