Open brucemontegani opened 1 month ago
Synced to Apple’s issue tracker as rdar://131969179
As with the previous issue, there's nothing in the log that points to swift-format as the culprit. It looks like it's compiling the other dependencies and getting killed before it gets to anything in swift-format.
Unfortunately I'm not sure how to suggest that you debug this; I don't have much experience with Docker.
swift build -v
succeed. To me the issue you describe (hanging and then stopping with SIGKILL) sounds like running out of memory. Monitoring top
inside the docker container during the build would also be valuable information.
I know I closed this issue the other day but It is still happening. I can confirm that it is a 5.10.1 issue. I can say it works fine for 508.0.0 and for the 'main' branch I am getting the same error but in different spots. This is not a container memory issue.
Here is the log from Docker:
[internal] load build definition from Dockerfile.extended transferring 1656/0 0.004 resolve image config for docker-image://docker.io/docker/dockerfile:1.4 docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc [internal] load .dockerignore transferring 2/0 0.002 [internal] load metadata for docker.io/library/swift:5.10 [context dev_containers_feature_content_source] load .dockerignore [context dev_containers_feature_content_source] load from client transferring 8492/0 0.004 [dev_containers_feature_content_normalize 1/3] FROM docker.io/library/swift:5.10@sha256:f74c9b0ab8e2c2c2af435097e260f6f41be57ef3ef40ce085815a1da40826c8a [dev_containers_feature_content_normalize 2/3] COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/ [dev_containers_feature_content_normalize 3/3] RUN chmod -R 0755 /tmp/build-features/ [dev_containers_target_stage 3/5] COPY --from=dev_containers_feature_content_normalize /tmp/build-features/ /tmp/dev-container-features [dev_containers_target_stage 2/5] RUN mkdir -p /tmp/dev-container-features [dev_containers_target_stage 4/5] RUN echo "_CONTAINER_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]:[^:]:root:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env && echo "_REMOTE_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]:[^:]:root:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env [dev_containers_target_stage 5/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=swift-format_0,target=/tmp/build-features-src/swift-format_0 cp -ar /tmp/build-features-src/swift-format_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/swift-format_0 && cd /tmp/dev-container-features/swift-format_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/swift-format_0