<div dir="ltr">Very helpful, thanks Andrew.<div><br></div><div>Jun - seems much more likely this is related to the 32-bit rather than the Ubuntu 13.10 part.  (I am still building the latest lldb on Ubuntu 13.10 right now, but it is a 64-bit version).</div>
<div><br></div><div>I'll eventually need 32-bit working on Ubuntu if lldb goes into the Android AOSP tree and if we still use 32-bit host tools, so I'll have a look at what's up with that.</div><div><br></div>
<div>Any chance you can move to 64 bit in the meantime, Jun?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 31, 2014 at 8:46 AM, Andrew MacPherson <span dir="ltr"><<a href="mailto:andrew.macp@gmail.com" target="_blank">andrew.macp@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi guys,<br><br>I notice that Jun is on 32-bit and I can also confirm that I haven't found it possible to get lldb working under 32-bit Linux. LLDB can't currently be compiled with clang right now due to this issue:<br>


<br><a href="http://llvm.org/bugs/show_bug.cgi?id=18311" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=18311</a><br><br></div>And compiling with gcc (4.8.1 in my case) results in this assertion failure when trying to debug anything:<br>


<br><a href="http://llvm.org/bugs/show_bug.cgi?id=17802" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=17802</a><br><br></div>Hope that helps,<br>Andrew<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jan 31, 2014 at 5:30 PM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Here's what I'm seeing on Ubuntu 12.04 x86_64 (I'll hop over to Ubuntu 13.10 in a moment to see what it shows), using gcc 4.8.2:<div>


<font face="courier new, monospace"><br></font></div><div><div>
Here is my hello.c:</div><div><br></div><div><div><span style="font-family:'courier new',monospace">#include <stdio.h></span><br></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">int main(int argc, char **argv)</font></div>



<div><font face="courier new, monospace">{</font></div><div><font face="courier new, monospace">    printf("Hello, world\n");</font></div><div><font face="courier new, monospace">    return 0;</font></div><div>


<font face="courier new, monospace">}</font></div>
</div></div><div><font face="courier new, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Here is the output from compiling and running lldb:</font></div><div><font face="courier new, monospace"><br>



</font></div><div><div><font face="courier new, monospace">tfiala@tfiala2:~/lldb/samples/hello$ gcc -g -O0 -o hello hello.c</font></div><div><font face="courier new, monospace">tfiala@tfiala2:~/lldb/samples/hello$ ./hello<br>



</font></div><div><font face="courier new, monospace">Hello, world</font></div><div><font face="courier new, monospace"># the following is my top of tree build from lldb as of about 12 hours ago</font></div><div><font face="courier new, monospace">tfiala@tfiala2:~/lldb/samples/hello$ ~/lldb/svn/lgs/build2/Debug+Asserts/bin/lldb</font></div>



<div><font face="courier new, monospace">(lldb) target create ./hello</font></div><div><font face="courier new, monospace">Current executable set to './hello' (x86_64).</font></div><div><font face="courier new, monospace">(lldb) b main</font></div>



<div><font face="courier new, monospace">Breakpoint 1: where = hello`main + 15 at hello.c:5, address = 0x00000000004004df</font></div><div><font face="courier new, monospace">(lldb) r</font></div><div><font face="courier new, monospace">Process 11433 launching</font></div>



<div><font face="courier new, monospace">Process 11433 stopped</font></div><div><font face="courier new, monospace">* thread #1: tid = 11433, 0x00007faad38206b0, name = 'hello', stop reason = trace</font></div><div>



<font face="courier new, monospace">    frame #0: 0x00007faad38206b0</font></div><div><font face="courier new, monospace">-> 0x7faad38206b0:  movq   %rsp, %rdi</font></div><div><font face="courier new, monospace">   0x7faad38206b3:  callq  0x7faad3824010</font></div>



<div><font face="courier new, monospace">   0x7faad38206b8:  movq   %rax, %r12</font></div><div><font face="courier new, monospace">   0x7faad38206bb:  movl   0x2215ff(%rip), %eax</font></div><div><font face="courier new, monospace">(lldb) Process 11433 launched: './hello' (x86_64)</font></div>



<div><font face="courier new, monospace">Process 11433 stopped</font></div><div><font face="courier new, monospace">* thread #1: tid = 11433, 0x00000000004004df hello`main(argc=1, argv=0x00007fffa93f3ba8) + 15 at hello.c:5, name = 'hello', stop reason = breakpoint 1.1</font></div>



<div><font face="courier new, monospace">    frame #0: 0x00000000004004df hello`main(argc=1, argv=0x00007fffa93f3ba8) + 15 at hello.c:5</font></div><div><font face="courier new, monospace">   2   <span style="white-space:pre-wrap">    </span></font></div>



<div><font face="courier new, monospace">   3   <span style="white-space:pre-wrap">    </span>int main(int argc, char **argv)</font></div><div><font face="courier new, monospace">   4   <span style="white-space:pre-wrap">       </span>{</font></div>



<div><font face="courier new, monospace">-> 5   <span style="white-space:pre-wrap">   </span>    printf("Hello, world\n");</font></div><div><font face="courier new, monospace">   6   <span style="white-space:pre-wrap">     </span>    return 0;</font></div>



<div><font face="courier new, monospace">   7   <span style="white-space:pre-wrap">    </span>}</font></div><div><font face="courier new, monospace">(lldb) </font></div></div><div><br></div><div>I'll try it on Ubuntu 13.10 x86_64 next.  That one will be with a stock system + packages for build-essential, libedit-dev, libpython-dev and swig (I think that's it).</div>


<span><font color="#888888">
<div><br></div><div>-Todd</div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 31, 2014 at 8:23 AM, Jun Koi <span dir="ltr"><<a href="mailto:junkoi2004@gmail.com" target="_blank">junkoi2004@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Sat, Feb 1, 2014 at 12:19 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>





</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jun,<div><br></div><div><div>Thanks again for the report.</div><div><br></div><div>
I'm hopping over to Ubuntu 13.10 and will have a look at this.  It would definitely be helpful to know a few things (which I'm going to have to guess about here):</div>


<div>* What compiler are you using?  gcc or clang?</div></div></div></blockquote><div><br></div><div>i am using default CC, which is gcc<br> <br></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr"><div>* What flags did you pass to the compiler when you compiled? Was it a debug build? Was it optimized?</div><div><br></div></div></blockquote><div><br></div></div><div>it is also default compiler option. for example, with helloworld.c program, i simply compiled it with (without Makefile):<br>





<br></div><div>     $ make helloworld<br><br> <br></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>I'll file a bug if I'm able to cause a seg fault.  Yesterday I had a check-in that fixed a seg fault under Linux - not sure if that's something you were hitting.</div>






<div> </div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>I'll post what I see.</div><span><font color="#888888"><div>





<br></div></font></span></div></blockquote><div><br></div></div><div>awesome, please keep us updating!<br><br>thanks,<br></div><div><div><div>Jun<br> <br><br><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">





On Thu, Jan 30, 2014 at 7:00 AM, Jun Koi <span dir="ltr"><<a href="mailto:junkoi2004@gmail.com" target="_blank">junkoi2004@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>hi,<br><br></div>i got lldb 3.5 from <a href="http://llvm.org/apt" target="_blank">llvm.org/apt</a>, and it is a bit better: it no longer has issue with libedit, it seems.<br>






<br></div>however, it crashes all the time. you can easily reproduce it like below:<br>

<br>$ lldb-3.5 ./test<br>Current executable set to './test' (i386).<br>(lldb) b main<br>Breakpoint 1: where = test`main, address = 0x0804847d<br>(lldb) r<br>Segmentation fault (core dumped)<br><br><br></div><div>







"test" can be any program. in my case, it is just a "hello world" program, written in C.<br>
<br></div><div>again, this is on Ubuntu 13.10 32bit. please try it, and confirm this is indeed a bug.<br><br>at this current status, lldb is really unusable :-((<br><br>thanks.<span><font color="#888888"><br>
</font></span></div><span><font color="#888888"><div>Jun<br><br></div></font></span></div></div><div><div>
<div>
<div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 30, 2014 at 2:06 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>








<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jun,<div><br></div><div>Could you file a bug <a href="http://llvm.org/bugs/enter_bug.cgi?product=lldb" target="_blank">here</a> and attach your source?  Include how you compile it so we make sure we're all on the same page to reproduce it.  Then we can see what's going on.</div>









<div><br></div><div>Thanks for reporting it!</div><div><br></div><div>Sincerely,</div><div>Todd Fiala</div></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Wed, Jan 29, 2014 at 6:48 PM, Sylvestre Ledru <span dir="ltr"><<a href="mailto:sylvestre@debian.org" target="_blank">sylvestre@debian.org</a>></span> wrote:<br>









<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 29/01/2014 09:42, Greg Clayton wrote:<br>
> You will need to update the installed libedit on your machine. "libedit" is the line reader program we use to get commands and the default version on most linux's is quite old and out of date.<br>
><br>
><br>
</div>Ubuntu saucy (13.10) has libedit  v3.1-20130712. Not sure it is the<br>
issue here...<br>
<span><font color="#888888"><br>
Sylvestre<br>
</font></span><div><div><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>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div dir="ltr"><table style="color:rgb(136,136,136);font-family:'Times New Roman'" cellpadding="0" cellspacing="0">








<tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px" nowrap>Todd Fiala |</td><td style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px" nowrap> Software Engineer |</td>









<td style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px" nowrap> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>









<td style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px" nowrap><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</font></span></div>
<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><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table style="color:rgb(136,136,136);font-family:'Times New Roman'" cellpadding="0" cellspacing="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">






<td style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px" nowrap>Todd Fiala |</td><td style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px" nowrap> Software Engineer |</td>






<td style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px" nowrap> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>






<td style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px" nowrap><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></div></div></div></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table style="color:rgb(136,136,136);font-family:'Times New Roman'" cellpadding="0" cellspacing="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">



<td style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px" nowrap>Todd Fiala |</td><td style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px" nowrap> Software Engineer |</td>



<td style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px" nowrap> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>



<td style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px" nowrap><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div><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><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>