Chromium Coverage for macOS Issue with Large Component Builds

181 views
Skip to first unread message

dis

unread,
Aug 27, 2025, 10:59:27 AMAug 27
to Chromium-dev

Hi, 

I'm encountering a coverage measurement issue on macOS.

Problem:

  • Building with "use_clang_coverage=true" and "is_component_build=true" produces a ~3GB instrumented binary
  • Runtime crashes with: "dyld[PID]: dyld cache '(null)' not loaded: syscall to map cache into shared region failed"
  • The large binary conflicts with macOS kernel's dyld shared cache memory mapping and it should not be greater than 1.5GB.

What works:

  • "is_component_build=false" runs but produces empty coverage (likely missing profdata merge) and `symbol_level=0`.

What I've tried:

  • DYLD_SHARED_REGION=avoid and other dyld env vars
  • Various build optimizations ("use_thin_lto", "optimize_for_size"). But it optimizes the size from 3.1GB to 2.9GB.
  • Different coverage allowlists.

Question: 

Is there a recommended approach for coverage on macOS with large component builds?

Any guidance would be much appreciated.

Hans Wennborg

unread,
Sep 8, 2025, 10:17:40 AMSep 8
to dis09...@gmail.com, Chromium-dev
A 3GB large binary with the component build is surprising.

Can you file a bug on crbug.com under "Tools > LLVM" so this doesn't get lost?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/97b9c3f1-9f98-4fa3-b7b6-b9d00c32a900n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages