Build error: `error: string size out of bounds (at offset {offset})`

Offen
#281 10 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

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

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

  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 bytecodealliance/cargo-component

Alle Issues in bytecodealliance/cargo-component

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

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