https://bugs.llvm.org/show_bug.cgi?id=42153
Bug ID: 42153
Summary: Aarch64 - FreeBSD 12 : Expression evaluation causes
segfault
Product: lldb
Version: unspecified
Hardware: Other
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev@lists.llvm.org
Reporter: itzura...@gmail.com
CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org
Created attachment 22075
--> https://bugs.llvm.org/attachment.cgi?id=22075&action=edit
Backtrace & Thread List
built the master branch(llvm,lldb,clang) from the git on 4th July 2019 on a
AARCH64 FreeBSD12.0 VM (qemu)
while running sample program with following commands :
// sample
int main(int argc,const char ** argv){
int z = argc + 10;
return z;
}
/////
(LLDB)b main
(LLDB)r
(LLDB)n
(LLDB)p argc
(SEGFAULT)
=============
I faced the same issue on 7.1 release branch also, same segfault/back trace was
generated.So tested latest git in order to see if it was fixed after that.
>From my analysis , this line causes:
(data_sp && ReadGPR() && ReadFPR())
https://github.com/llvm-mirror/lldb/blob/master/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp#L167
m_register_info_up - point to a zero address.only the constructor of the class
calls .reset on this smart pointer.
I have done some debugging and suspect
(RegisterContextPOSIXProcessMonitor_arm64::ReadGPR())
https://github.com/llvm-mirror/lldb/blob/master/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp#L35
or
(RegisterContextPOSIXProcessMonitor_arm64::ReadFPR())
https://github.com/llvm-mirror/lldb/blob/master/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp#L40
might be causing the overwrite. please advise on where to look further, I am
ready to work on a fix.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev