memory allocation of 1070071572 bytes failed

Aperta
#712 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jahvari ci sta già lavorando.

Dal 20/10/2026.

  • #11 di @jahvari — integrata
  • #726 di @jahvari — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, rust
Ambito
networking

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

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?

Lingua principale
Rust
Stelle
10.6k
Fork
2.7k
Merge medio
32m
PR unite (30g)
1

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rustdesk/rustdesk-server

Tutte le issue di rustdesk/rustdesk-server

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.