gnzlbg / cargo-asm

cargo subcommand showing the assembly or llvm-ir generated for Rust code
https://github.com/gnzlbg/cargo-asm
Other
1.17k stars 36 forks source link

cargm-asm stalls indefinitely #189

Closed bergercookie closed 4 years ago

bergercookie commented 4 years ago

Hi there,

I'm trying to generate the assembly of a function but currently, whatever command I run by cargo asm stalls indefinitely.

Clone and install cargo-asm (master branch from github)

berger on draken in ~/src/cargo-asm on  master is 📦 v0.1.17 via 🦀 v1.43.1
at [15:03:50] ➜ cargo asm --version
cargo-asm 0.1.17

Rust version:

at [15:03:56] ➜ rustc --version
rustc 1.43.1 (8d69840ab 2020-05-04

Cargo version:

at [15:04:53] ➜ cargo --version
cargo 1.43.0 (2cbe9048e 2020-05-03)

Trying to show the assembly of a function from the cargo-asm crate will now stall indefinitely: For example:

at [15:07:51] ✗ cargo asm cargo_asm::path::contains
<will never return>

Same goes for other cloned crates

berger on draken in ~/src/image-rs on  master [!?] is 📦 v0.23.5 via 🦀 v1.43.1
at [15:09:25] ✗ cargo asm image::ImageReadBuffe

Am I doing something wrong? Is there a minimal example to try?

bergercookie commented 4 years ago

Is there a minimal example to try?

Found the example in the readme, it seems to be working fine.. Probablly just takes a lot of time if the package size is large and the identifier is not found fast enough.