memory allocation of 1070071572 bytes failed
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- linux, rust
- Domain
- networking
Research direction
The crash is reported in the relay and rendezvous entry points, so start with src/relay_server.rs (tcp :21117) and src/rendezvous_server.rs (extra tcp :21115). Reproduce by connecting with telnet to each port on an aarch64 Linux build and watch for the roughly 1 GB allocation failure. Find where a buffer is sized from data read off the socket. Done means the server stays up on a bare telnet connection, with a regression test that reproduces it. Maintainer direction is still needed.
Written by the indexing model from the issue text.
Description
Hello.
The program starts without console errors (when launched manually rather than via a script; if run via a script, it outputs nothing to the screen—I would need to check the logs, though I doubt the output differs). However, upon attempting to connect via Telnet to port 21115 or 21117, the console displays a "memory allocation of 1070071572 bytes failed" error, and either hbbr or hbbs crashes, depending on the port used.
I am using a Keenetic Peak router with EntWare installed. I am running KeeneticOS 5.1.6 (I noticed the 5.1.7 update while writing this post, so I updated and tested it again).
I also tested this after running # opkg update && opkg upgrade, but the situation remained unchanged.
I tried installing the package via opkg install rustdesk-server, and I also tried downloading https://github.com/rustdesk/rustdesk-server/releases/download/1.1.16/rustdesk-server-linux-arm64v8.zip, extracting it, and running it. The result was the same in both cases—exactly as described above. When launched, the following information is displayed:
./hbbr
[2026-10-09 08:40:50.107668 +00:00] INFO [src/relay_server.rs:61] #blacklist(blacklist.txt): 0
[2026-10-09 08:40:50.109795 +00:00] INFO [src/relay_server.rs:76] #blocklist(blocklist.txt): 0
[2026-10-09 08:40:50.109816 +00:00] INFO [src/relay_server.rs:82] Listening on tcp :21117
[2026-10-09 08:40:50.109824 +00:00] INFO [src/relay_server.rs:84] Listening on websocket :21119
[2026-10-09 08:40:50.109833 +00:00] INFO [src/relay_server.rs:87] Start
[2026-10-09 08:40:50.109900 +00:00] INFO [src/relay_server.rs:105] DOWNGRADE_THRESHOLD: 0.66
[2026-10-09 08:40:50.109916 +00:00] INFO [src/relay_server.rs:115] DOWNGRADE_START_CHECK: 1800s
[2026-10-09 08:40:50.109924 +00:00] INFO [src/relay_server.rs:125] LIMIT_SPEED: 32Mb/s
[2026-10-09 08:40:50.109933 +00:00] INFO [src/relay_server.rs:136] TOTAL_BANDWIDTH: 1024Mb/s
[2026-10-09 08:40:50.109941 +00:00] INFO [src/relay_server.rs:146] SINGLE_BANDWIDTH: 128Mb/s
./hbbs
[2026-10-09 08:41:08.973051 +00:00] INFO [src/common.rs:121] Private key comes from id_ed25519
[2026-10-09 08:41:08.973181 +00:00] INFO [src/rendezvous_server.rs:1243] Key: хххххххххххххххххх
[2026-10-09 08:41:08.973236 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
[2026-10-09 08:41:08.976774 +00:00] INFO [src/rendezvous_server.rs:107] serial=0
[2026-10-09 08:41:08.976816 +00:00] INFO [src/common.rs:45] rendezvous-servers=[]
[2026-10-09 08:41:08.976835 +00:00] INFO [src/rendezvous_server.rs:109] Listening on tcp/udp :21116
[2026-10-09 08:41:08.976842 +00:00] INFO [src/rendezvous_server.rs:110] Listening on tcp :21115, extra port for NAT test
[2026-10-09 08:41:08.976849 +00:00] INFO [src/rendezvous_server.rs:111] Listening on websocket :21118
[2026-10-09 08:41:08.976943 +00:00] INFO [src/rendezvous_server.rs:146] mask: None
[2026-10-09 08:41:08.976952 +00:00] INFO [src/rendezvous_server.rs:147] local-ip: ""
[2026-10-09 08:41:08.976982 +00:00] INFO [src/common.rs:45] relay-servers=[]
[2026-10-09 08:41:08.977057 +00:00] INFO [src/rendezvous_server.rs:161] ALWAYS_USE_RELAY=N
[2026-10-09 08:41:08.977096 +00:00] INFO [src/rendezvous_server.rs:193] Start
opkg info rustdesk-server
Package: rustdesk-server
Version: 1.1.15-1
Depends: libc, libssp, librt, libpthread
Provides: rustdesk-server-any
Status: unknown ok not-installed
Section: utilities
Architecture: aarch64-3.10
Size: 3972922
Filename: rustdesk-server_1.1.15-1_aarch64-3.10.ipk
Description: RustDesk Server Program.
What am I doing wrong?
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.7k
- Avg merge
- 11d 3h
- Merged PRs (30d)
- 2
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
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 rustdesk/rustdesk-server
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
rustdesk/rustdesk-server#711 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rustdesk/rustdesk-server#708 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
rustdesk/rustdesk-server#709 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
rustdesk/rustdesk-server#704 · 1 comment ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
rustdesk/rustdesk-server#701 · 1 comment ·
All issues in rustdesk/rustdesk-server
Similar issues
-
documentation P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug good first issue priority:high
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Konfirm-xyz/konfirm-contracts#163 ·
Maintainers usually reply within 1 day
-
area:gc-repack-output bug factory:dogfood factory:triaged priority:p3 type:bug type:ux
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gitbutlerapp/grit#1161 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
feature performance
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
lance-format/lance#10137 ·
Maintainers usually reply within 2 days