docker / for-mac

Bug reports for Docker Desktop for Mac
https://www.docker.com/products/docker#/mac
2.43k stars 118 forks source link

fatal error reported: Linux kernel v6.10 crash on virtualization.framework #7386

Open sanjayk-github-dev opened 1 month ago

sanjayk-github-dev commented 1 month ago

Description

Docker Desktop consistently crashes while doing Milvus build in a container.

Reproduce

git clone https://github.com/milvus-io/milvus.git
cd milvus
docker run -it -v $(pwd):/root/milvus -v ~/.conan:/root/.conan -w /root/milvus milvusdb/milvus-env:ubuntu22.04-20240805-d8668fe bash
make milvus

Expected behavior

No response

docker version

Client:
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.21.12
 Git commit:        6312585
 Built:             Tue Jul 23 19:54:12 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.33.0 (160616)
 Engine:
  Version:          27.1.1
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.12
  Git commit:       cc13f95
  Built:            Tue Jul 23 19:57:14 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.7.19
  GitCommit:        2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc:
  Version:          1.7.19
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    27.1.1
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.1-desktop.1
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.1-desktop.1
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.34
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-debug
  desktop: Docker Desktop commands (Alpha) (Docker Inc.)
    Version:  v0.0.14
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-desktop
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.25
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.3.0
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.11.0
    Path:     /Users/sanjayk/.docker/cli-plugins/docker-scout

Server:
 Containers: 14
  Running: 4
  Paused: 0
  Stopped: 10
 Images: 23
 Server Version: 27.1.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.10.0-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 10
 Total Memory: 31.54GiB
 Name: docker-desktop
 ID: 7d95379d-2ef7-4818-9f48-e76355b18900
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=unix:///Users/sanjayk/Library/Containers/com.docker.docker/Data/docker-cli.sock
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: daemon is not using the default seccomp profile

Diagnostics ID

DA486BA7-7F7A-4F44-B054-B8D52CC67A6C/20240812210143

Additional Info

Docker Desktop Version 4.33.0 (160616)

Running on MacBook Pro (M1 Max), 64GB, macOS 14.5

fatal error reported: Linux kernel v6.10 crash on virtualization.framework

[ 3940.510957] Internal error: Oops: 0000000086000005 [#1] SMP
[ 3940.511011] Modules linked in: shiftfs(O) selfowner(O) rosetta(O) grpcfuse(O) fakeowner(O)
[ 3940.511054] CPU: 7 PID: 0 Comm: swapper/7 Tainted: G           O       6.10.0-linuxkit #1
[ 3940.511131] pstate: 814000c5 (Nzcv daIF +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
[ 3940.511184] pc : 0x100000000
[ 3940.511224] lr : __hrtimer_run_queues+0x13c/0x308
[ 3940.511267] sp : ffff00081b9afc20
[ 3940.511302] x29: ffff00081b9afc40 x28: ffff00081b99e500 x27: ffff00081b99e4c0
[ 3940.511361] x26: 0000000100000000 x25: ffff800081d3a008 x24: 00000000000000c0
[ 3940.511442] x23: ffff800081d3a008 x22: ffff8000821ca790 x21: ffff00081b99e520
[ 3940.511519] x20: ffff00081b99e4c0 x19: ffff0000c2777d70 x18: 0000000000000000
[ 3940.511601] x17: ffff800799c60000 x16: ffff00081b9abdc0 x15: 0000ffff9c468938
[ 3940.511635] x14: 0000000000000000 x13: 0000000000000000 x12: ffff8000821ca7d0
[ 3940.511703] x11: 0000000000000040 x10: ffff0000c0166468 x9 : ffff800080104bb0
[ 3940.511777] x8 : ffff0000c04004b8 x7 : 0000000000000000 x6 : 0000000000000000
[ 3940.511837] x5 : ffff0000c0400490 x4 : 0000000000000000 x3 : 0000000000000001
[ 3940.511933] x2 : 00000000000000c0 x1 : 0000000000000000 x0 : ffff0000c2777d70
[ 3940.512047] Call trace:
[ 3940.512090]  0x100000000
[ 3940.512113]  hrtimer_run_queues+0xd0/0x128
[ 3940.512180]  update_process_times+0x3c/0x160
[ 3940.512221]  tick_nohz_lowres_handler+0xe4/0x170
[ 3940.512254]  arch_timer_handler_virt+0x34/0x58
[ 3940.512308]  handle_percpu_devid_irq+0x90/0x1c8
[ 3940.512364]  generic_handle_domain_irq+0x34/0x58
[ 3940.512413]  gic_handle_irq+0x5c/0xd8
[ 3940.512457]  call_on_irq_stack+0x24/0x58
[ 3940.512504]  do_interrupt_handler+0x88/0x98
[ 3940.512538]  el1_interrupt+0x34/0x58
[ 3940.512577]  el1h_64_irq_handler+0x18/0x28
[ 3940.512609]  el1h_64_irq+0x64/0x68
[ 3940.512642]  do_idle+0x128/0x240
[ 3940.512679]  cpu_startup_entry+0x40/0x50
[ 3940.512739]  secondary_start_kernel+0x11c/0x148
[ 3940.512821]  __secondary_switched+0xb8/0xc0
[ 3940.512849] Code: ???????? ???????? ???????? ???????? (????????) 
[ 3940.512915] ---[ end trace 0000000000000000 ]---
renatoaraujoc commented 3 weeks ago

I've also started randomly getting this issue, it's impossible to work locally with Docker Desktop for Mac now...

Screenshot 2024-08-21 at 12 48 48

sanjayk-github-dev commented 3 weeks ago

Hi @bsousaa, what's the approx. ETA to have this issue resolved? In the meantime, is there any workaround that you recommend? Thanks!

truongn1 commented 2 weeks ago

I had the same issue with Mac M3. Please help resolve this or provide a workaround solution.

sanjayk-github-dev commented 2 weeks ago

The issue was resolved after downgrading Docker Desktop to 4.29.0!