<div dir="ltr">So my double prompt seems to be fixed, but then I reverted your change and noticed it was still fixed.  So I looked through the history a little bit, and it appears to have been fixed by r234517.  I still don't see the output of "bt" printed when it's run from my inside my .lldbinit file.  But since r234517 fixed my double prompt, I must be having the same problem described in the commit message, which is that I don't have an IOHandler on my process.  So maybe addressing that will fix my backtrace as well.<br><div><br></div><div>Either way, if anyone else tries this patch and also notices that the problem is fixed, please also check whether it is fixed by 234517 without this patch so that we are sure what exactly is causing people's problems to go away.</div></div><br><div class="gmail_quote">On Thu, Apr 9, 2015 at 4:05 PM Greg Clayton <<a href="mailto:gclayton@apple.com">gclayton@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try this one out and let me know if anything improves?<br>
<br>
<br>
<br>
<br>
> On Apr 9, 2015, at 11:23 AM, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:<br>
><br>
> If you need a VM or something let me know I can proabbly make something that you can remote into and is already properly set up and ready to build.<br>
><br>
> On Thu, Apr 9, 2015 at 11:02 AM Greg Clayton <<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>> wrote:<br>
> Thanks everyone for trying this out. I will modify this patch and try again soon.<br>
><br>
> > On Apr 9, 2015, at 7:56 AM, Pavel Labath <<a href="mailto:labath@google.com" target="_blank">labath@google.com</a>> wrote:<br>
> ><br>
> > The situation is even worse on Linux, i'm afraid. Whereas I was<br>
> > getting no wrong prompts before (at least when debugging locally), now<br>
> > the prompt appears in the wrong place in about 10% of the cases.<br>
> ><br>
> > pl<br>
> ><br>
> > On 9 April 2015 at 15:19, Ed Maste <<a href="mailto:emaste@freebsd.org" target="_blank">emaste@freebsd.org</a>> wrote:<br>
> >> On 8 April 2015 at 16:35, Greg Clayton <<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>> wrote:<br>
> >>><br>
> >>> This one removes the m_iohandler_sync completely and coordinates async IO with the IOHandlers. Let me know if this works any better for freebsd, linux or windows.<br>
> >><br>
> >> Problem persists with this version on FreeBSD, unfortunately:<br>
> >><br>
> >> ...<br>
> >>   165<br>
> >>   166          (void)setlocale(LC_ALL, "");<br>
> >> (lldb) step<br>
> >> (lldb) Process 77191 stopped<br>
> >> * thread #1: tid = 100853, 0x00000000004023fa ls`main(argc=1,<br>
> >> argv=0x00007fffffffe588) + 42 at ls.c:166, stop reason = step in<br>
> >>    frame #0: 0x00000000004023fa ls`main(argc=1,<br>
> >> argv=0x00007fffffffe588) + 42 at ls.c:166<br>
> >>   163          char *bp = tcapbuf;<br>
> >>   164  #endif<br>
> >>   165<br>
> >> -> 166          (void)setlocale(LC_ALL, "");<br>
> >>   167<br>
> >>   168          /* Terminal defaults to -Cq, non-terminal defaults to -1. */<br>
> >>   169          if (isatty(STDOUT_FILENO)) {<br>
> >> step<br>
> >> ...<br>
> >> _______________________________________________<br>
> >> lldb-dev mailing list<br>
> >> <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
> >> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
><br>
><br>
> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote></div>