Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Issue 2719813005: CrOS: Add print statements to help debug BrowserProcessImpl::Unpin crash. (Closed)

Created:
3 years, 9 months ago by sammiequon
Modified:
3 years, 8 months ago
Reviewers:
xdai1, dgn, sky
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, harkness+watch_chromium.org, awdf+watch_chromium.org, johnme+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CrOS: Add print statements to help debug BrowserProcessImpl::Unpin crash. Unable to pinpoint why the crash is happening. Add print statements to help with future debugging attempts. VLOGS enabled here: https://chromium-review.googlesource.com/c/457099/ TEST=none BUG=660962

Patch Set 1 #

Patch Set 2 : Whitespace. #

Total comments: 3

Patch Set 3 : Use DVLOG instead. #

Total comments: 2

Patch Set 4 : Changed DVLOGS to VLOGS. #

Patch Set 5 : Added dumps. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -9 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/lifetime/keep_alive_registry.h View 1 2 3 4 1 chunk +5 lines, -0 lines 1 comment Download
M chrome/browser/lifetime/keep_alive_registry.cc View 1 2 3 4 5 chunks +17 lines, -7 lines 2 comments Download
M chrome/browser/notifications/profile_notification.h View 1 2 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/notifications/profile_notification.cc View 1 2 3 2 chunks +22 lines, -0 lines 1 comment Download
M chrome/browser/push_messaging/push_messaging_service_impl.h View 1 2 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 1 2 3 3 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
sammiequon
xdai@, dgn@ - Please take a look. Thanks! Do you think this will help track ...
3 years, 9 months ago (2017-03-01 00:54:06 UTC) #3
dgn
thanks for looking into this, it would be helpful to debug what's happening, yes. The ...
3 years, 9 months ago (2017-03-01 11:49:53 UTC) #4
sammiequon
Sorry about the delay, left this one on the backburnner. https://codereview.chromium.org/2719813005/diff/20001/chrome/browser/push_messaging/push_messaging_service_impl.cc File chrome/browser/push_messaging/push_messaging_service_impl.cc (right): https://codereview.chromium.org/2719813005/diff/20001/chrome/browser/push_messaging/push_messaging_service_impl.cc#newcode164 ...
3 years, 9 months ago (2017-03-18 00:01:39 UTC) #16
dgn
non owner lgtm https://codereview.chromium.org/2719813005/diff/20001/chrome/browser/push_messaging/push_messaging_service_impl.cc File chrome/browser/push_messaging/push_messaging_service_impl.cc (right): https://codereview.chromium.org/2719813005/diff/20001/chrome/browser/push_messaging/push_messaging_service_impl.cc#newcode164 chrome/browser/push_messaging/push_messaging_service_impl.cc:164: registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING, On 2017/03/18 00:01:39, sammiequon ...
3 years, 9 months ago (2017-03-20 11:07:22 UTC) #17
sammiequon
Thanks! sky@ - Please take look. https://codereview.chromium.org/2719813005/diff/80001/chrome/browser/notifications/profile_notification.cc File chrome/browser/notifications/profile_notification.cc (right): https://codereview.chromium.org/2719813005/diff/80001/chrome/browser/notifications/profile_notification.cc#newcode58 chrome/browser/notifications/profile_notification.cc:58: DVLOG(1) << "ProfileNotification ...
3 years, 9 months ago (2017-03-20 17:20:06 UTC) #21
sky
How is the logging going to help? By that I mean how are you going ...
3 years, 9 months ago (2017-03-20 20:00:00 UTC) #22
sammiequon
On 2017/03/20 20:00:00, sky wrote: > How is the logging going to help? By that ...
3 years, 9 months ago (2017-03-20 20:54:47 UTC) #23
sky
Do we actually upload log files for chrome on chromeos? Also, if we crash how ...
3 years, 9 months ago (2017-03-20 21:58:26 UTC) #24
sammiequon
On 2017/03/20 21:58:26, sky wrote: > Do we actually upload log files for chrome on ...
3 years, 9 months ago (2017-03-20 22:40:29 UTC) #25
sky
Why not track more state so that when the crash happens you can have it ...
3 years, 9 months ago (2017-03-21 02:59:11 UTC) #26
sammiequon
Hi sky@, thanks for the tips. I added a dump, but do you know how ...
3 years, 9 months ago (2017-03-22 01:18:07 UTC) #27
sky
That I don't know. You could try someone on the crash team. -Scott On Tue, ...
3 years, 9 months ago (2017-03-22 03:49:45 UTC) #28
sky
Please don't add all the VLOGs. I don't think they'll help you locate the crash ...
3 years, 9 months ago (2017-03-22 03:56:16 UTC) #29
sammiequon
3 years, 8 months ago (2017-04-04 00:21:04 UTC) #30
On 2017/03/22 03:56:16, sky wrote:
> Please don't add all the VLOGs. I don't think they'll help you locate the
crash
> and they have a way of staying around when we don't want them.
> 
>
https://codereview.chromium.org/2719813005/diff/120001/chrome/browser/lifetim...
> File chrome/browser/lifetime/keep_alive_registry.cc (right):
> 
>
https://codereview.chromium.org/2719813005/diff/120001/chrome/browser/lifetim...
> chrome/browser/lifetime/keep_alive_registry.cc:74: stream << *this;
> Are you sure this returns something helpful?
> 
>
https://codereview.chromium.org/2719813005/diff/120001/chrome/browser/lifetim...
> chrome/browser/lifetime/keep_alive_registry.cc:87: VLOG_IF(1,
registered_count_
> > 0 || registered_keep_alives_.size() > 0)
> !empty()
> 
>
https://codereview.chromium.org/2719813005/diff/120001/chrome/browser/lifetim...
> File chrome/browser/lifetime/keep_alive_registry.h (right):
> 
>
https://codereview.chromium.org/2719813005/diff/120001/chrome/browser/lifetim...
> chrome/browser/lifetime/keep_alive_registry.h:46: std::string ToString()
const;
> How about naming this more specifically, possibly ToDebugString()?
> 
>
https://codereview.chromium.org/2719813005/diff/120001/chrome/browser/notific...
> File chrome/browser/notifications/profile_notification.cc (right):
> 
>
https://codereview.chromium.org/2719813005/diff/120001/chrome/browser/notific...
> chrome/browser/notifications/profile_notification.cc:58: VLOG(1) <<
> "ProfileNotification Terminating";
> If you really need to log this information, add it to the call sites, not
here.

Closing this in favour of https://codereview.chromium.org/2776933006/.

Powered by Google App Engine
This is Rietveld 408576698