<div dir="ltr"><div><div><div>Hi All,<br><br></div>I would like to start contributing to lldb project and help improve it on linux. I am seeing some strange behaviour that makes lldb appear a little flakey. Some details of my system:<br>
<br></div><div>- Ubuntu 14.04, 64 bit running inside a VM on windows<br></div>- built from top of top of tree with gcc 4.8.2. Issue happens either configure/make or cmake/ninja<br></div><div>- stock lldb-3.4 version shipped with Ubuntu does not exhibit this behaviour<br>
</div><div><br></div>There are two intermittent issues: 1. When I run a program, I see messages that do not belong (indicating the process was stopped) 2. There appears to be a race condition sending text to the console where (lldb) prompt will come out of order making it appear there is no command prompt.<br>
<div><div><br></div><div>shawn@shawn-VirtualBox:~/Projects$ ./lldb.sh<br>(lldb) file a.out<br>Current executable set to 'a.out' (x86_64).<br>(lldb) br se -l 7<br>Breakpoint 1: where = a.out`main + 35 at hello2.cpp:7, address = 0x0000000000400553<br>
(lldb) run<br>Process 2509 launching<br>Process 2509 launched: '/home/shawn/Projects/a.out' (x86_64)<br>Process 2509 stopped<br>* thread #1: tid = 2509, 0x00007f50bd2af2d0, name = 'a.out', stop reason = trace<br>
frame #0: 0x00007f50bd2af2d0<br>-> 0x7f50bd2af2d0: movq %rsp, %rdi<br> 0x7f50bd2af2d3: callq 0x7f50bd2b2a70<br> 0x7f50bd2af2d8: movq %rax, %r12<br> 0x7f50bd2af2db: movl 0x221b17(%rip), %eax<br>Hello world!<br>
Process 2509 stopped<br>* thread #1: tid = 2509, 0x0000000000400553 a.out`main + 35 at hello2.cpp:7, name = 'a.out', stop reason = breakpoint 1.1<br> frame #0: 0x0000000000400553 a.out`main + 35 at hello2.cpp:7<br>
4 {<br> 5 printf("Hello world!\n");<br> 6 <br>-> 7 return 0;<br> 8 }<br>(lldb) cont<br>Process 2509 resuming<br>(lldb) Process 2509 exited with status = 0 (0x00000000) <br>
<br></div><div>My process was:<br></div><div><br>Build simple hello world program. gcc -g hello.cpp<br></div><div>Run lldb:<br></div><div>file a.out<br></div><div>br se -l 7<br></div><div>run<br></div><div>cont<br><br></div>
<div>Notice all the unexpected stuff before it prints "Hello world!", also notice the (lldb) prompt that shows up before the "Process 2509 exited" message.<br><br></div><div>Any suggestions where I can look in the code and start tracking this down?<br>
<br></div><div>Thanks,<br>Shawn Best.<br></div><div>Blueshift Inc.<br></div><div><br></div><div><br><br><br></div></div></div>