Bug#881993: lldb-6.0: lldb does not find lldb-server: can't use debugger

Urs Schroffenegger nab+reportbug at lampshade.ch
Fri Nov 17 12:26:36 UTC 2017


Package: lldb-6.0
Version: 1:6.0~svn315736-1
Severity: important

Dear Maintainer,

   * What led up to the situation?
        Trying to debug a clang-6 compiled program using lldb.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
        1) compile program 'a.out'.
        2) Launch debugger
                $ lldb a.out
                (lldb) target create "nnlibtest1.bin"
                Current executable set to 'nnlibtest1.bin' (x86_64).
                (lldb)
        3) at debugger prompt, try to run the program to be debugged
                (lldb) run
                error: process launch failed: unable to locate lldb-
server-6.0.0
   * What was the outcome of this action?
        Failure to start debugging.
   * What outcome did you expect instead?
        Failure of the program I was trying to debug and trace in the debugger

I'm learning about usage of gdb and lldb, so I'm not to experienced with them.
Trying some workarounds found on stackoverflow that suggested to set some
alternatives with update-alternatives didn't work out.
https://stackoverflow.com/questions/37107432/lldb-error-process-launch-failed-
unable-to-locate-lldb-server#37107978

I wasn't sure what path lldb is expecting and if I set up my alternatives
correctly. Greping through the package source code, I discovered it has an
environment variable to set the path to the lldb-server, which seems to fix the
issue.

Workaround:
export LLDB_DEBUGSERVER_PATH=/usr/lib/llvm-6.0/bin/lldb-server

Note: on another machine with lldb-5.0, I encounter the same issue.
Note2: this is my first debian bug report, so I hope it's complete, feel free
to ask for further information.

Thanks,

Urs



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

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

Versions of packages lldb-6.0 depends on:
ii  libc6            2.24-17
ii  libgcc1          1:7.2.0-14
ii  liblldb-6.0      1:6.0~svn315736-1
ii  libllvm6.0       1:6.0~svn315736-1
ii  libncurses5      6.0+20170902-1
ii  libpython2.7     2.7.14-2
ii  libstdc++6       7.2.0-14
ii  libtinfo5        6.0+20170902-1
ii  llvm-6.0-dev     1:6.0~svn315736-1
ii  python-lldb-6.0  1:6.0~svn315736-1

lldb-6.0 recommends no packages.

lldb-6.0 suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list