Open Bug 1414274 Opened 8 years ago Updated 3 years ago

Garbled log on Android

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

People

(Reporter: michal, Unassigned)

Details

Attachments

(2 files)

Attached file log.txt
Looks like printing to file on android is not thread safe, so logging on different threads at the same time produces garbled output as in the attached sample.
So we'd need to lock around the calls the `fprintf_stderr` [1,2]. Other calls to fprintf_stderr (or really anything that outputs to androids syslog) could still be intermixed. I wonder if this really Android only or if it affects all platforms.
Attached file log from linux
It's probably not limited to android. I just got this log on linux when I ran mochitest under rr in chaos mode.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: