Bug 580489 - failed to handle .debug_rnglists section sometimes
Summary: failed to handle .debug_rnglists section sometimes
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-01 21:59 EDT by wenyan xin CLA
Modified: 2022-08-05 13:22 EDT (History)
1 user (show)

See Also:


Attachments
test case (32.20 KB, application/octet-stream)
2022-08-01 21:59 EDT, wenyan xin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description wenyan xin CLA 2022-08-01 21:59:29 EDT
Created attachment 288654 [details]
test case

On native Ubuntu 22.04, the attached test case will fail to stop in main function when built with DWARF 5 using LLVM 14.

If we used DWARF 4 using LLVM 14, it work fine.

It also work fine with GDB, when built with DWARF 5 using LLVM 14.

-----------------------------------------------------------
eclipse-cpp-2022-06-R-linux-gtk-x86_64.tar.gz and TCF.

pek-ide-u22: agent$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy


pek-ide-u22: c$ clang --version
Ubuntu clang version 14.0.0-1ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Comment 1 wenyan xin CLA 2022-08-01 22:12:12 EDT
"Invalid .debug_rnglists section" error reported from read_dwarf_addr_range () function in tcf/services/dwarfcache.c file.
Comment 2 Eugene Tarassov CLA 2022-08-05 13:22:36 EDT
Fixed.
Thanks!