The Backup Agent of iOS 10.3 crashes, if there are duplicate files with Unicode normalized names
Originator: | Norio.Nomura | ||
Number: | rdar://31265273 | Date Originated: | 27-Mar-2017 |
Status: | closed | Resolved: | Done |
Product: | iOS + SDK | Product Version: | 10.3 (14E5277a) |
Classification: | Serious Bug | Reproducible: | Always |
憲男 野村27-Mar-2017 10:53 AM Area: Something not on this list Summary: Since APFS does not perform Unicode normalization on filename, it is possible that there are duplicate files with Unicode normalized names. If there are duplicate files with Unicode normalized names on device, the Backup Agent of iOS 10.3 crashes. Steps to Reproduce: 1. Build and run attached project on iOS 10.3 device 2. Perform backup from iTunes on Mac that connected iOS 10.3 device. Expected Results: 3. Backup will complete Actual Results: 3. Backup Agent on iOS 10.3 crashes, and backup operation fail with message on iTunes: The iPhone "norio's iPhone SE" could not be synced because the connection to the iPhone was reset. Version: iOS 10.3 (14E5277a) Notes: Configuration: iPhone SE (Model A1662, A1723, A1724) Attachments: 'BackupAgent2 3-27-17, 10-32 AM.crash' and 'UnicodeFilenameOnAPFS.zip' were successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at feedbackassistant.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!
Here is the code to verify APFS Unicode normalization https://gist.github.com/norio-nomura/c8a4addd659e1208df500a37da58536d
憲男 野村28-Mar-2017 11:51 AM
Same on iOS 10.3 (14E277)
console log on crash:
I confirmed that the issue has been resolved on iOS 11 beta 1 (15A5278f)