Closed
Bug 632007
Opened 14 years ago
Closed 9 years ago
vast numbers of zero (nul) bytes wrote into the log file by child process (log file concurrency)
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1219466
People
(Reporter: hsivonen, Unassigned)
References
()
Details
Steps to reporoduce:
1) Make a debug build of the trunk on Linux64 (I used Ubuntu Maverick)
2) Enable HTTP logging per instructions in https://developer.mozilla.org/en/HTTP_Logging#Linux
3) Launch Firefox.
4) Navigate to http://nol.hu/index.html
5) View Source.
6) Quit the app.
7) Read the HTTP logging log file using the command 'less'.
Actual results:
less asks if you want to view a binary file. When viewed, it has a lot of zero bytes. After the zero bytes, there's some logging data, but clearly not all the logging data there was supposed to be.
Expected results:
No zero bytes in the log file. All HTTP activity logged.
Marking as having severity of "blocker", because this blocks me from investigating bug 622579.
Marking security-sensitive in case the zeros come from a buffer overrun somewhere.
Comment 1•14 years ago
|
||
Is this a regression? If so, can you provide a regression range?
Severity: blocker → normal
![]() |
||
Comment 2•14 years ago
|
||
See bug 628563?
![]() |
||
Comment 3•14 years ago
|
||
I can reproduce with a fresh profile, the STR from comment 0 and installed latest flash plugin.
-> me
![]() |
||
Updated•14 years ago
|
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
![]() |
||
Comment 4•14 years ago
|
||
So, the cause is, that plugin-container opens the log file again. At that moment the file is filled with zero bytes. This seems to be some bug in windows' crt implementation. We use newLogFile = fopen(file, "w"); to access the file.
I believe this is more or less duplicate of bug 534764.
Comment 5•14 years ago
|
||
> I believe this is more or less duplicate of bug 534764.
Well, fixing bug 534764 will fix this. But keeping this bug open so users who sees the null bytes will see a bug description that's sensible.
Henri: for you purposes you should be able to proceed with debugging by applying the patch from bug 534764 comment 31. (Note you'll need to set NSPR_LOG_FILE_CHILD, too. And note that this probably won't be our actual method for solving the bug in the long run).
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Comment 7•14 years ago
|
||
Sigh. Meant to keep this open.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
![]() |
||
Comment 8•14 years ago
|
||
Just a note that a patch in that bug is more or less experimental and I have absolutely no feedback on it so far. So it might in general be quit wrong.
Comment 9•14 years ago
|
||
Jason -- based on bug 534764 comment 51, is this a security bug? Should it be kept hidden?
![]() |
||
Updated•13 years ago
|
Assignee: honzab.moz → nobody
Status: REOPENED → NEW
Summary: HTTP logging writes vast numbers of zero (nul) bytes into the log file → vast numbers of zero (nul) bytes wrote into the log file by child process (log file concurrency)
Comment 11•9 years ago
|
||
LazyLogModule has fixed this for us
Status: NEW → RESOLVED
Closed: 14 years ago → 9 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Resolution: FIXED → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•