Closed
Bug 1090389
Opened 10 years ago
Closed 10 years ago
fix mainthread IO logging code to expand user path when logging events
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jmaher, Assigned: bugzilla)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
right now in talos we are comparing our mainthead IO log to a whitelist and turning a job orange when it doesn't match.
We have a scenario where on windows the profile is in c:\\users\\cltblduser, but sometimes we get files with a long path and a short path:
c:\\users\\cltblduser
c:\\users\\cltbld~1
c:\\users\\cltbld~1.t-w (on 3 machines)
If we had the path expanded for all logged events, we wouldn't have to programatically hack the mainthread IO/whitelist code in talos to guess at these permutations.
Assignee | ||
Comment 1•10 years ago
|
||
Do we have any of the original, raw log output from Firefox for these cases? If no, how hard would it be to obtain one?
I suspect that I need to add code to the IOInterposer logger to normalize the file paths, but I'd like to confirm that.
Flags: needinfo?(jmaher)
Reporter | ||
Comment 2•10 years ago
|
||
we would need to upload bits to blobber, probably on try server would be the best route to do this.
Reporter | ||
Comment 3•10 years ago
|
||
Reporter | ||
Comment 4•10 years ago
|
||
Reporter | ||
Comment 5•10 years ago
|
||
Reporter | ||
Comment 6•10 years ago
|
||
mainthread_io.log (raw):
http://mozilla-releng-blobs.s3.amazonaws.com/blobs/Try-Non-PGO/sha512/8ccf0d1fb00fd3842c9038c6c195349c220e96dc81277d77f5da269eab823a27fd398ae42cfc743e5dd6f98fe8caa32d55f83bce905dc7756e0a3f31b8f3c247
mainthread_io.json (parsed):
http://mozilla-releng-blobs.s3.amazonaws.com/blobs/Try-Non-PGO/sha512/26cb7db60deb479ad2bd43fd27c4fdb12bd5ea0abc9e06fa2c44b78fb55b577a84fcfee260fef2d86cf15ab3d215b6964ed943931cf430fc208b83916d115736
this is from the last 'x' in: https://tbpl.mozilla.org/?tree=Try&rev=26787ab34b9b
Flags: needinfo?(jmaher)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8520100 -
Flags: review?(ehsan.akhgari)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → aklotz
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8520100 [details] [diff] [review]
NtPathToDosPath should always produce long filenames
Sending to Nathan since Ehsan is away.
Attachment #8520100 -
Flags: review?(ehsan.akhgari) → review?(nfroyd)
Comment 9•10 years ago
|
||
Comment on attachment 8520100 [details] [diff] [review]
NtPathToDosPath should always produce long filenames
Review of attachment 8520100 [details] [diff] [review]:
-----------------------------------------------------------------
::: xpcom/io/FileUtilsWin.h
@@ +20,5 @@
> + auto inputPath = PromiseFlatString(aDosPath);
> + // Get the required length of the long path name
> + DWORD longPathLen = GetLongPathNameW(inputPath.get(),
> + aDosPath.BeginWriting(),
> + aDosPath.Length());
As discussed on IRC, this call needs to check to see if it succeeded, otherwise, the rest of the function isn't going to work right (particularly the check at the end).
Though presumably the test bit that you changed works as-is right now, and doesn't require any expansion to long paths, so I'm not quite sure what's going on...
Attachment #8520100 -
Flags: review?(nfroyd) → feedback+
Assignee | ||
Comment 10•10 years ago
|
||
Added success check.
Attachment #8520100 -
Attachment is obsolete: true
Attachment #8521571 -
Flags: review?(nfroyd)
Assignee | ||
Comment 11•10 years ago
|
||
Whoops, something slipped in there. This one is right.
Attachment #8521571 -
Attachment is obsolete: true
Attachment #8521571 -
Flags: review?(nfroyd)
Attachment #8521573 -
Flags: review?(nfroyd)
Assignee | ||
Comment 12•10 years ago
|
||
WTF!
Attachment #8521573 -
Attachment is obsolete: true
Attachment #8521573 -
Flags: review?(nfroyd)
Attachment #8521575 -
Flags: review?(nfroyd)
Comment 13•10 years ago
|
||
Comment on attachment 8521575 [details] [diff] [review]
NtPathToDosPath should always produce long filenames (rev. 2)
Review of attachment 8521575 [details] [diff] [review]:
-----------------------------------------------------------------
Is that your *final* patch, Aaron? ;)
Attachment #8521575 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 14•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Updated•10 years ago
|
Component: General → XPCOM
Product: Firefox → Core
Target Milestone: Firefox 36 → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•