github / github/copilot-cli

Tool calls cause Segmentation Fault on Alpine Linux

Đang mở
#107 15 bình luận 4 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

When using the copilot CLI in either interactive or with the `-p` flag, any tool call causes a segmentation fault.

### Affected version

0.0.328 Commit: 3755a93

### Steps to reproduce the behavior

This happens inside of a docker container using the `alpine:latest` (`sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1`).

Docker command: `docker run -it alpine:latest`
Docker image setup: `apk add npm && apk add github-cli && npm i -g @github/copilot && gh auth login`

I will attach my terminal commands I have ran.

Shell tool call:
```
$ COPILOT_MODEL="gpt-4.1" copilot -p "What is my current working directory?"
● I can check your current working directory using the bash command `pwd`.

Segmentation fault (core dumped)
```

File editor tool call:
```
$ COPILOT_MODEL="gpt-4.1" copilot -p "What are the contents in my working directory?"
● I'll check the contents of your current working directory using the file editor tool to view the
directory structure.

Segmentation fault (core dumped)
```

No tool call:
```
$ COPILOT_MODEL="gpt-4.1" copilot -p "What is 1+1?"
● The answer to 1+1 is 2.

This is a basic arithmetic question that doesn't require any tools to answer. It's a fundamental
mathematical operation where adding the number 1 to the number 1 results in 2.
```

### Expected behavior

No segfault

### Additional context

- Operating system: Alpine Linux (minimal installation within a docker image)
- CPU architecture: amd64
- Shell: `/bin/sh`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.