Skip to content

[BUG] docker compose build panic fail #13456

Closed

Description

@AnesCehic

Description

panic: runtime error: index out of range [19] with length 9 2.8s

goroutine 40 [running]:
github.com/docker/compose/v5/cmd/display.(*ttyWriter).lineText(0xc0003a0480, {{0xc000620498, 0x11}, {0x0, 0x0}, {0xc24829465ccceb7f, 0x3249776, 0x1eac820}, {0x0, 0x0, ...}, ...}, ...)
github.com/docker/compose/v5/cmd/display/tty.go:313 +0xb35
github.com/docker/compose/v5/cmd/display.(*ttyWriter).print(0xc0003a0480)
github.com/docker/compose/v5/cmd/display/tty.go:256 +0x6ac
github.com/docker/compose/v5/cmd/display.(*ttyWriter).Start.func1()
github.com/docker/compose/v5/cmd/display/tty.go:103 +0x45
created by github.com/docker/compose/v5/cmd/display.(*ttyWriter).Start in goroutine 1
github.com/docker/compose/v5/cmd/display/tty.go:88 +0xd5

Steps To Reproduce

Run docker compose up with this yaml config

services:
  postgres:
    image: postgres:15

Compose Version

Docker Compose version v5.0.0

Docker Environment

Client: Docker Engine - Community
 Version:    29.1.3
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.30.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v5.0.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 29.1.3
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1c4457e00facac03ce1d75f7b6777a7a851e5c41
 runc version: v1.3.4-0-gd6d73eb8
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.6.87.1-microsoft-standard-WSL2
 Operating System: Ubuntu 22.04.5 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 20
 Total Memory: 15.45GiB
 Name: BASARA121
 ID: 0c66311a-0dd1-4229-961b-6385672484bf
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false
 Firewall Backend: iptables

Anything else?

No response

Activity

  1. ndeloof commented on Dec 15, 2025

    @ndeloof
    Contributor

    This panic is triggered by some incorrect pull progress event to report larger downloaded data vs expected total, anyway Compose should not trust API data and break in such an ugly way, so let's introduce some fool-proof checks in the code

  2. paskozdilar commented on Dec 15, 2025

    @paskozdilar

    Might be related to moby/moby#51718, reported by the same person.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions