Addr2line enhance 4#4976
Merged
lum1n0us merged 1 commit intoJul 16, 2026
Merged
Conversation
BenSunWhiteBoard
force-pushed
the
addr2line_enhance_4
branch
from
July 9, 2026 02:17
9a85a2d to
a7243fc
Compare
New test suite at test-tools/addr2line/tests/ exercising addr2line.py against purpose-built C/C++ sources covering the interval-table overlay contract and the tool's other behaviors: - Baseline single-function resolution - Inline expansion (always_inline, 4-level deep chain) - Cross-TU LTO inlining (multi-file recursion + wasm-opt -Oz -g, which exercises both LLVM outermost-name failure modes) - Trap inside loop body (DWARF line-table edge case) - Multi-frame call stack - C++ symbol demangling - AOT mode offset math - fast-interp / --no-addr fallbacks - offset=0 fallback (trap at function entry) - Empty input - Skip-guard invariant on build_subprogram_intervals (test_build_subprogram_intervals_filters_invalid_dies): rejects DW_AT_declaration=true DIEs, low_pc == 0 (wasm-opt DCE ghosts), and high_pc <= low_pc entries at parse time. Layout: test-tools/addr2line/tests/ ├── README.md -- documentation ├── conftest.py -- pytest fixtures (sdk discovery, build, │ run_addr2line invocation, multi-sdk │ parametrization) ├── test_addr2line.py -- 12 test cases ├── pytest.ini -- marker definitions (slow, multi_sdk) ├── run_tests.sh -- thin pytest wrapper ├── apps/ -- 8 purpose-built C/C++ sources └── fixtures/ -- 3 plaintext call-stack inputs Sources under apps/ are NOT copied from samples/; they target specific edge cases independent of sample evolution. Multi-SDK mode (--multi-sdk) parametrizes build-based tests over every detected wasi-sdk under /opt to catch DWARF-encoding differences between clang versions. Depends on the addr2line.py refactor.
BenSunWhiteBoard
force-pushed
the
addr2line_enhance_4
branch
from
July 15, 2026 06:33
a7243fc to
5fe8a00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.