Bug#779332: lldb: cannot run executables or attach to processes

Török Edwin edwin at etorok.net
Fri Feb 27 10:06:53 UTC 2015


Package: lldb
Version: 1:3.5-25
Severity: grave
Justification: renders package unusable

Dear Maintainer,

   * What led up to the situation?

Tried all the ways I could think of to run or attach lldb to a process and none
worked.
According to this it should've worked: http://lldb.llvm.org/lldb-gdb.html

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

$ echo 'int main() { while (1) {}; return 0; }' >x.c && gcc -g x.c -o x.gcc &&
clang -g x.c -o x.clang
$ lldb ./x.gcc
$ lldb ./x.clang
$ ./x.clang&
$ ./x.gcc&
$ lldb -p `pidof x.clang`
$ lldb -p `pidof x.gcc`

   * What was the outcome of this action?

$ lldb ./x.gcc
error: './x.gcc' doesn't contain the architecture x86_64
(lldb) run
error: invalid target, create a target using the 'target create' command
(lldb) target create ./x.gcc
error: './x.gcc' doesn't contain the architecture x86_64
(lldb) ^D

$ lldb ./x.clang
error: './x.clang' doesn't contain the architecture x86_64
(lldb) run
error: invalid target, create a target using the 'target create' command
(lldb) target create ./x.clang
error: './x.clang' doesn't contain the architecture x86_64
(lldb) ^D

$ lldb -p `pidof x.gcc`
error: attach failed: '/tmp/x.gcc' doesn't contain any 'host' platform
architectures: x86_64, i386
(lldb) ^D
$ lldb -p `pidof x.clang`
error: attach failed: '/tmp/x.gcc' doesn't contain any 'host' platform
architectures: x86_64, i386
(lldb) ^D

   * What outcome did you expect instead?

I never tried lldb before on Debian, but gdb works and trying the equivalent
lldb http://lldb.llvm.org/lldb-gdb.html commands should work.
At least the very basic ones about running a process or attaching to a running
process.

As it is currently I cannot figure out how to use lldb on Debian.



-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 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: sysvinit (via /sbin/init)

Versions of packages lldb depends on:
ii  lldb-3.5  1:3.5-9

lldb recommends no packages.

lldb suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list