WebAssembly / WebAssembly/binaryen

Names section on the side

Aperta
#4,841 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
WebAssembly
Stelle
8.6k
Fork
885
Merge medio
1g 19h
PR unite (30g)
69

Descrizione

Right now we have --symbolmap which emits a "symbol map" of indexes to function names. People normally run that, then strip the names and ship that binary. Then if a crash happens the function indexes in the crash can be used to reconstruct a full stack trace with names.

Another option is to save the wasm with DWARF and strip the DWARF from the shipping binary.

In a meeting just now some more ideas were raised by @dschuff and @tlively , documenting them here so we don't forget:

  • We could store the entire wasm binary with the names section on the side. Instead of --symbolmap, just saving the original binary is simpler, and it would contain the full names section - not just functions. That is a little similar to DWARF, but using the names section.
  • The emsymbolizer tool in emscripten could be improved to work on such files.
  • The emsymbolizer tool could run like c++filt and find all symbol-name-looking things and replace them in a given input string. That would allow more automatic reconstruction of stack traces.

Guida per i contributori

Apri la 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.

Direzione di ricerca

Inizia dall’entry point --symbolmap e dallo strumento emsymbolizer menzionato nell’issue. Determina se il lavoro debba supportare file wasm sidecar, la sostituzione dei nomi dei simboli nelle stringhe di input o entrambe le opzioni, e chiarisci il formato e il comportamento desiderati. Il lavoro completato deve includere un ambito concordato, un’implementazione e test per il workflow selezionato.

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

Valutazione

Stack tecnologico
wasm
Ambito
compilers, devtools
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.