[lldb-dev] [Bug 42153] New: Aarch64 - FreeBSD 12 : Expression evaluation causes segfault

2019-06-06 Thread via lldb-dev
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


[lldb-dev] [Bug 42158] New: after a break the keyboard input is VERY slow

2019-06-06 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=42158

Bug ID: 42158
   Summary: after a break the keyboard input is VERY slow
   Product: lldb
   Version: 8.0
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: normal
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: pquir...@gmail.com
CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org

Whenever a program being debugged stops due to exception (bad memory access)
the debugger keyboard input is very slow (takes 5 seconds per key pressed to
appear).

Running on Windows 10 (Version 10.0.18362.116)
LLVM/8.0

Thanks,

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


[lldb-dev] [Bug 42160] New: unable to load debug symbols (Win10x64)

2019-06-06 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=42160

Bug ID: 42160
   Summary: unable to load debug symbols (Win10x64)
   Product: lldb
   Version: 8.0
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: enhancement
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: pquir...@gmail.com
CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org

I've been unable to get lldb to load debug symbols from clang using -ggdb or
-glldb.  It does generate a .PDB file but doesn't load it.

It will load symbols if compiled with gcc.

I'd prefer to use dwarf if possible.

Windows 10x64
LLVM/8.0 x64

Thanks,

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