[lldb-dev] [Bug 49269] New: Need to add support for DW_TAG base type 'long double'

via lldb-dev lldb-dev at lists.llvm.org
Fri Feb 19 08:43:20 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49269

            Bug ID: 49269
           Summary: Need to add support for DW_TAG base type 'long double'
           Product: lldb
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: bartsmink at gmail.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

Hi,

I like the lldb idea and have used it a lot on linux and MacOs, but never got
it running on Windows. But today I tried again in MinGW64.

lldb does not recognise the tty of mingw. The (lldb) command is not printed
before entering a command, but after. I talked with MinGW developers on this
and by setting MSYS=enable_pcon the program worked properly.

Debugging a program the following error occurred while printing a backtrace:

(lldb) bt
error: need to add support for DW_TAG_base_type 'long double' encoded with
DW_ATE = 0x4, bit_size = 128
error: need to add support for DW_TAG_base_type 'long double' encoded with
DW_ATE = 0x4, bit_size = 128
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: C:\msys64\mingw64\bin\lldb.exe 3T.exe
1.      HandleCommand(command = "bt")
2.      HandleCommand(command = "thread backtrace")
 #0 0x00007ffdb42cc4a0 (C:\msys64\mingw64\bin\libclang-cpp.dll+0x28c4a0)
 #1 0x00007ffdb44a294c (C:\msys64\mingw64\bin\libclang-cpp.dll+0x46294c)
 #2 0x00007ffdb42603dd (C:\msys64\mingw64\bin\libclang-cpp.dll+0x2203dd)
 #3 0x00007ffdb4252950 (C:\msys64\mingw64\bin\libclang-cpp.dll+0x212950)
 #4 0x00007ffdd67d25f1 (C:\msys64\mingw64\bin\liblldb.dll+0x7b25f1)
 #5 0x00007ffdd6441f6b (C:\msys64\mingw64\bin\liblldb.dll+0x421f6b)
 #6 0x00007ffdd6776241 (C:\msys64\mingw64\bin\liblldb.dll+0x756241)
 #7 0x00007ffdd67826ea (C:\msys64\mingw64\bin\liblldb.dll+0x7626ea)
 #8 0x00007ffdd675b556 (C:\msys64\mingw64\bin\liblldb.dll+0x73b556)
 #9 0x00007ffdd675bad5 (C:\msys64\mingw64\bin\liblldb.dll+0x73bad5)
#10 0x00007ffdd675be4d (C:\msys64\mingw64\bin\liblldb.dll+0x73be4d)
#11 0x00007ffdd675bfb5 (C:\msys64\mingw64\bin\liblldb.dll+0x73bfb5)
#12 0x00007ffdd67835b6 (C:\msys64\mingw64\bin\liblldb.dll+0x7635b6)
#13 0x00007ffdd6784b2e (C:\msys64\mingw64\bin\liblldb.dll+0x764b2e)
#14 0x00007ffdd6785764 (C:\msys64\mingw64\bin\liblldb.dll+0x765764)
#15 0x00007ffdd6785ca8 (C:\msys64\mingw64\bin\liblldb.dll+0x765ca8)
#16 0x00007ffdd675a629 (C:\msys64\mingw64\bin\liblldb.dll+0x73a629)
#17 0x00007ffdd646200b (C:\msys64\mingw64\bin\liblldb.dll+0x44200b)
#18 0x00007ffdd646278a (C:\msys64\mingw64\bin\liblldb.dll+0x44278a)
#19 0x00007ffdd6783e89 (C:\msys64\mingw64\bin\liblldb.dll+0x763e89)
#20 0x00007ffdd6784b2e (C:\msys64\mingw64\bin\liblldb.dll+0x764b2e)
#21 0x00007ffdd6785764 (C:\msys64\mingw64\bin\liblldb.dll+0x765764)
#22 0x00007ffdd6785ca8 (C:\msys64\mingw64\bin\liblldb.dll+0x765ca8)
#23 0x00007ffdd675a629 (C:\msys64\mingw64\bin\liblldb.dll+0x73a629)
#24 0x00007ffdd646200b (C:\msys64\mingw64\bin\liblldb.dll+0x44200b)
#25 0x00007ffdd646278a (C:\msys64\mingw64\bin\liblldb.dll+0x44278a)
#26 0x00007ffdd6783e89 (C:\msys64\mingw64\bin\liblldb.dll+0x763e89)
#27 0x00007ffdd6784b2e (C:\msys64\mingw64\bin\liblldb.dll+0x764b2e)
#28 0x00007ffdd6785764 (C:\msys64\mingw64\bin\liblldb.dll+0x765764)
#29 0x00007ffdd6785ca8 (C:\msys64\mingw64\bin\liblldb.dll+0x765ca8)
#30 0x00007ffdd675a629 (C:\msys64\mingw64\bin\liblldb.dll+0x73a629)
#31 0x00007ffdd646200b (C:\msys64\mingw64\bin\liblldb.dll+0x44200b)
#32 0x00007ffdd646274a (C:\msys64\mingw64\bin\liblldb.dll+0x44274a)
#33 0x00007ffdd6784fe3 (C:\msys64\mingw64\bin\liblldb.dll+0x764fe3)
#34 0x00007ffdd6785764 (C:\msys64\mingw64\bin\liblldb.dll+0x765764)
#35 0x00007ffdd6785ca8 (C:\msys64\mingw64\bin\liblldb.dll+0x765ca8)
#36 0x00007ffdd675a629 (C:\msys64\mingw64\bin\liblldb.dll+0x73a629)
#37 0x00007ffdd646200b (C:\msys64\mingw64\bin\liblldb.dll+0x44200b)
#38 0x00007ffdd646278a (C:\msys64\mingw64\bin\liblldb.dll+0x44278a)
#39 0x00007ffdd6783e89 (C:\msys64\mingw64\bin\liblldb.dll+0x763e89)
#40 0x00007ffdd6784b2e (C:\msys64\mingw64\bin\liblldb.dll+0x764b2e)
#41 0x00007ffdd6785764 (C:\msys64\mingw64\bin\liblldb.dll+0x765764)
#42 0x00007ffdd6785ca8 (C:\msys64\mingw64\bin\liblldb.dll+0x765ca8)
#43 0x00007ffdd675a629 (C:\msys64\mingw64\bin\liblldb.dll+0x73a629)
#44 0x00007ffdd646200b (C:\msys64\mingw64\bin\liblldb.dll+0x44200b)
#45 0x00007ffdd646278a (C:\msys64\mingw64\bin\liblldb.dll+0x44278a)
#46 0x00007ffdd6776220 (C:\msys64\mingw64\bin\liblldb.dll+0x756220)
#47 0x00007ffdd67826ea (C:\msys64\mingw64\bin\liblldb.dll+0x7626ea)
#48 0x00007ffdd675b556 (C:\msys64\mingw64\bin\liblldb.dll+0x73b556)
#49 0x00007ffdd675bad5 (C:\msys64\mingw64\bin\liblldb.dll+0x73bad5)
#50 0x00007ffdd675be4d (C:\msys64\mingw64\bin\liblldb.dll+0x73be4d)
#51 0x00007ffdd6756a65 (C:\msys64\mingw64\bin\liblldb.dll+0x736a65)
#52 0x00007ffdd6461d72 (C:\msys64\mingw64\bin\liblldb.dll+0x441d72)
#53 0x00007ffdd6462bba (C:\msys64\mingw64\bin\liblldb.dll+0x442bba)
#54 0x00007ffdd63b2e95 (C:\msys64\mingw64\bin\liblldb.dll+0x392e95)
#55 0x00007ffdd639c1cf (C:\msys64\mingw64\bin\liblldb.dll+0x37c1cf)
#56 0x00007ffdd639c5f2 (C:\msys64\mingw64\bin\liblldb.dll+0x37c5f2)
#57 0x00007ffdd636c755 (C:\msys64\mingw64\bin\liblldb.dll+0x34c755)
#58 0x00007ffdd636b609 (C:\msys64\mingw64\bin\liblldb.dll+0x34b609)
#59 0x00007ffdd636b609 (C:\msys64\mingw64\bin\liblldb.dll+0x34b609)
#60 0x00007ffdd636aae0 (C:\msys64\mingw64\bin\liblldb.dll+0x34aae0)
#61 0x00007ffdd64b707b (C:\msys64\mingw64\bin\liblldb.dll+0x49707b)
#62 0x00007ffdd64b71c9 (C:\msys64\mingw64\bin\liblldb.dll+0x4971c9)
#63 0x00007ffdd64bc023 (C:\msys64\mingw64\bin\liblldb.dll+0x49c023)
#64 0x00007ffdd64e2296 (C:\msys64\mingw64\bin\liblldb.dll+0x4c2296)
#65 0x00007ffdd699f0a7 (C:\msys64\mingw64\bin\liblldb.dll+0x97f0a7)
#66 0x00007ffdd69b5685 (C:\msys64\mingw64\bin\liblldb.dll+0x995685)
#67 0x00007ffdd6417cb8 (C:\msys64\mingw64\bin\liblldb.dll+0x3f7cb8)
#68 0x00007ffdd6413eff (C:\msys64\mingw64\bin\liblldb.dll+0x3f3eff)
#69 0x00007ffdd641a175 (C:\msys64\mingw64\bin\liblldb.dll+0x3fa175)
#70 0x00007ffdd641697a (C:\msys64\mingw64\bin\liblldb.dll+0x3f697a)
#71 0x00007ffdd6413eff (C:\msys64\mingw64\bin\liblldb.dll+0x3f3eff)
#72 0x00007ffdd6414e36 (C:\msys64\mingw64\bin\liblldb.dll+0x3f4e36)
#73 0x00007ffdd6372209 (C:\msys64\mingw64\bin\liblldb.dll+0x352209)
#74 0x00007ffdd635418a (C:\msys64\mingw64\bin\liblldb.dll+0x33418a)
#75 0x00007ffdd6406dab (C:\msys64\mingw64\bin\liblldb.dll+0x3e6dab)
#76 0x00007ffdd609ac1e (C:\msys64\mingw64\bin\liblldb.dll+0x7ac1e)
#77 0x00007ff6d57f3139 (C:\msys64\mingw64\bin\lldb.exe+0x3139)
#78 0x00007ff6d57fd7e4 (C:\msys64\mingw64\bin\lldb.exe+0xd7e4)
#79 0x00007ff6d57f13c1 (C:\msys64\mingw64\bin\lldb.exe+0x13c1)
#80 0x00007ff6d57f14f6 (C:\msys64\mingw64\bin\lldb.exe+0x14f6)
#81 0x00007ffe17787bd4 (C:\WINDOWS\System32\KERNEL32.DLL+0x17bd4)
#82 0x00007ffe17b8ce51 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6ce51)
Segmentation fault

Is this not iplemented yet?

Also when debugging std::cout messages were not printed in lldb, but they were
in gdb. Plus when an exception occurred lldb was paused without showing
anything of the exception, only after continuing with the c command. 

I think there is still a bit to be done on Windows before lldb is ready for
use. Also outside mingw I get strange Python errors in the precompiled lldb
11.0.1 version, like missing python36.dll, which was not included, and when
compiling from source the stack trace only shows one frame, while gdb shows all
26.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20210219/2bd7b61a/attachment.html>


More information about the lldb-dev mailing list