Skip to content

rust-lldb binary fails with I/O error #335

Closed
@japaric

Description

@japaric

STR

$ rustup default nightly
$ echo 'fn main() {}' > hello.rs
$ rustc hello.rs
$ ./hello && echo OK
OK
$ rust-lldb ./hello
error: command failed: 'rust-lldb' (Io: No such file or directory (os error 2))

I also tried the rust-lldb shell script from the rust-lang/rust repo and that errors with a failed import:

$ sh rust-lldb ./hello
(lldb) command source -s 0 '/tmp/rust-lldb-commands.BUuutK'
Executing commands in '/tmp/rust-lldb-commands.BUuutK'.
(lldb) command script import "/home/japaric/.multirust/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/etc/lldb_rust_formatters.py"
error: module importing failed: invalid pathname
(lldb) target create "./hello"
Current executable set to './hello' (x86_64).
(lldb)

Because there is no lldb_rust_formatters.py file in the .multirust install:

$ ls $(find ~/.multirust -name etc)
/home/japaric/.multirust/toolchains/nightly-x86_64-unknown-linux-gnu/etc:
bash_completion.d

/home/japaric/.multirust/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/etc:
debugger_pretty_printers_common.py  gdb_load_rust_pretty_printers.py  gdb_rust_pretty_printing.py

That missing file may be the reason why the rust-lldb binary also fails.

Meta

$ rustc -Vv
rustc 1.10.0-nightly (2174bd97c 2016-04-14)
binary: rustc
commit-hash: 2174bd97c1458d89a87eb2b614135d7ad68d6f18
commit-date: 2016-04-14
host: x86_64-unknown-linux-gnu
release: 1.10.0-nightly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions