Guest abort codes collide with runtime abort reasons

Offen
#2,131 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust
Bereich
api, backend

Rechercherichtung

Start with src/hyperlight_guest_capi/src/error.rs to trace how guest abort codes are encoded, then follow the host-side error handling to see how that value is decoded and exposed. Check the relevant guest and host tests; done means user aborts carry an explicit reason and full u32 code, and the host error exposes the reason without confusing user codes with runtime reasons.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

A-api C-bug S-confirmed

User abort codes and Hyperlight's own reasons share one byte, so hl_abort_with_code(13) looks like out of memory, and codes above 255 are truncated (error.rs). Send an explicit reason tag with a u32 user code, and expose the reason on the host error.

Vorherrschende Sprache
Rust
Sterne
4.8k
Forks
223
Ø Merge
1 T. 18 Std.
Gemergte PRs (30 T.)
65

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus hyperlight-dev/hyperlight

Alle Issues in hyperlight-dev/hyperlight

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.