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

2017-11-18 Thread Urs Schroffenegger


On 17/11/17 18:55, Sylvestre Ledru wrote:


On 17/11/2017 13:55, Urs Schroffenegger wrote:

On 17/11/17 13:31, Sylvestre Ledru wrote:

On 17/11/2017 13:26, Urs Schroffenegger wrote:

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

could you also try create a symlink from lldb-server-6.0 to
lldb-server-6.0.0
it should fix the problem
Thanks
S

This way in /usr/bin?

$ sudo ln -s /usr/bin/lldb-server-6.0 /usr/bin/lldb-server-6.0.0
$ ls /usr/bin/lldb-server* -l
lrwxrwxrwx 1 root root 29 Nov 17 10:47 /usr/bin/lldb-server ->
/etc/alternatives/lldb-server
lrwxrwxrwx 1 root root 31 Sep 11 22:27 /usr/bin/lldb-server-6.0 ->
../lib/llvm-6.0/bin/lldb-server
lrwxrwxrwx 1 root root 24 Nov 17 13:46 /usr/bin/lldb-server-6.0.0 ->
/usr/bin/lldb-server-6.0

I tried that, it doesn't fix it, same symptom. That's where I got
puzzled...

nope, in /usr/lib/llvm-6.0/bin/
Thanks
S



Hi Sylvestre,

there is no lldb-server-6.0 in that directory, but that hint was correct:
$ sudo ln -s /usr/lib/llvm-6.0/bin/lldb-server 
/usr/lib/llvm-6.0/bin/lldb-server-6.0.0

$ ls -l /usr/lib/llvm-6.0/bin/lldb-server*
-rwxr-xr-x 1 root root 6920288 Sep 11 22:27 
/usr/lib/llvm-6.0/bin/lldb-server
lrwxrwxrwx 1 root root  33 Nov 18 09:28 
/usr/lib/llvm-6.0/bin/lldb-server-6.0.0 -> /usr/lib/llvm-6.0/bin/lldb-server


That seems to fix it!
Thanks,

u



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

2017-11-17 Thread Sylvestre Ledru


On 17/11/2017 13:55, Urs Schroffenegger wrote:
> On 17/11/17 13:31, Sylvestre Ledru wrote:
>> On 17/11/2017 13:26, Urs Schroffenegger wrote:
>>> 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
>> could you also try create a symlink from lldb-server-6.0 to
>> lldb-server-6.0.0
>> it should fix the problem
>> Thanks
>> S
>
> This way in /usr/bin?
>
> $ sudo ln -s /usr/bin/lldb-server-6.0 /usr/bin/lldb-server-6.0.0
> $ ls /usr/bin/lldb-server* -l
> lrwxrwxrwx 1 root root 29 Nov 17 10:47 /usr/bin/lldb-server ->
> /etc/alternatives/lldb-server
> lrwxrwxrwx 1 root root 31 Sep 11 22:27 /usr/bin/lldb-server-6.0 ->
> ../lib/llvm-6.0/bin/lldb-server
> lrwxrwxrwx 1 root root 24 Nov 17 13:46 /usr/bin/lldb-server-6.0.0 ->
> /usr/bin/lldb-server-6.0
>
> I tried that, it doesn't fix it, same symptom. That's where I got
> puzzled...
nope, in /usr/lib/llvm-6.0/bin/
Thanks
S



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

2017-11-17 Thread Urs Schroffenegger

On 17/11/17 13:31, Sylvestre Ledru wrote:

On 17/11/2017 13:26, Urs Schroffenegger wrote:

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

could you also try create a symlink from lldb-server-6.0 to
lldb-server-6.0.0
it should fix the problem
Thanks
S


This way in /usr/bin?

$ sudo ln -s /usr/bin/lldb-server-6.0 /usr/bin/lldb-server-6.0.0
$ ls /usr/bin/lldb-server* -l
lrwxrwxrwx 1 root root 29 Nov 17 10:47 /usr/bin/lldb-server -> 
/etc/alternatives/lldb-server
lrwxrwxrwx 1 root root 31 Sep 11 22:27 /usr/bin/lldb-server-6.0 -> 
../lib/llvm-6.0/bin/lldb-server
lrwxrwxrwx 1 root root 24 Nov 17 13:46 /usr/bin/lldb-server-6.0.0 -> 
/usr/bin/lldb-server-6.0


I tried that, it doesn't fix it, same symptom. That's where I got puzzled...

u



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

2017-11-17 Thread Sylvestre Ledru


On 17/11/2017 13:26, Urs Schroffenegger wrote:
> 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
could you also try create a symlink from lldb-server-6.0 to
lldb-server-6.0.0
it should fix the problem
Thanks
S



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

2017-11-17 Thread Urs Schroffenegger
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  libc62.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  libtinfo56.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