[Chromoting] Log any previous crash report ids on launch. [chromium/src : main]

0 views
Skip to first unread message

Gary Kacmarcik (Gerrit)

unread,
Dec 19, 2024, 6:17:46 PM12/19/24
to Joe Downing, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org
Attention needed from Joe Downing

Gary Kacmarcik voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Joe Downing
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ief02b8c8b364d96524c03384fb90b50b40154c75
Gerrit-Change-Number: 6112556
Gerrit-PatchSet: 2
Gerrit-Owner: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
Gerrit-Attention: Joe Downing <joe...@chromium.org>
Gerrit-Comment-Date: Thu, 19 Dec 2024 23:17:38 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Downing (Gerrit)

unread,
Dec 20, 2024, 12:36:09 PM12/20/24
to Gary Kacmarcik, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org
Attention needed from Gary Kacmarcik

Joe Downing voted and added 2 comments

Votes added by Joe Downing

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Joe Downing . resolved

lgtm in case you want to land as-is but I think it would be good to ensure we handle the case where a machine is in a crashloop so we don't spam journald with hundreds/thousands of lines on each loop.

File remoting/base/crash/crashpad_linux.cc
Line 97, Patchset 2 (Latest): status = database_->GetCompletedReports(&completed_reports);
Joe Downing . unresolved

I like logging crash info but I'm a bit concerned about the case where there is a crashloop (say a thousand crashes within a short timeframe) and what that would do to the host log and the journal service.

I could see sorting the entries by time and dumping the last N (maybe N = 5) entries along with the total size and then maybe including a flag in the crash_handler exe which dumps everything to the console. WDYT?

Open in Gerrit

Related details

Attention is currently required from:
  • Gary Kacmarcik
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ief02b8c8b364d96524c03384fb90b50b40154c75
Gerrit-Change-Number: 6112556
Gerrit-PatchSet: 2
Gerrit-Owner: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
Gerrit-Attention: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Comment-Date: Fri, 20 Dec 2024 17:35:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Gary Kacmarcik (Gerrit)

unread,
Dec 20, 2024, 4:10:16 PM12/20/24
to Joe Downing, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org

Gary Kacmarcik added 1 comment

File remoting/base/crash/crashpad_linux.cc
Line 97, Patchset 2 (Latest): status = database_->GetCompletedReports(&completed_reports);
Joe Downing . resolved

I like logging crash info but I'm a bit concerned about the case where there is a crashloop (say a thousand crashes within a short timeframe) and what that would do to the host log and the journal service.

I could see sorting the entries by time and dumping the last N (maybe N = 5) entries along with the total size and then maybe including a flag in the crash_handler exe which dumps everything to the console. WDYT?

Gary Kacmarcik

I was planning on removing the completed entries from the database after they were uploaded.

But I'd still need to do something like you suggest for the pending reports, since a crash loop coupled with something that prevents uploads would cause the same scenario you describe.

I'll do this in a follow-up cl.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ief02b8c8b364d96524c03384fb90b50b40154c75
Gerrit-Change-Number: 6112556
Gerrit-PatchSet: 2
Gerrit-Owner: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
Gerrit-Comment-Date: Fri, 20 Dec 2024 21:10:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joe Downing <joe...@chromium.org>
satisfied_requirement
open
diffy

Gary Kacmarcik (Gerrit)

unread,
Dec 20, 2024, 6:05:57 PM12/20/24
to Joe Downing, Chromium LUCI CQ, chromium...@chromium.org, chromotin...@chromium.org

Gary Kacmarcik voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ief02b8c8b364d96524c03384fb90b50b40154c75
Gerrit-Change-Number: 6112556
Gerrit-PatchSet: 2
Gerrit-Owner: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
Gerrit-Comment-Date: Fri, 20 Dec 2024 23:05:48 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Dec 20, 2024, 6:12:12 PM12/20/24
to Gary Kacmarcik, Joe Downing, chromium...@chromium.org, chromotin...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[Chromoting] Log any previous crash report ids on launch.
Change-Id: Ief02b8c8b364d96524c03384fb90b50b40154c75
Reviewed-by: Joe Downing <joe...@chromium.org>
Auto-Submit: Gary Kacmarcik <gar...@chromium.org>
Commit-Queue: Gary Kacmarcik <gar...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1399399}
Files:
  • M remoting/base/crash/crashpad_linux.cc
Change size: S
Delta: 1 file changed, 41 insertions(+), 2 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Joe Downing
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ief02b8c8b364d96524c03384fb90b50b40154c75
Gerrit-Change-Number: 6112556
Gerrit-PatchSet: 3
Gerrit-Owner: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Gary Kacmarcik <gar...@chromium.org>
Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages