Skip to content

Addr2line enhance 3#4975

Merged
lum1n0us merged 1 commit into
bytecodealliance:mainfrom
TianlongLiang:addr2line_enhance_3
Jul 16, 2026
Merged

Addr2line enhance 3#4975
lum1n0us merged 1 commit into
bytecodealliance:mainfrom
TianlongLiang:addr2line_enhance_3

Conversation

@TianlongLiang

Copy link
Copy Markdown
Contributor

No description provided.

New self-contained sample demonstrating the full production-debug
workflow for optimized WASM:

- 4-step build pipeline (clang -Oz -g -flto, wasm-opt -Oz -g, llvm-strip
  --strip-all, wamrc) producing prod.wasm + prod.aot + debug.wasm
  companion artifacts.
- Two test apps (oob, stackoverflow) split into multi-file C sources
  to exercise cross-TU LTO inlining.
- USE_FAST_INTERP CMake option to build iwasm in classic or fast-interp
  mode for testing.
- symbolicate.sh: end-to-end driver that runs iwasm on the prod binary,
  captures the call stack, and resolves it via addr2line.py + the
  debug companion. Auto-detects classic vs fast-interp from the iwasm
  binary.
- verify.sh: per-(app, mode) assertion that the symbolicated output
  contains the expected source files. Used by CI.

Depends on the addr2line.py refactor (--mode flag is invoked from
symbolicate.sh).

@lum1n0us lum1n0us left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Same as #4974 . Depends on upgraded wasi-sdk in #4977

@lum1n0us
lum1n0us merged commit bda2e0a into bytecodealliance:main Jul 16, 2026
497 of 501 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.

2 participants