microsoft / microsoft/WSL

Segmentation fault when using Docker Desktop to call an arm64 Ubuntu image.

Open
#12,834 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft Windows [Version 10.0.19045.5737]

### WSL Version

2.4.13.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

5.15.167.4

### Distro Version

Ubuntu 20.04

### Other Software

Docker Desktop (version 28.0.4)

### Repro Steps

Pull ubuntu:22.04 arm64 image to your pc and run it.
```
docker run --rm -it --platform=linux/arm64 ubuntu:22.04
```

In docker container, install gcc.
```
apt-get update && apt-get install -y gcc
```

Then you will see the following incorrect output:
```
Processing triggers for libc-bin (2.35-0ubuntu3.9) ...
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
dpkg: error processing package libc-bin (--configure):
installed libc-bin package post-installation script subprocess returned error exit status 139
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

### Expected Behavior

Success.

### Actual Behavior

Segmentation fault.

### Diagnostic Logs

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with `docker run --rm -it --platform=linux/arm64 ubuntu:22.04`, then run `apt-get update && apt-get install -y gcc` in the container and review the resulting QEMU and dpkg errors. Done means the package installation completes successfully without a segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, ubuntu
Domain
devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.