[lldb-dev] [APT] lldb crashes on sturtup

Eugene Kosov via lldb-dev lldb-dev at lists.llvm.org
Sun Aug 16 23:59:38 PDT 2015


Hello.

I have installed clang and  lldb from here
http://llvm.org/apt/
deb http://llvm.org/apt/vivid/ llvm-toolchain-vivid main
deb-src http://llvm.org/apt/vivid/ llvm-toolchain-vivid main

lldb crashed on startup every time.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff47d2b29 in llvm::cl::Option::addArgument() () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1

(gdb) bt
#0  0x00007ffff47d2b29 in llvm::cl::Option::addArgument() () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#1  0x00007fffee7ce7af in global constructors keyed to a () from /usr/local/lib/python2.7/dist-packages/lldb/_lldb.so
#2  0x00007ffff00c4020 in __frame_dummy_init_array_entry () from /usr/local/lib/python2.7/dist-packages/lldb/_lldb.so
#3  0x00007fffffffddc8 in ?? ()
#4  0x00007fffffffddd8 in ?? ()
#5  0x00007ffff00c4258 in __frame_dummy_init_array_entry ()
#6  0x0000000000000000 in ?? ()

Dump of assembler code for function _ZN4llvm2cl6Option11addArgumentEv:
   0x00007ffff47d2aea <+10>:    mov    %rdi,%rbx
   0x00007ffff47d2aed <+13>:    sub    $0x58,%rsp
   0x00007ffff47d2af1 <+17>:    mov    0xec4468(%rip),%rbp        # 0x7ffff5696f60
   0x00007ffff47d2af8 <+24>:    mov    %fs:0x28,%rax
   0x00007ffff47d2b01 <+33>:    mov    %rax,0x48(%rsp)
   0x00007ffff47d2b06 <+38>:    xor    %eax,%eax
   0x00007ffff47d2b08 <+40>:    callq  0x7ffff4813ad0 <_ZN4llvm21llvm_is_multithreadedEv>
   0x00007ffff47d2b0d <+45>:    test   %al,%al
   0x00007ffff47d2b0f <+47>:    jne    0x7ffff47d2cd0 <_ZN4llvm2cl6Option11addArgumentEv+496>
   0x00007ffff47d2b15 <+53>:    test   %rbp,%rbp
   0x00007ffff47d2b18 <+56>:    je     0x7ffff47d2cde <_ZN4llvm2cl6Option11addArgumentEv+510>
   0x00007ffff47d2b1e <+62>:    mov    0x18(%rbx),%r12
   0x00007ffff47d2b22 <+66>:    mov    0xec4437(%rip),%rbp        # 0x7ffff5696f60
=> 0x00007ffff47d2b29 <+73>:    cmpb   $0x0,(%r12)

(gdb) i r r12
r12            0x0      0

Looks like a crash in static/global variable constructor.

I've tried to build lldb from sources using cmake and it works like a charm.

Any suggestions on how to fix that? My laptop is old and slow. That's why I prefer deb packages over building from sources.

Sorry in case if I wrote to a wrong place.

--
Eugene


More information about the lldb-dev mailing list