Skip to content

fix(report-converter): parse full ASAN reports including alloc/free traces - #5223

Open
UOWISSS wants to merge 1 commit into
Ericsson:masterfrom
UOWISSS:fix-issue-3639
Open

UOWISSS wants to merge 1 commit into
Ericsson:masterfrom
UOWISSS:fix-issue-3639

Conversation

@UOWISSS

@UOWISSS UOWISSS commented Nov 27, 2026

Copy link
Copy Markdown

Summary

Fixes #3639

Previously, the ASAN parser in report-converter only extracted the crash stack trace line by line, dropping the surrounding memory context and event history (such as freed by thread and previously allocated by thread stack frames).

Changes

  • Updated parse_sanitizer_message in tools/report-converter/codechecker_report_converter/analyzers/sanitizers/address/parser.py to capture distinct trace sections:
    • Allocation traces (allocated by thread)
    • Deallocation traces (freed by thread)
    • Crash point events
  • Reconstructed the diagnostic execution path in chronological order: allocation $\rightarrow$ free $\rightarrow$ crash.
  • Retained full multi-stack notes in the diagnostic metadata (notes).
  • Updated unit test reference data (asan.plist) to reflect the complete execution path and memory events.

Verification

  • Ran ASAN parser unit tests (test_asan_parser.py): passed.
  • Checked code style and quality via pycodestyle and pylint (10.00/10).
  • Verified diff whitespace with git diff --check.

…races

Fixes Ericsson#3639

Signed-off-by: Simoncsik András <simiandris08@gmail.com>
@UOWISSS
UOWISSS requested a review from bruntib as a code owner November 27, 2026 14:53
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.

(report-converter ASAN) Important information missing from the reports

1 participant