Skip to content

Race Conditions in Parallel Builds Corrupt Artifacts #963

@Ekam219

Description

@Ekam219

Hi @DonggeLiu, What's your view on this?

Problem Summary

A race condition in the build pipeline leads to corrupted build artifacts when multiple threads or processes concurrently access shared resources. This occurs because the current implementation lacks synchronization mechanisms for critical sections of the build process.
Image

Affected Components

  • File I/O Operations: Concurrent writes to shared files (e.g., build.sh, target.o, coverage reports).
  • OSS-Fuzz Configuration: Simultaneous modifications to project configurations.
  • Artifact Generation: Race conditions during binary compilation and coverage data aggregation.

Consequences

  • Corrupted coverage reports skew fuzzing effectiveness analysis.
  • Prevents deployment of distributed fuzzing (requires stable builds).
  • Flaky builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions