Checked Span: Crash on nullptr bucket [chromium/src : main]

0 views
Skip to first unread message

Stephen Nusko (Gerrit)

unread,
1:25 AM (10 hours ago) 1:25 AM
to Kalvin Lee, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, Kentaro Hara, Chromium LUCI CQ, bartek...@chromium.org, lize...@chromium.org, lizeb...@chromium.org, wfh+...@chromium.org
Attention needed from Kalvin Lee

Stephen Nusko voted and added 1 comment

Votes added by Stephen Nusko

Code-Review+1

1 comment

File base/allocator/partition_allocator/src/partition_alloc/bounds_checks.cc
Line 33, Patchset 1 (Latest):
// This branch handles a mystery whose root cause is still unknown.
//
// See also: https://crrev.com/c/7953898
if (slot_start.value() == 0) [[unlikely]] {
PA_DEBUG_DATA_ON_STACK("orig", orig_address);
PA_DEBUG_DATA_ON_STACK("test", test_address);
PA_DEBUG_DATA_ON_STACK("pool", pool);
PA_IMMEDIATE_CRASH();
}
Stephen Nusko . unresolved

Should we instead make this be handled in SlotAddressAndSize or easier to do this here?

I ask because this slot_start.value() == 0 is only needed because bucket can be a nullptr. Otherwise I don't believe it ever returns 0? So we could even remove this branch entirely and base it purely on the bucket being nullptr?

Open in Gerrit

Related details

Attention is currently required from:
  • Kalvin Lee
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
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: I27b60891f1a0232d721ea79d74f42b6c34f91dad
Gerrit-Change-Number: 8061329
Gerrit-PatchSet: 1
Gerrit-Owner: Kalvin Lee <kd...@chromium.org>
Gerrit-Reviewer: Kalvin Lee <kd...@chromium.org>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-Attention: Kalvin Lee <kd...@chromium.org>
Gerrit-Comment-Date: Thu, 09 Jul 2026 05:25:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Kalvin Lee (Gerrit)

unread,
8:28 AM (3 hours ago) 8:28 AM
to Stephen Nusko, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, Kentaro Hara, Chromium LUCI CQ, bartek...@chromium.org, lize...@chromium.org, lizeb...@chromium.org, wfh+...@chromium.org
Attention needed from Stephen Nusko

Kalvin Lee added 1 comment

File base/allocator/partition_allocator/src/partition_alloc/bounds_checks.cc

// This branch handles a mystery whose root cause is still unknown.
//
// See also: https://crrev.com/c/7953898
if (slot_start.value() == 0) [[unlikely]] {
PA_DEBUG_DATA_ON_STACK("orig", orig_address);
PA_DEBUG_DATA_ON_STACK("test", test_address);
PA_DEBUG_DATA_ON_STACK("pool", pool);
PA_IMMEDIATE_CRASH();
}
Stephen Nusko . resolved

Should we instead make this be handled in SlotAddressAndSize or easier to do this here?

I ask because this slot_start.value() == 0 is only needed because bucket can be a nullptr. Otherwise I don't believe it ever returns 0? So we could even remove this branch entirely and base it purely on the bucket being nullptr?

Kalvin Lee

Thanks, fixed in patchset 2.

Open in Gerrit

Related details

Attention is currently required from:
  • Stephen Nusko
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
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: I27b60891f1a0232d721ea79d74f42b6c34f91dad
Gerrit-Change-Number: 8061329
Gerrit-PatchSet: 2
Gerrit-Owner: Kalvin Lee <kd...@chromium.org>
Gerrit-Reviewer: Kalvin Lee <kd...@chromium.org>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
Gerrit-Comment-Date: Thu, 09 Jul 2026 12:27:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Stephen Nusko <nus...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages