[lldb-dev] LLDB 4.0.0 crashes on Windows 7

Eli Zaretskii via lldb-dev lldb-dev at lists.llvm.org
Sun Nov 13 08:31:20 PST 2016


I installed a 32-bit Windows build of LLVM 4.0.0 from this page:


where it is identified as "based on SVN r284979 (24 October 2016)".
(I actually wanted only LLDB, but there doesn't seem to be a separate
installer for that.)  The machine where I installed it runs the 64-bit
Windows 7 OS.  The only setting I changed during the installation was
the installation directory: instead of the default under "C:\Program
Files (x86)" I've installed it under d:\usr.

The installation went fine.  After installing, I found that I needed
Python 3.5.x, so I installed this:


The installed Python works correctly.

After all this, lldb crashes when it attempts to start a debuggee.
Specifically, whenever I say "process launch -s" inside the debugger,
it crashes.  (The information about the crash available in the Windows
Event Viewer is at the end of this message.)  The same happens if I
type "lldb PROGRAM" from the Windows cmd.exe prompt.  Until I try to
launch the debuggee, lldb works: I can type the various commands,
including "help" and they produce expected results.

The crash is inside liblldb.dll, and the exception code seems to
indicate that some C runtime library function is called with incorrect
or invalid arguments.

Other programs that came with the installation -- clang, llvm-ar,
llvm-objdump -- seem to work fine and produce the expected results.
In particular, I compiled a small C program with clang.

So the installation seems to work fine, and only lldb crashes.

What am I doing wrong?

Thanks in advance for any help.

Here's the info from the Event Viewer:

Log Name:      Application
Source:        Application Error
Date:          13/11/2016 13:24:58
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      C1050100036.ness.com
Faulting application name: lldb.exe, version:, time stamp: 0x580fd053
Faulting module name: liblldb.dll, version:, time stamp: 0x580fd046
Exception code: 0xc0000417
Fault offset: 0x027295d2
Faulting process id: 0x1564
Faulting application start time: 0x01d23da09025cbd5
Faulting application path: D:\usr\LLVM\bin\lldb.exe
Faulting module path: D:\usr\LLVM\bin\liblldb.dll
Report Id: cef982bb-a993-11e6-a608-001b10002aec
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <TimeCreated SystemTime="2016-11-13T11:24:58.000000000Z" />
    <Security />

More information about the lldb-dev mailing list