[Bug 37496] New: Sometimes LLDB freeze after launching process

Bug ID 37496
Summary Sometimes LLDB freeze after launching process
Product lldb
Version 6.0
Hardware PC
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter kenji.koyanagi@gmail.com
CC llvm-bugs@lists.llvm.org

Created attachment 20313 [details]
patch for 6.0.0

Sometimes(1 of 5-7 times) LLDB freeze at Process::WaitForProcessToStop after
launching process.
I am using lldb for Windows, but I think that it is not a OS-specific issue.

I inserted a log and tried to run LLDB.
Process::SetPublicState called with argument eStateLaunching -> eStateStopped
-> eStateLaunching.
I think there is a problem in the processing order of broadcast events.

It worked fine if consume the event before calling SetPublicState in
But this is not the best solution.

Stella Stamenova changed bug 37496

What Removed Added
Resolution FIXED
CC stilis@microsoft.com

Comment # 1 on bug 37496 from Stella Stamenova

This is fixed in commit rL333781: [lldb, process] Fix occasional hang when
launching a process in LLDB