Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1032423: lldb-15: Bug "No module named lldb.embedded_interpreter" reappeared again in lldb-15

217 views
Skip to first unread message

Askar Safin

unread,
Mar 6, 2023, 9:10:05 AM3/6/23
to
Package: lldb-15
Version: 1:15.0.7-1
Severity: normal
X-Debbugs-Cc: safin...@gmail.com

Here are steps to reproduce (in form of Dockerfile):

FROM debian:sid
ENV LC_ALL C.UTF-8
RUN apt-get update && apt-get install -y whiptail apt-utils
RUN apt-get update && apt-get install -y clang-15 lldb-15
RUN echo 'int main(){}' > a.c
RUN clang-15 -g -o a a.c
RUN lldb-15 ./a < /dev/null

The last command prints:

Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb.embedded_interpreter'
(lldb) target create "./a"
Current executable set to '/a' (x86_64).

I see here error message "ModuleNotFoundError: No module named 'lldb.embedded_interpreter'" and
I don't like it.

I found and reported this bug back in 2016 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846531 ).
And it seems it was fixed, but now it reappeared again. I would be nice to somehow ensure it will never
appear again (i. e. add some test).

(Note: I'm talking about "No module named 'lldb.embedded_interpreter'" bug. I don't mean other bugs
mentioned in #846531.)

(This bug was sent from very same docker container I'm talking about.)


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

Kernel: Linux 5.10.0-0.deb9.20-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages lldb-15 depends on:
ii libc6 2.36-8
ii libclang-cpp15 1:15.0.7-1
ii libedit2 3.1-20221030-2
ii libgcc-s1 12.2.0-14
ii liblldb-15 1:15.0.7-1
ii libllvm15 1:15.0.7-1
ii libncurses6 6.4-2
ii libstdc++6 12.2.0-14
ii libtinfo6 6.4-2
ii libxml2 2.9.14+dfsg-1.1+b3
ii llvm-15-dev 1:15.0.7-1
ii python3-lldb-15 1:15.0.7-1
ii zlib1g 1:1.2.13.dfsg-1

lldb-15 recommends no packages.

lldb-15 suggests no packages.

-- no debconf information

Askar Safin

unread,
Mar 10, 2023, 5:00:04 PM3/10/23
to
I just tested this bug using packages from https://apt.llvm.org/ . I see
that the bug reproduces with lldb-15, but doesn't reproduce with
lldb-16. So let's just wait when lldb 16 enters debian, and the bug
will be hopefully fixed

--
Askar Safin

Bernhard Übelacker

unread,
Mar 25, 2023, 7:00:05 AM3/25/23
to
Dear Maintainer,
it looks like the searched file ends up here in the current package:
/usr/lib/llvm-15/lib/python3.11/dist-packages/lldb/embedded_interpreter.py

But by inspecting the strace output it should probably be in this directory:
/usr/lib/llvm-15/lib/python3/dist-packages/lldb

For a test I moved the files that way manually,
and it makes the error message go away.

Kind regards,
Bernhard



newfstatat(AT_FDCWD, "/usr/lib/python3/dist-packages/lldb", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/lib/python3/dist-packages/lldb", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/lib/python3/dist-packages/lldb", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/usr/lib/python3/dist-packages/lldb", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0
getdents64(3, 0x55ab0a60fdf0 /* 5 entries */, 32768) = 160
getdents64(3, 0x55ab0a60fdf0 /* 0 entries */, 32768) = 0
close(3) = 0
write(2, "Traceback (most recent call last"..., 35Traceback (most recent call last):
) = 35
write(2, " File \"<string>\", line 1, in <m"..., 39 File "<string>", line 1, in <module>
) = 39
write(2, "ModuleNotFoundError: No module n"..., 65ModuleNotFoundError: No module named 'lldb.embedded_interpreter'
) = 65


$ ls -lisah /usr/lib/python3/dist-packages/lldb
1045401 0 lrwxrwxrwx 1 root root 44 3. Jan 20:55 /usr/lib/python3/dist-packages/lldb -> ../../llvm-15/lib/python3/dist-packages/lldb


$ ls -lisah /usr/lib/llvm-15/lib/python3/dist-packages/lldb
insgesamt 8,0K
674672 4,0K drwxr-xr-x 2 root root 4,0K 25. Mär 11:02 .
674671 4,0K drwxr-xr-x 3 root root 4,0K 25. Mär 11:02 ..
674702 0 lrwxrwxrwx 1 root root 51 3. Jan 20:55 libLLVM-15.0.6.so.1 -> ../../../../../x86_64-linux-gnu/libLLVM-15.0.6.so.1
674703 0 lrwxrwxrwx 1 root root 51 3. Jan 20:55 libLLVM-15.so.1 -> ../../../../../x86_64-linux-gnu/libLLVM-15.0.6.so.1
674701 0 lrwxrwxrwx 1 root root 47 3. Jan 20:55 _lldb.so -> ../../../../../x86_64-linux-gnu/liblldb-15.so.1


$ dpkg -S embedded
python3-lldb-15: /usr/lib/llvm-15/lib/python3.11/dist-packages/lldb/embedded_interpreter.py
0 new messages