Skip to content

Sometimes xcpostbuild hangs forever. #229

Description

@grigorye

My integration setup

[x] CocoaPods cocoapods-xcremotecache plugin
[ ] Automatic integration using xcprepare integrate ...
[ ] Manual integration
[ ] Carthage

Expected/desired behavior

XCRemoteCache should not hang in producer mode.

Minimal reproduction of the problem with instructions

I can't provide steps to reproduce as it concerns a proprietary project, but I believe it should be possible to create a unit test to cover it (not yet done).

I'm attaching LLDB logs in case of hangup. From the logs, I believe it's an issue of waiting for subprocess exit with the process in question (dsymutil) writing to a pipe that is supposed to be read by the process awaiting for the exit (xcpostbuild). See more info here: https://stackoverflow.com/a/39281558.

** LLDB Logs **

The backtrace for xcpostbuild during the hangup:

LLDB-xcpostbuild

The backtrace for dsymutil during the hangup:

LLDB-dsymutil

Producer Logs

Details
 [REPLACE THIS WITH YOUR INFORMATION] 

Consumer Logs

Details
 [REPLACE THIS WITH YOUR INFORMATION] 

Pods/Carthage file

Details
 [REPLACE THIS WITH YOUR INFORMATION] 

Environment

  • XCRemoteCache: 0.3.28
  • cocoapods-xcremotecache: 0.0.17 <!-- check with gem list cocoapods-xcremotecache >
  • HTTP cache server: ... <!-- e.g. demo docker, nginx, AWS etc. >
  • Xcode: 14.2.0

Post build stats

Details
 [REPLACE THIS WITH YOUR INFORMATION] 

Others

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions