Skip to content

Skip RPATH patching on Schema v1 builds#5318

Open
notvictorl wants to merge 1 commit into
google:masterfrom
notvictorl:liuvic/rpath
Open

Skip RPATH patching on Schema v1 builds#5318
notvictorl wants to merge 1 commit into
google:masterfrom
notvictorl:liuvic/rpath

Conversation

@notvictorl

@notvictorl notvictorl commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Problem:
Currently, blackbox MSan jobs like linux_msan_chrome attempt to patch the RPATHs of binaries to point to instrumented libs provided in the Dockerfile

mkdir /msan-no-origins && \

since schema v0 archives did not include the instrumented libs in the archives. Schema v1 archives do include the instrumented libs that are needed by the binaries, but ClusterFuzz still tries to patch the RPATHs leading to mismatches causing Bad build errors.

Solution:
ClusterFuzz can safely skip RPATH patching for MSan Schema v1 jobs so that the binaries can use the instrumented libs included in the same archive. To track the archive schema version after unpacking, a .schema_version file and self._schema_version are written so if the same build is re-used, ClusterFuzz isn't patching binaries that don't need patching.

Note: We naively assume for SymbolizedBuild that the builds share the same schema version and uses the release builds schema version as it is unpacked first. This can cause issues if one build needs RPATH patching while the other does not.

More info: https://crbug.com/516755275

@notvictorl notvictorl requested a review from a team as a code owner June 11, 2026 18:00
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.

1 participant