microsoft / microsoft/vscode-linux-build-agent
vscode server node fetch function broken after patchelf
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 44
- Forks
- 45
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 2
Description
https://code.visualstudio.com/docs/remote/faq#_can-i-run-vs-code-server-on-older-linux-distributions
- patchelf 0.18.0
- crosstool-ng config: x86_64-gcc-8.5.0-glibc-2.28.config
After pack patchelf and built glibc(new toolchain) into a docker image/container(based on centos:6.7), and export three VSCODE_SERVER_* env, vscode attach container successfully, but all fetch operation exec failed:
Error: getaddrinfo ENOTFOUND
My test Dockerfile is: https://github.com/listenerri/centos-6.7-vscode
It has been confirmed that this issue is caused by patchelf modifying the node executable program. I conducted the same test in the container of ubuntu:24.04, and the problem can be reproduced.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked test Dockerfile and reproduce the failed fetch in the CentOS 6.7 container and Ubuntu 24.04 container. Read the patchelf 0.18.0 release and x86_64-gcc-8.5.0-glibc-2.28 configuration linked in the issue, then compare the patched Node executable with an unmodified one. Done means the VS Code server's fetch operations no longer fail with getaddrinfo ENOTFOUND.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, linux, node.js
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100