Skip to content

[Bug]: Hanging, CPU spikes, segfaults #931

Open

Description

@jflatow

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

Any type of usage now leads eventually to Virtualization Server consuming 200-400% CPU, and stuck containers. Simply start some containers and use them for a few days.

Current behavior

On recent builds the Virtualization Server tends to end up consuming massive CPU and the system eventually becomes unresponsive. Containers often run normally at first (although issues with the builder can make it difficult to create an image in the first place -- include seg faults during builds). The containers seem to run fine for a few hours to days before exploding in resource usage.

Expected behavior

Idle containers should quietly consume zero resources.

Environment

- OS: 15.7.2 (24G325)
- Xcode: Version 26.1.1 (17B100)
- Container: 0.6.0 (build: release, commit: a23bcf0)

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Dec 5, 2025
  2. jglogan commented on Dec 11, 2025

    @jglogan
    Contributor

    @jflatow when you say "Virtualization Server" what are you referring to? Can you show ps or Activity Monitor output that illustrates what you're seeing?

  3. jflatow commented on Dec 11, 2025

    @jflatow
    Author

    @jflatow when you say "Virtualization Server" what are you referring to? Can you show ps or Activity Monitor output that illustrates what you're seeing?

    Sorry, I meant "Virtual Machine Service" -- I will screenshot/copy it next time I hit it

  4. finagolfin commented on Dec 12, 2025

    @finagolfin

    I'm seeing this too with the prebuilt 0.7.1 release, on Sequoia 15.7.2 on a base M4. I wonder if it's related to the screen saver or the Mac suspending, or if that's just coincidental.

    Any attempt to interact with the pegged container, ie with container stats --no-stream or container stop failing-container-name simply hangs. I've resorted to simply closing all other apps and rebooting, at which point I can start the container over again.

  5. jflatow commented on Dec 12, 2025

    @jflatow
    Author

    This time I had a container process just crash in the middle with

    Error: interrupted: "internalError: "failed to wait for process container-2 in container container-2 (cause: "interru
    pted: "XPC connection error: Connection interrupted"")"nterrupt)
    Ensure container system service has been started with `container system start`."
    

    even though I have other processes still running

  6. jflatow commented on Dec 12, 2025

    @jflatow
    Author
    Image
  7. ancker010 commented on Feb 16, 2026

    @ancker010

    I see the same thing. Latest version of containers, MacOS Tahoe 26.2 on an M4 MBP.
    200% CPU usage, and randomly my container(s) will freeze. Only thing that fixes it is force-quit everything container related and restarting the container system.

    Image
  8. finagolfin commented on Feb 16, 2026

    @finagolfin

    @ancker010, what version of this container? I have not seen a single issue since updating to the last 0.8.0 release.

  9. ancker010 commented on Feb 16, 2026

    @ancker010

    @ancker010, what version of this container? I have not seen a single issue since updating to the last 0.8.0 release.

    Running 0.9.0 of container.

  10. finagolfin commented on Feb 16, 2026

    @finagolfin

    Try checking the system logs for kernel crashes and so on and report any output at crash time, like I did here a couple months ago.

  11. ancker010 commented on Feb 16, 2026

    @ancker010

    I just found a big clue. I did a container ls and found that I had a stale buildkit container hanging around.
    Issuing container stop buildkit just hung, but I force quit the 200% CPU usage VM process listed above and the buildkit container disappeared. CPU usage is now back to idle.

  12. finagolfin commented on Feb 17, 2026

    @finagolfin

    Yeah, buildkit can cause problems too, it is the default container used to create new containers. Next time, check its logs and see what you find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions