Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload system symbols: ensure dumped breakpad filenames are unique
At some point, we started hitting limits on symbol file names, so we began collapsing each path components except the filename down to the first letter. This breaks down with the following setup: Some.framework/Versions/30/libSomething.dylib Some.framework/Versions/31/libSomething.dylib Which collapse to the same file name. Since upload_system_symbols dumps in parallel, this can lead to one of the files overwriting part of the other, creating a corrupted end product. This change creates files with O_EXCL. If creating fails due to the file already existing, we tack on a counter (so f.sym becomes f_1.sym, for example). Bug: chromium:40250422 Change-Id: I66ea50b84d68d3c5103eb7e31568b8444ec3be27 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/6064141 Reviewed-by: Mark Mentovai <[email protected]>
- Loading branch information