bytecodealliance / bytecodealliance/rustix
Make it easier to debug path parsing failures
- Lingua principale
- Rust
- Stelle
- 2.1k
- Fork
- 294
- Merge medio
- 6g 22h
- PR unite (30g)
- 4
Descrizione
I have a non-trivial bit of code using `rustix` that is returning `EINVAL`. I thought it was an OS error, but it turns out that I was getting https://github.com/rust-lang/rust/issues/116523. However it was being masked by the fact that `Arg` impl returns `EINVAL` if there is a `\0` in the path bytes. It would be nice if `rustix` returned an error code less plausible than `EINVAL` when a path failure like this happens.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando l’implementazione di `Arg` che converte i byte del percorso contenenti `\0` in `EINVAL`, quindi esamina il comportamento correlato di gestione degli errori in rustix. L’issue è completa quando questo errore del percorso non appare più come un plausibile `EINVAL` del sistema operativo, mentre l’errore sottostante segnalato rimane distinguibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100