-
Notifications
You must be signed in to change notification settings - Fork 367
Open
Description
Summary
Application: bloaty
Issue: Segmentation fault (SEGV) in ReadIndirectAddress function
Detection Tool: AddressSanitizer
Environment
- OS: Ubuntu 20.04.6 LTS
- Compiler: clang version 22
Crash Details
- Command:
./bloaty -d compileunits ./crash_sample1 - Function:
ReadIndirectAddress - Root Cause: READ memory access to zero page (null pointer dereference)
Stack Trace
#0 0x55c43bde7969 in dwarf /src/bloaty/src/dwarf/debug_info.h:259:39
#1 0x55c43bde7969 in ReadIndirectAddress /src/bloaty/src/dwarf/debug_info.h:343:42
#2 0x55c43bde7969 in bloaty::dwarf::AttrValue::ResolveIndirectAddress(bloaty::dwarf::CU const&) const /src/bloaty/src/dwarf/attr.cc:125:10
#3 0x55c43bdee316 in operator() /src/bloaty/src/dwarf/debug_info.cc:233:31
#4 0x55c43bdee316 in ReadAttributes<(lambda at /src/bloaty/src/dwarf/debug_info.cc:203:22)> /src/bloaty/src/dwarf/debug_info.h:363:5
#5 0x55c43bdee316 in bloaty::dwarf::CU::ReadTopLevelDIE(bloaty::dwarf::InfoReader&) /src/bloaty/src/dwarf/debug_info.cc:202:14
#6 0x55c43bded725 in bloaty::dwarf::CU::ReadHeader(...) /src/bloaty/src/dwarf/debug_info.cc:185:3
#7 0x55c43bdecd2f in bloaty::dwarf::CUIter::NextCU(bloaty::dwarf::InfoReader&, bloaty::dwarf::CU*) /src/bloaty/src/dwarf/debug_info.cc:121:7
#8 0x55c43bde06b4 in bloaty::ReadDWARFDebugInfo(...) /src/bloaty/src/dwarf.cc:595:15
#9 0x55c43bddfdea in bloaty::ReadDWARFCompileUnits(...) /src/bloaty/src/dwarf.cc:670:3
#10 0x55c43bd88fab in ReadDWARFCompileUnits /src/bloaty/src/bloaty.h:306:10
#11 0x55c43bd88fab in bloaty::(anonymous namespace)::ElfObjectFile::ProcessFile(...) /src/bloaty/src/elf.cc:1334:11
#12 0x55c43bd461b5 in bloaty::Bloaty::ScanAndRollupFile(...) /src/bloaty/src/bloaty.cc:1799:9
Attachment: