Build error: `error: string size out of bounds (at offset {offset})`
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- rust, wasm
- Bereich
- build-system, tooling
Rechercherichtung
Beginne damit, cargo component build --package silex-parser zu reproduzieren, und bestätige, ob die generierte Ausgabe trotz des Status ungleich null verwendbar ist. Verfolge den Build-Pfad, der string size out of bounds meldet, und ermittle, warum dieser Fehler nach einem scheinbar erfolgreichen Build ausgegeben wird. Als erledigt gilt die Aufgabe, wenn der gemeldete Fall CI nicht mehr abbricht und die generierte Component-Ausgabe erhalten bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Recently I started experiencing an error when I run cargo comonent build. I'm sorry, but I can't figure out what's causing it or provide a minimal example. I'm hoping you all might have some idea what could be causing it.
I run this command:
cargo component build --package silex-parser
I get this output:
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
error: string size out of bounds (at offset 0x19feacc9)
The interesting thing is, the build appears to have worked -- I get the output file and everything works as expected. The error code that gets generated by the command causes my CICD pipeline and buildscripts to abort, so it's rather annoying.
I've dug through my code for quite a while and couldn't find anything wrong with it. I basically commented out everything and then started adding things back in line by line and at a certain point, the error would start happening. This makes me think it could be related to the size of the project, but I don't know enough about how cargo-component works to guess at whether or not that could be the cause so I thought I'd raise the issue here and see if anyone more familiar with the project has any insights.
- Vorherrschende Sprache
- Rust
- Sterne
- 593
- Forks
- 68
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus bytecodealliance/cargo-component
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 38/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 76/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
bytecodealliance/cargo-component#399 · 2 Kommentare ·
Alle Issues in bytecodealliance/cargo-component
Ähnliche Issues
-
Test connection's password prompt says the password is never saved, also for a keychain profileOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
area: settings bug Haiku review: no-score ui
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
MMFoundation/WallpaperMachine#346 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Make the HTTP server's keep-alive and headers timeouts configurableEvtl. vergeben @mattgodbolt hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
jonathanong/no-mistakes#5490 ·
-
follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag