Add additional crash annotations to the crash reports generated by WER
Categories
(Toolkit :: Crash Reporting, enhancement)
Tracking
()
People
(Reporter: gsvelto, Unassigned)
References
Details
Attachments
(1 obsolete file)
The WER exception module is only currently writing out a minimum set of crash annotations, these should be augmented with the following which it should be possible to extract from without Gecko:
CrashTime: this is just a call totime().- StartupTime: this needs to be computed from
GetProcessTimes() - Memory measurements: these include AvailablePageFile, AvailablePhysicalMemory, TotalPageFile, TotalPhysicalMemory and SystemMemoryUsePercentage. See the code in AnnotateMemoryStatus(). There is no point in recording AvailableVirtualMemory and TotalVirtualMemory because we're taking the measurements outside of the crashed process.
- Info about the graphics driver: AdapterDeviceID, AdapterDriverVersion, AdapterSubsysID and AdapterVendorID. These might be harder to extract (I need to study the widget code) but would be very nice to add given that we expect crashes to be coming from graphics drivers too.
- CPUMicrocodeVersion and MemoryErrorCorrection: nice to have but not necessary
| Reporter | ||
Comment 1•5 years ago
|
||
I have already added the CrashTime annotation but UptimeTS is notably missing. It should be able to implement it by obtaining the process startup time via GetProcessTimes() like we do in the TimeStamp class.
| Reporter | ||
Comment 2•5 years ago
|
||
I discovered that Socorro doesn't use UptimeTS to display Firefox' uptime but rather CrashTime - StartupTime so I'll add StartupTime instead.
Comment 3•5 years ago
|
||
The processor rule that figures out the uptime value is really janky and I have no confidence that it's correct or is the best "uptime value" we could have. I'm happy to change it.
| Reporter | ||
Comment 4•5 years ago
|
||
The UptimeTS value that we put in crash reports is garbage. It means different things on different platforms and sometimes different things even on the same platform. CrashTime - StartupTime is a better choice ATM because at least it's consistent.
| Reporter | ||
Comment 5•5 years ago
|
||
Actually I might just add both StartupTime and UptimeTS and make the latter be CrashTime - StartupTime. It doesn't hurt and then I'm sure that if there are users of both they get whatever field they're looking at.
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Comment 6•5 years ago
|
||
Depends on D115380
| Reporter | ||
Comment 7•5 years ago
|
||
Ugh, wrong bug, this was meant for bug 1703761.
Updated•5 years ago
|
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Comment 8•2 years ago
|
||
We'll deal with this in bug 1874889.
Description
•