llvm / llvm/llvm-project

[asan] The report is incomplete in LLVM 15.0.4

Open
#197,853 1 comment 0 reactions 0 assignees View on GitHub
compiler-rt:asan
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

I am currently deploying ASan on an embedded device using LLVM 15.0.4, and I have encountered some issues with incomplete reports. I hope someone can help me provide some ideas to continue debugging this issue. And reports like:
```
Command: /usr/local/bin/aaad /usr/local, Time: 20250809-19:38:57.794
==aaad==15437==ERROR: AddressSanitizer: heap-use-after-free on address 0xfffe9369b7d8 at pc 0xffffaaf767a0 bp 0xffff98845cd0 sp 0xffff988454c0
READ of size 1792 at 0xfffe9369b7d8 thread T38 (ACL_MAIN)
##0 0xffffaaf612f8 in __asan_malloc (/lib/libasan.so.1+0x9a2f8)
##1 0xffffaae98980 in VOS_MemAlloc (/lib/libprelib.so+0x11980)
##2 0xffff73fe1e60 in MemAlloc (/usr/local/lib/libaaa_e_bbb.so+0x52e60)
##3 0xffff73fe2364 in MemAlloc (/usr/local/lib/libaaa_e_bbb.so+0x53364)
##4 0xffff73fc3870 in TransALAInfo (/usr/local/lib/libaaa_e_bbb.so+0x34870)
##5 0xffff73fc09cc in DfxFaultALA (/usr/local/lib/libaaa_e_bbb.so+0x319cc)
##6 0xffff73fc0cdc in CriticalFaultALAProc (/usr/local/lib/libaaa_e_bbb.so+0x31cdc)
##7 0xffff73fc0290 in DfxFaultAction (/usr/local/lib/libaaa_e_bbb.so+0x31290)
##8 0xffff72484710 in DfxHeartFaultProc (/usr/local/lib/libfe.so+0x60710)
##9 0xffff7248c060 in DfxFaultProc (/usr/local/lib/libfe.so+0x68060)
##10 0xffff5d025b04 in ReportALAImpl (/usr/local/lib/libddd__pnf.so+0x2a3b04)
##11 0xffff5d025d6c in ReportALA (/usr/local/lib/libddd__pnf.so+0x2a3d6c)
##12 0xffff5d05c708 in FE::ALA::IncALA(unsigned int, unsigned int, unsigned int, char const*, unsigned int, FeErrorInfoReg*) (/usr/local/lib/libddd__pnf.so+0x2da708)
##13 0xffff5d05c964 in FE::ALAManager::IncALA(unsigned int, unsigned int, unsigned int, char const*, unsigned int, FeErrorInfoReg*) (/usr/local/lib/libddd__pnf.so+0x2da964)
##14 0xffff5d07aabc in FE::HeartActionReportALA::Exec(FE::HeartSessionIntf const&) (/usr/local/lib/libddd__pnf.so+0x2f8abc)

Direct leak of 24 byte(s) in 1 object(s) (total 1) allocated from:
##0 0xffffaaf612f8 in __asan_malloc (/lib/libasan.so.1+0x9a2f8)
##1 0xffffaae98980 in VOS_MemAlloc (/lib/libprelib.so+0x11980)
##2 0xffff73fe1e60 in MemAlloc (/usr/local/lib/libaaa_e_bbb.so+0x52e60)
##3 0xffff73fe2364 in MemAlloc (/usr/local/lib/libaaa_e_bbb.so+0x53364)
##4 0xffff73fc3870 in TransALAInfo (/usr/local/lib/libaaa_e_bbb.so+0x34870)
##5 0xffff73fc09cc in DfxFaultALA (/usr/local/lib/libaaa_e_bbb.so+0x319cc)
##6 0xffff73fc0c74 in CriticalFaultALAProc (/usr/local/lib/libaaa_e_bbb.so+0x31c74)
##7 0xffff73fc0290 in DfxFaultAction (/usr/local/lib/libaaa_e_bbb.so+0x31290)
##8 0xffff72484710 in DfxHeartFaultProc (/usr/local/lib/libfe.so+0x60710)
##9 0xffff7248c060 in DfxFaultProc (/usr/local/lib/libfe.so+0x68060)
##10 0xffff5d025b04 in ReportALAImpl (/usr/local/lib/libddd__pnf.so+0x2a3b04)
##11 0xffff5d025d6c in ReportALA (/usr/local/lib/libddd__pnf.so+0x2a3d6c)
##12 0xffff5d05c708 in FE::ALA::IncALA(unsigned int, unsigned int, unsigned int, char const*, unsigned int, FeErrorInfoReg*) (/usr/local/lib/libddd__pnf.so+0x2da708)
##13 0xffff5d05c964 in FE::ALAManager::IncALA(unsigned int, unsigned int, unsigned int, char const*, unsigned int, FeErrorInfoReg*) (/usr/local/lib/libddd__pnf.so+0x2da964)
##14 0xffff5d07aabc in FE::HeartActionReportALA::Exec(FE::HeartSessionIntf const&) (/usr/local/lib/libddd__pnf.so+0x2f8abc)

SUMMARY: UndefinedBehaviorSanitizer: 816 byte(s) leaked in 14 allocation(s).
```
Missing memory information, and memory leak but the report type is heap-use-after-free

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.