Skip to content

Fix panic compiling an empty component with debug info - #14130

Open
m0g3r wants to merge 1 commit into
bytecodealliance:mainfrom
m0g3r:fix/14100-empty-component-debug-info
Open

Fix panic compiling an empty component with debug info#14130
m0g3r wants to merge 1 commit into
bytecodealliance:mainfrom
m0g3r:fix/14100-empty-component-debug-info

Conversation

@m0g3r

@m0g3r m0g3r commented Aug 12, 2026

Copy link
Copy Markdown

Fixes #14100.

generate_simulated_dwarf unwrapped the first core-module translation to name its compilation unit, but a component with no core modules has no translations, so wasmtime compile -D debug-info=y panicked on a valid (component) input. Return early instead: with no translations there are no functions to describe.

generate_simulated_dwarf unwrapped the first core-module translation to
name its compilation unit, but a component with no core modules has no
translations, so `wasmtime compile -D debug-info=y` panicked on a valid
`(component)` input. Return early instead: with no translations there are
no functions to describe.
@m0g3r
m0g3r requested review from a team as code owners August 12, 2026 22:17
@m0g3r
m0g3r requested review from fitzgen and removed request for a team August 12, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty Component Panics Native DWARF Compilation

1 participant