symbolicatecrash patch to broaden search for app
| Originator: | mightydweeb | ||
| Number: | rdar://12070705 | Date Originated: | 8/9/12 |
| Status: | open | Resolved: | |
| Product: | DeveloperTools | Product Version: | 4.4.1 |
| Classification: | Enhancement | Reproducible: |
09-Aug-2012 03:40 PM Kevin Connor:
Summary: symbolicatecrash won't find .app files that have been renamed
Steps to Reproduce:
1) build app in release and debug configurations
2) rename app to reflect build number, configuration, etc.
mv KillerApp.app KillerApp_42_release.app
mv KillerApp.dSYM KillerApp_42_release.dSYM
mv KillerApp.app KillerApp_42_debug.app
mv KillerApp.dSYM KillerApp_42_debug.dSYM
3) test killer app and crash
4) run symbolicatecrash without giving it the symbol path.
Expected Results:
KillerApp stack entries will by annotated with symbols
Actual Results:
KillerApp stack entries remain hex.
This line fails to find the app:
mdfind "kMDItemContentType == com.apple.application-bundle && (kMDItemAlternateNames == 'KillerApp.app' || kMDItemDisplayName == 'KillerApp')"
The dSYM dir is found using mdfind and the uuid though. Using that, we could just search the apps with the same name in same dir, or more broadly, any app that's a peer of the dSYM dir.
189,194d188
< my @app_bundles_next_to_dsyms;
< foreach my $dsymdir (@dsym_paths) {
< my ($dsympath) = $dsymdir =~ /(^.*)\.dSYM/i;
< push(@app_bundles_next_to_dsyms, $dsympath . '.app');
< }
<
202,203c196
< my @app_bundles = (@app_bundles_next_to_dsyms, split(/\n/, `$cmd`));
< foreach my $app_bundle (@app_bundles) {
---
> foreach my $app_bundle (split(/\n/, `$cmd`)) {
Regression:
Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!