lldb on Ubuntu 14.04 is unusable

Hi,

I am not sure if there anything you guys can do about this, but I have just installed VirtualBox with Ubuntu 14.04/64 and tried the lldb-3.4-dev and lldb-3.5-dev packages they offer (both installs a development package + lldb command line tool), in both cases lldb could not debug a simple program (both from command line and from my IDE)

It often (but not always) complained about "address access protected"
See below (the code snippet is the entire test program):

(lldb)
Process 6655 stopped

  • thread #1: tid = 6655, 0x000000000040054f TestLLDBmain(argc=1, argv=0x00007fffbfab5338) + 34 at main.cpp:6, name = 'TestLLDB', stop reason = **address access protected (fault address: 0x4004b0)** frame #0: 0x000000000040054f TestLLDBmain(argc=1, argv=0x00007fffbfab5338) + 34 at main.cpp:6
    3 int main(int argc, char **argv)
    4 {
    5 for(size_t i=0; i<5; ++i) {
    → 6 printf(“message\n”);
    7 //getc( stdin );
    8 }
    9 return 0;

​I am going to try this on a real machine (i.e. no VirtualBox)
P.S: I would have try lldb head from svn, but its broken (as Todd already reported to this list)

Thanks,

Hi,
An update:
I have installed Ubuntu 14.04 on a real machine and it is working flawlessly (that is, lldb is working flawlessly)
So my guess is that this issue is somehow related to the fact that my previous test was done in a VirtualBox

Eran

Hey Eran,

Thanks for the update on 14.04! Glad to hear the real machine install is working. It might be worth you filing the protection error bug with the VirtualBox folks.

I expect sometime soonish we’ll be upgrading to Ubuntu 14.04 over here, in which case that’ll be where I spend much of my time.

Sincerely,
Todd Fiala