Skip to content

Always build crosvm in opt mode - #3072

Merged
Databean merged 1 commit into
google:mainfrom
Databean:crosvm_opt
Aug 24, 2026
Merged

Always build crosvm in opt mode#3072
Databean merged 1 commit into
google:mainfrom
Databean:crosvm_opt

Conversation

@Databean

Copy link
Copy Markdown
Member

This has two effects:

  • Disables debug assertions crash over an IO safety issue in sandbox mode.
  • Improves VM runtime performance.

With this change, we are closer to being able to package crosvm in //cuttlefish/package:common.

Bug: b/402274999

This has two effects:

- Disables debug assertions crash over an IO safety issue in sandbox mode.
- Improves VM runtime performance.

With this change, we are closer to being able to package crosvm in
`//cuttlefish/package:common`.

Bug: b/402274999
@Databean

Copy link
Copy Markdown
Member Author

This is most of #3008 but doesn't actually package it yet.

@Databean
Databean requested a review from jmacnak August 21, 2026 20:56
@jmacnak

jmacnak commented Aug 21, 2026

Copy link
Copy Markdown
Member

Disables debug assertions crash over an IO safety issue in sandbox mode.

Is there more info on this or why we think it is benign? This sounds pretty scary at least.

@Databean

Copy link
Copy Markdown
Member Author

Is there more info on this or why we think it is benign? This sounds pretty scary at least.

I'm not really sure that it is benign :/ the error looks like

log_tee(460985)  D 08-21 16:20:58 460985 460985 log_tee.cpp:185] fatal runtime error: IO Safety violation: owned file descriptor already closed

This check is https://www.github.com/rust-lang/rust/pull/124210 which was added to stable in Rust 1.80. Crosvm upstream is using Rust 1.88.0 so it is surprising we're seeing this error now.

I can't reproduce this with a crosvm executable manually created by cargo build either.

@Databean
Databean requested a review from jemoreira August 24, 2026 17:22
@Databean
Databean added this pull request to the merge queue Aug 24, 2026
Merged via the queue into google:main with commit a418113 Aug 24, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants