[Bug 42908] New: LLDB crash on a pascal procedural type use

Bug ID 42908
Summary LLDB crash on a pascal procedural type use
Product lldb
Version 9.0
Hardware PC
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter argb32@gmail.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

LLDB crashes if a variable of procedural type (methods as well) is examined -
stack trace included.
Reproduced with LLDB v9.0.0 (nightly build) on Windows10 64bit as well as LLDB
v6.0.0 on Linux 64 bit.
On OSX with v360.1.70 it doesn't crash but outputs error "unable to determine
byte size".

Used Free Pascal Compiler v3.0.2.
Compiler options: -gw2 -CroiO -O1
Probably it's not a directly supported compiler but it outputs DWARF2 debug
information and the procedural type is nothing but a pointer.

Sample program: