Skip to content

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

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
m0g3r:fix/14100-empty-component-debug-info
Aug 13, 2026
Merged

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

Conversation

@m0g3r

@m0g3r m0g3r commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

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

@fitzgen fitzgen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fitzgen
fitzgen added this pull request to the merge queue Aug 13, 2026
Merged via the queue into bytecodealliance:main with commit a1f7d4c Aug 13, 2026
53 checks passed
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

2 participants