PTY spawn fails on Ubuntu 22.04: bun-pty requires GLIBC 2.39, system has 2.35
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- bun, typescript
- Domain
- cli
Research direction
Start by reproducing the reported ldd failure for [email protected] and inspect the opencode-pty entry point that loads librust_pty.so. Compare the required PTY operations with Bun 1.3.5's native PTY API. Done means PTY sessions spawn successfully on Ubuntu 22.04 with GLIBC 2.35.
Written by the indexing model from the issue text.
Description
The opencode-pty plugin fails to spawn PTY sessions on Ubuntu 22.04 LTS with the error:
TypeError: undefined is not an object (evaluating 'lib.symbols')
The underlying [email protected] dependency ships a prebuilt librust_pty.so that was compiled against GLIBC 2.39, which is not available on Ubuntu 22.04 (ships with GLIBC 2.35).
$ ldd ~/.bun/install/cache/[email protected]@@@1/rust-pty/target/release/librust_pty.so
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by librust_pty.so)
Environment
| Component | Version |
|---|---|
| OS | Ubuntu 22.04.5 LTS (Jammy) |
| Kernel | 5.19.0-1022-gcp |
| Bun | 1.3.5 |
| Node | v22.21.1 |
| GLIBC | 2.35 |
| opencode-pty | 0.1.0 |
| bun-pty | 0.4.2 |
I guess this is from bun-pty, also wdyt about moving to bun native pty, i'm not really sure if all the api is there yet,
https://bun.com/blog/bun-v1.3.5
- Dominant language
- TypeScript
- Stars
- 594
- Forks
- 61
- Avg merge
- 13h 20m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from shekohex/opencode-pty
-
[Bug]: exit notification delivery failures are silently swallowed — agent never wakes, no diagnosticOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
shekohex/opencode-pty#54 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
shekohex/opencode-pty#48 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
shekohex/opencode-pty#67 · 2 comments · 2 reactions ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 56/100
shekohex/opencode-pty#66 ·
-
[Feature]: Setting to have the web ui running even without /pty-... commandPossibly taken @kumar-shivang claimed this 17 days ago. Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 65/100
shekohex/opencode-pty#60 · 3 comments ·
All issues in shekohex/opencode-pty
Similar issues
-
bot:ai-assisted status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
midnightntwrk/midnight-js#1424 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mksglu/context-mode#1268 ·
Maintainers usually reply within 5 days
-
[bug] Setup fails with "Cannot find matching keyid" when an older Node's corepack is on PATHPossibly taken @EyalPoly claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
MystenLabs/MemWal#1124 · 2 comments ·
Maintainers usually reply within 1 day
-
Edit:Opencheck:failed streams:edit
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
iptv-org/iptv#54352 · 1 comment ·
Maintainers usually reply within 1 day