Bug#851171: "ImportError: No module named lldb.embedded_interpreter" when typing "p a"

Askar Safin safinaskar at mail.ru
Thu Jan 12 17:32:28 UTC 2017


Package: lldb-3.9
Version: 1:3.9.1-2
Severity: normal

Steps to reproduce:

* Create fresh minimal debian sid
* Create apt.conf with APT::Install-Recommends "false";
* Install lldb-3.9 and clang-3.9
* Then:

root at ideal-os:/# cat o.cpp
#include <vector>

int
main (void)
{
  std::vector<int> a;
  a.push_back (0);
}
root at ideal-os:/# clang++-3.9 -g -o o o.cpp
root at ideal-os:/# lldb-3.9 ./o
(lldb) target create "./o"
Current executable set to './o' (x86_64).
(lldb) b main
Breakpoint 1: where = o`main + 12 at //o.cpp:6, address = 0x000000000040091c
(lldb) r
Process 527 launched: './o' (x86_64)
Process 527 stopped
* thread #1: tid = 527, 0x000000000040091c o`main + 12 at //o.cpp:6, name = 'o', stop reason = breakpoint 1.1
    frame #0: 0x000000000040091c o`main + 12 at //o.cpp:6
   3    int
   4    main (void)
   5    {
-> 6      std::vector<int> a;
   7      a.push_back (0);
   8    }
(lldb) n
Process 527 stopped
* thread #1: tid = 527, 0x0000000000400928 o`main + 24 at //o.cpp:7, name = 'o', stop reason = step over
    frame #0: 0x0000000000400928 o`main + 24 at //o.cpp:7
   4    main (void)
   5    {
   6      std::vector<int> a;
-> 7      a.push_back (0);
   8    }
(lldb) 
Process 527 stopped
* thread #1: tid = 527, 0x0000000000400945 o`main + 53 at //o.cpp:8, name = 'o', stop reason = step over
    frame #0: 0x0000000000400945 o`main + 53 at //o.cpp:8
   5    {
   6      std::vector<int> a;
   7      a.push_back (0);
-> 8    }
(lldb) p a
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named lldb.embedded_interpreter
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
(std::vector<int, std::allocator<int> >) $0 = size=1 {
  std::_Vector_base<int, std::allocator<int> > = {
    _M_impl = {
      _M_start = 0x0000000000615c20
      _M_finish = 0x0000000000615c24
      _M_end_of_storage = 0x0000000000615c24
    }
  }
}
(lldb)

If I install python-lldb-3.9, it works. :)

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lldb-3.9 depends on:
ii  libc6         2.24-8
ii  libgcc1       1:6.3.0-2
ii  liblldb-3.9   1:3.9.1-2
ii  libllvm3.9    1:3.9.1-2
ii  libncurses5   6.0+20161126-1
ii  libpython2.7  2.7.13-1
ii  libstdc++6    6.3.0-2
ii  libtinfo5     6.0+20161126-1
ii  llvm-3.9-dev  1:3.9.1-2

lldb-3.9 recommends no packages.

Versions of packages lldb-3.9 suggests:
pn  python-lldb-3.9  <none>

-- no debconf information



More information about the Pkg-llvm-team mailing list