[llvm-bugs] [Bug 42153] New: Aarch64 - FreeBSD 12 : Expression evaluation causes segfault

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 6 03:03:54 PDT 2019


            Bug ID: 42153
           Summary: Aarch64 - FreeBSD 12 : Expression evaluation causes
           Product: lldb
           Version: unspecified
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: itzurabhi at gmail.com
                CC: jdevlieghere at apple.com, llvm-bugs at 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)p argc



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())


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 




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 on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190606/bed9480a/attachment.html>

More information about the llvm-bugs mailing list