[L] Change in fuchsia/fuchsia[main]: [fuchsia-async] Inline OnSignals allocation

5 views
Skip to first unread message

'David Koloski (Gerrit)' via owners-override

unread,
Jun 13, 2025, 11:44:49 AMJun 13
to Owners Override, Clayton McCray, Will Drewry
Attention needed from Owners Override

David Koloski has uploaded the change for review

David Koloski would like Owners Override to review this change.

David Koloski removed Clayton McCray and Will Drewry from reviewers of this change.

Commit message

[fuchsia-async] Inline OnSignals allocation

This commit includes four major changes:

1. Changing the lock around fasync's `PacketReceiverMap` to an `RWLock`
2. Switching `PacketReceiverMap` to hold pointers to `dyn
PacketReceiver`
3. Introducing `RawReceiverRegistration` to allow for more efficient
packet receiver registration
4. Splitting the core implementation of `OnSignals` into an unboxed
`OnSignalsFuture` and a boxed `OnSignals`.

`OnSignals` only ever registers a packet receiver while being polled,
and therefore only when it is pinned. Since it's pinned, we can avoid
making an additional allocation for the coordinating memory between the
executor and the future. Being pinned guarantees that `drop` will be
called to unregister the receiver before the memory is freed.

To prevent a race removing packet receivers, packet receivers are now
called while holding a read lock on the packet receiver map. This does
open some potential for deadlocks if packet receivers attempt to insert
or remove packet receivers during their callback. There are ways we can
work around this if needed.

As a side-effect of some code reorganization, this change also switches
a few `Arc`s to `Box`es. This should be vanishingly more efficient.

In benchmarks, this removed an allocation corresponding with each
`OnSignals` created. It also reduced the amount of memory allocated
slightly, by about 1% overall. This is not expected to be representative
of the entire codebase.
Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55

Change diff


Change information

Files:
  • M src/diagnostics/lib/ring-buffer/src/lib.rs
  • M src/lib/fuchsia-async/src/ffi.rs
  • M src/lib/fuchsia-async/src/handle/zircon/on_signals.rs
  • M src/lib/fuchsia-async/src/handle/zircon/rwhandle.rs
  • M src/lib/fuchsia-async/src/lib.rs
  • M src/lib/fuchsia-async/src/net/fuchsia/mod.rs
  • M src/lib/fuchsia-async/src/runtime/fuchsia/executor/common.rs
  • M src/lib/fuchsia-async/src/runtime/fuchsia/executor/local.rs
  • M src/lib/fuchsia-async/src/runtime/fuchsia/executor/mod.rs
  • M src/lib/fuchsia-async/src/runtime/fuchsia/executor/packets.rs
  • M src/lib/fuchsia-async/src/runtime/mod.rs
  • M src/storage/fxfs/platform/src/fuchsia/pager.rs
  • M src/virtualization/lib/machina-virtio-device/src/bell.rs
Change size: L
Delta: 13 files changed, 448 insertions(+), 167 deletions(-)
Open in Gerrit

Related details

Attention is currently required from:
  • Owners Override
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 9
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/4346c89b8e3887d172bc7717a8939998692294de-HTML%40fuchsia-review.googlesource.com.
satisfied_requirement
open
diffy

'David Koloski (Gerrit)' via owners-override

unread,
Jun 13, 2025, 11:44:50 AMJun 13
to Owners Override, Chris Suter, GI Try Builder, CQ Bot, Adam Perry
Attention needed from Owners Override

David Koloski voted Fuchsia-Auto-Submit+1

Fuchsia-Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Owners Override
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 9
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Comment-Date: Fri, 13 Jun 2025 15:44:46 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/4346c89b8e3887d172bc7717a8939998692294de-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
satisfied_requirement
open
diffy

'James Robinson (Gerrit)' via owners-override

unread,
Jun 13, 2025, 12:05:20 PMJun 13
to David Koloski, Owners Override, Chris Suter, GI Try Builder, CQ Bot, Adam Perry
Attention needed from David Koloski and Owners Override

James Robinson voted and added 2 comments

Votes added by James Robinson

Code-Review+2

2 comments

Patchset-level comments
File-level comment, Patchset 9 (Latest):
James Robinson . resolved

Looks good - modifying the commit message will clear the Owners-Override bit so I'll hold off on setting that for this patch set.

Commit Message
Line 39, Patchset 9 (Latest):Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
James Robinson . unresolved

Could you please file a tracking bug, link it from here, and attach / link to the relevant benchmark results to that bug? That will help us greatly when doing performance and regression analysis in the future.

Open in Gerrit

Related details

Attention is currently required from:
  • David Koloski
  • Owners Override
Submit Requirements:
  • 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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 9
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: David Koloski <dkol...@google.com>
Gerrit-Comment-Date: Fri, 13 Jun 2025 16:05:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/18dc9b3b5fb6febf7a65d1f98decbced057d5796-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
satisfied_requirement
unsatisfied_requirement
open
diffy

'David Koloski (Gerrit)' via owners-override

unread,
Jun 13, 2025, 4:18:00 PMJun 13
to James Robinson, Owners Override, Chris Suter, GI Try Builder, CQ Bot, Adam Perry
Attention needed from Owners Override

David Koloski voted Fuchsia-Auto-Submit+0

Fuchsia-Auto-Submit+0
Open in Gerrit

Related details

Attention is currently required from:
  • Owners Override
Submit Requirements:
  • 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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 9
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Comment-Date: Fri, 13 Jun 2025 20:17:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/1c9fe2734dbe7ba504025309ea83086886a45761-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
satisfied_requirement
unsatisfied_requirement
open
diffy

'David Koloski (Gerrit)' via owners-override

unread,
Jun 13, 2025, 8:49:10 PMJun 13
to James Robinson, Owners Override, Chris Suter, GI Try Builder, CQ Bot, Adam Perry
Attention needed from Owners Override

David Koloski voted and added 1 comment

Votes added by David Koloski

Code-Review-2
Commit-Queue+0

1 comment

Patchset-level comments
File-level comment, Patchset 10 (Latest):
David Koloski . resolved

Looks like there are some more failures that need investigating.

Open in Gerrit

Related details

Attention is currently required from:
  • Owners Override
Submit Requirements:
  • requirement is blockingCode-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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 10
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Comment-Date: Sat, 14 Jun 2025 00:49:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/780e7705220fc69124c80fcc307b0ee94372af6a-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
blocking_requirement
unsatisfied_requirement
satisfied_requirement
open
diffy

'David Koloski (Gerrit)' via owners-override

unread,
Jun 17, 2025, 1:42:06 PMJun 17
to James Robinson, Owners Override, Chris Suter, GI Try Builder, CQ Bot, Adam Perry

David Koloski voted and added 1 comment

Votes added by David Koloski

Code-Review-2

1 comment

Patchset-level comments
File-level comment, Patchset 11 (Latest):
David Koloski . resolved

Unfortunately there's some UB here that's proving very difficult to reproduce locally. I can't afford to spend any more time trying to track it down right now, but I suspect https://github.com/rust-lang/rust/issues/63818 is related.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is blockingCode-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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 11
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Comment-Date: Tue, 17 Jun 2025 17:42:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/eff2461ebe2702ac9517046877e329a4effaf371-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
blocking_requirement
unsatisfied_requirement
satisfied_requirement
open
diffy

'Chris Suter (Gerrit)' via owners-override

unread,
Jun 17, 2025, 7:38:54 PMJun 17
to David Koloski, James Robinson, Owners Override, GI Try Builder, CQ Bot, Adam Perry
Attention needed from David Koloski

Chris Suter voted and added 1 comment

Votes added by Chris Suter

Code-Review+2

1 comment

Patchset-level comments
David Koloski . unresolved

Unfortunately there's some UB here that's proving very difficult to reproduce locally. I can't afford to spend any more time trying to track it down right now, but I suspect https://github.com/rust-lang/rust/issues/63818 is related.

Chris Suter

Is there a particular test that is failing? Do you have a link to a failure?

Open in Gerrit

Related details

Attention is currently required from:
  • David Koloski
Submit Requirements:
  • requirement is blockingCode-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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 11
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: David Koloski <dkol...@google.com>
Gerrit-Comment-Date: Tue, 17 Jun 2025 23:38:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: David Koloski <dkol...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/a8f5199caee57ab3f9278a65aa2c54db87eab4b3-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
blocking_requirement
unsatisfied_requirement
satisfied_requirement
open
diffy

'Chris Suter (Gerrit)' via owners-override

unread,
Jun 17, 2025, 7:43:23 PMJun 17
to David Koloski, James Robinson, Owners Override, GI Try Builder, CQ Bot, Adam Perry
Attention needed from David Koloski

Chris Suter voted Code-Review+0

Code-Review+0
Gerrit-Comment-Date: Tue, 17 Jun 2025 23:43:02 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/97d5a7f52e37b4e54f21ac2443dc4bd3aa5edace-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
blocking_requirement
unsatisfied_requirement
satisfied_requirement
open
diffy

'David Koloski (Gerrit)' via owners-override

unread,
Jun 18, 2025, 9:37:28 AMJun 18
to James Robinson, Owners Override, Chris Suter, GI Try Builder, CQ Bot, Adam Perry
Attention needed from Chris Suter, James Robinson and Owners Override

David Koloski added 1 comment

Patchset-level comments
David Koloski . unresolved

Unfortunately there's some UB here that's proving very difficult to reproduce locally. I can't afford to spend any more time trying to track it down right now, but I suspect https://github.com/rust-lang/rust/issues/63818 is related.

Chris Suter

Is there a particular test that is failing? Do you have a link to a failure?

David Koloski

The tests in the [`core.x64-release` builder](https://ci.chromium.org/ui/p/fuchsia/builders/try/core.x64-release/b8711797439120975889/overview) seem to have the highest failure rate. When attempting to reproduce locally, the failures appeared random. I wasn't able to reproduce in any other configurations.

Open in Gerrit

Related details

Attention is currently required from:
  • Chris Suter
  • James Robinson
  • Owners Override
Submit Requirements:
  • requirement is blockingCode-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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 11
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: James Robinson <jam...@google.com>
Gerrit-Attention: Chris Suter <csu...@google.com>
Gerrit-Comment-Date: Wed, 18 Jun 2025 13:37:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Koloski <dkol...@google.com>
Comment-In-Reply-To: Chris Suter <csu...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/d907e47eee3c90e3f0fbde0fcead88b5454b20c4-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
blocking_requirement
unsatisfied_requirement
satisfied_requirement
open
diffy

'Chris Suter (Gerrit)' via owners-override

unread,
Jun 24, 2025, 1:42:58 AMJun 24
to David Koloski, James Robinson, Owners Override, GI Try Builder, CQ Bot, Adam Perry
Attention needed from David Koloski

Chris Suter added 1 comment

Patchset-level comments
David Koloski . unresolved

Unfortunately there's some UB here that's proving very difficult to reproduce locally. I can't afford to spend any more time trying to track it down right now, but I suspect https://github.com/rust-lang/rust/issues/63818 is related.

Chris Suter

Is there a particular test that is failing? Do you have a link to a failure?

David Koloski

The tests in the [`core.x64-release` builder](https://ci.chromium.org/ui/p/fuchsia/builders/try/core.x64-release/b8711797439120975889/overview) seem to have the highest failure rate. When attempting to reproduce locally, the failures appeared random. I wasn't able to reproduce in any other configurations.

Chris Suter

If I had to guess, I'd say this is caused by the deadlock you mentioned in the CL description.

Open in Gerrit

Related details

Attention is currently required from:
  • David Koloski
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is blockingCode-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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 11
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: David Koloski <dkol...@google.com>
Gerrit-Comment-Date: Tue, 24 Jun 2025 05:42:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Koloski <dkol...@google.com>
Comment-In-Reply-To: Chris Suter <csu...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/6dea6d15e99470977ffbfc2d57b9623995f9eb55-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
blocking_requirement
satisfied_requirement
open
diffy

'Chris Suter (Gerrit)' via owners-override

unread,
Jun 24, 2025, 1:45:52 AMJun 24
to David Koloski, James Robinson, Owners Override, GI Try Builder, CQ Bot, Adam Perry
Attention needed from David Koloski

Chris Suter added 1 comment

Patchset-level comments
David Koloski . unresolved

Unfortunately there's some UB here that's proving very difficult to reproduce locally. I can't afford to spend any more time trying to track it down right now, but I suspect https://github.com/rust-lang/rust/issues/63818 is related.

Chris Suter

Is there a particular test that is failing? Do you have a link to a failure?

David Koloski

The tests in the [`core.x64-release` builder](https://ci.chromium.org/ui/p/fuchsia/builders/try/core.x64-release/b8711797439120975889/overview) seem to have the highest failure rate. When attempting to reproduce locally, the failures appeared random. I wasn't able to reproduce in any other configurations.

Chris Suter

If I had to guess, I'd say this is caused by the deadlock you mentioned in the CL description.

Chris Suter

Do you think you will get back to this CL? I think it's a positive change. If you don't have the time right now, let me know and it might be something I can pick up.

Gerrit-Comment-Date: Tue, 24 Jun 2025 05:45:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Koloski <dkol...@google.com>
Comment-In-Reply-To: Chris Suter <csu...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/864032cafabf0ad8f06bc0d6457609a8bc4113c7-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
blocking_requirement
satisfied_requirement
open
diffy

'David Koloski (Gerrit)' via owners-override

unread,
Jun 24, 2025, 9:22:57 AMJun 24
to James Robinson, Owners Override, Chris Suter, GI Try Builder, CQ Bot, Adam Perry
Attention needed from Chris Suter, James Robinson and Owners Override

David Koloski added 1 comment

Patchset-level comments
David Koloski . unresolved

Unfortunately there's some UB here that's proving very difficult to reproduce locally. I can't afford to spend any more time trying to track it down right now, but I suspect https://github.com/rust-lang/rust/issues/63818 is related.

Chris Suter

Is there a particular test that is failing? Do you have a link to a failure?

David Koloski

The tests in the [`core.x64-release` builder](https://ci.chromium.org/ui/p/fuchsia/builders/try/core.x64-release/b8711797439120975889/overview) seem to have the highest failure rate. When attempting to reproduce locally, the failures appeared random. I wasn't able to reproduce in any other configurations.

Chris Suter

If I had to guess, I'd say this is caused by the deadlock you mentioned in the CL description.

Chris Suter

Do you think you will get back to this CL? I think it's a positive change. If you don't have the time right now, let me know and it might be something I can pick up.

David Koloski

The deadlock should be turned into a panic via the thread-local `RECEIVING` variable, but there might be a case I missed.

I probably won't get back to it in the immediate future, and I would be very grateful for help getting the issues figured out.

I suspect the issue may be due to `&mut` aliasing a shared memory region even though the value is pinned. I was looking at [`UnsafePinned`](https://doc.rust-lang.org/nightly/std/pin/struct.UnsafePinned.html) to see if it would address the issue, but that's unfortunately nightly-only and last I checked was mid-implementation.

It's very possible the issue is due to something else, but I was having a bear of a time getting a local repro. I _think_ this change may break ffx in release mode based on the symptoms I was seeing. I can't be sure though.

Open in Gerrit

Related details

Attention is currently required from:
  • Chris Suter
  • James Robinson
  • Owners Override
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is blockingCode-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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 11
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: James Robinson <jam...@google.com>
Gerrit-Attention: Chris Suter <csu...@google.com>
Gerrit-Comment-Date: Tue, 24 Jun 2025 13:22:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Koloski <dkol...@google.com>
Comment-In-Reply-To: Chris Suter <csu...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/4ae4156ef81a22bfd317296d235bfb820aab77a2-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
blocking_requirement
satisfied_requirement
open
diffy

'Chris Suter (Gerrit)' via owners-override

unread,
Jul 2, 2025, 8:47:22 AMJul 2
to David Koloski, James Robinson, Owners Override, GI Try Builder, CQ Bot, Adam Perry
Attention needed from David Koloski, James Robinson and Owners Override

Chris Suter added 1 comment

Patchset-level comments
David Koloski . unresolved

Unfortunately there's some UB here that's proving very difficult to reproduce locally. I can't afford to spend any more time trying to track it down right now, but I suspect https://github.com/rust-lang/rust/issues/63818 is related.

Chris Suter

Is there a particular test that is failing? Do you have a link to a failure?

David Koloski

The tests in the [`core.x64-release` builder](https://ci.chromium.org/ui/p/fuchsia/builders/try/core.x64-release/b8711797439120975889/overview) seem to have the highest failure rate. When attempting to reproduce locally, the failures appeared random. I wasn't able to reproduce in any other configurations.

Chris Suter

If I had to guess, I'd say this is caused by the deadlock you mentioned in the CL description.

Chris Suter

Do you think you will get back to this CL? I think it's a positive change. If you don't have the time right now, let me know and it might be something I can pick up.

David Koloski

The deadlock should be turned into a panic via the thread-local `RECEIVING` variable, but there might be a case I missed.

I probably won't get back to it in the immediate future, and I would be very grateful for help getting the issues figured out.

I suspect the issue may be due to `&mut` aliasing a shared memory region even though the value is pinned. I was looking at [`UnsafePinned`](https://doc.rust-lang.org/nightly/std/pin/struct.UnsafePinned.html) to see if it would address the issue, but that's unfortunately nightly-only and last I checked was mid-implementation.

It's very possible the issue is due to something else, but I was having a bear of a time getting a local repro. I _think_ this change may break ffx in release mode based on the symptoms I was seeing. I can't be sure though.

Chris Suter

The issue was a deadlock (the tracing_mutex crate readily pointed to the issue). Fxfs wants to be able to free a receiver from within receive_packet. I've fixed it up here: https://fxrev.dev/1313267.

Open in Gerrit

Related details

Attention is currently required from:
  • David Koloski
  • James Robinson
  • Owners Override
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is blockingCode-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: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 11
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: David Koloski <dkol...@google.com>
Gerrit-Attention: James Robinson <jam...@google.com>
Gerrit-Comment-Date: Wed, 02 Jul 2025 12:46:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Koloski <dkol...@google.com>
Comment-In-Reply-To: Chris Suter <csu...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/24ce515e96901cf6571f6b4e980460505c294801-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
blocking_requirement
satisfied_requirement
open
diffy

'David Koloski (Gerrit)' via owners-override

unread,
Aug 12, 2025, 3:15:55 PMAug 12
to James Robinson, Owners Override, Chris Suter, GI Try Builder, CQ Bot, Adam Perry

David Koloski abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement is blockingCode-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: abandon
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ifb011aa4a276341e3b0d9154401ed717c2fd7d55
Gerrit-Change-Number: 1291846
Gerrit-PatchSet: 11
Gerrit-Owner: David Koloski <dkol...@google.com>
Gerrit-Reviewer: Chris Suter <csu...@google.com>
Gerrit-Reviewer: David Koloski <dkol...@google.com>
Gerrit-Reviewer: James Robinson <jam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Perry <adam...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/e815496581c639c933d7209be53bffeb40fe4989-HTML%40fuchsia-review.googlesource.com.
blocking_requirement
unsatisfied_requirement
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages