New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 678720 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

UMA reporting not working for Crashpad on macOS

Project Member Reported by mark@chromium.org, Jan 5 2017

Issue description

https://crashpad.chromium.org/bug/100 added some UMA support to Crashpad, but it’s only working on Windows. We noticed that it wasn’t working on macOS but we weren’t sure why not.

While looking at https://crashpad.chromium.org/bug/143, I noticed that we’re not starting crashpad_handler with --metrics-dir on macOS.

In Chrome, this is where we get the metrics path to give to Crashpad when we start it: https://chromium.googlesource.com/chromium/src/+/7b9234c4b2a7f4f4fa84c80ecb22d41c54899f6a/components/crash/content/app/crashpad_mac.mm#50

The base implementation of crash_reporter::CrashReporterClient::GetCrashMetricsLocation() is a no-op: https://chromium.googlesource.com/chromium/src/+/785ed6054d704b40cf4be1da82a88c979efe03bb/components/crash/content/app/crash_reporter_client.cc#113.

On Windows, Chrome overrides this with a real implementation: https://chromium.googlesource.com/chromium/src/+/24c2c8cda1e14b7523b6fb841bec1e810633a26e/chrome/app/chrome_crash_reporter_client_win.cc#384.

There is no such override on macOS (https://chromium.googlesource.com/chromium/src/+/39d6ba4eece90cc70bff87f2ecc39e5a790e1233/chrome/app/chrome_crash_reporter_client_mac.mm), so there, we never wind up giving crashpad_handler a metrics path, and it faithfully doesn’t write metrics data anywhere.
 
Additionally, do the metrics rely on the persistent memory allocator, and is that in use on non-windows platforms?

Comment 2 by mark@chromium.org, Jan 9 2017

Cc: manzagop@chromium.org
It does, and I’m not totally sure that it’s working correctly. If you have a moment to help out, can you take a look at the discussion on https://codereview.chromium.org/2610883006/?
Project Member

Comment 3 by bugdroid1@chromium.org, Jan 11 2017

Comment 4 by mark@chromium.org, Jan 19 2017

Status: Fixed (was: Started)
It looks like this is working properly for both Mac and Windows in current canaries.

Sign in to add a comment