You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having the curve25519-dalek crate as a dependency anywhere in the dependency graph makes it impossible to do any fuzzying since it takes an extremely long time for it to finish compiling through cargo fuzz build.
(This is most likely a problem in either rustc or LLVM; posting an issue about it here for visibility, and because I don't have the time to actually dig to the very bottom of this.)
The crate compiles fast; cargo build of the minimal reproduction crate takes less than 1s, and cargo fuzz build should take a comparable amount of time (excluding the time it takes to build the dependencies it needs).
Actual behavior
The compilation takes a very long time; the minimal reproduction example takes over 1 minute to compile on my machine. The real world reproduction takes significantly longer (don't know how long exactly; I got tired of waiting).
The problem
Having the
curve25519-dalek
crate as a dependency anywhere in the dependency graph makes it impossible to do any fuzzying since it takes an extremely long time for it to finish compiling throughcargo fuzz build
.(This is most likely a problem in either
rustc
or LLVM; posting an issue about it here for visibility, and because I don't have the time to actually dig to the very bottom of this.)Reproduction (real world)
git clone https://github.com/dalek-cryptography/curve25519-dalek.git
cd curve25519-dalek
cargo fuzz init
cargo fuzz build
Reproduction (minimal)
cargo new --lib foobar
foobar/src/lib.rs
:cd foobar
cargo fuzz init
cargo fuzz build
Expected behavior
The crate compiles fast;
cargo build
of the minimal reproduction crate takes less than 1s, andcargo fuzz build
should take a comparable amount of time (excluding the time it takes to build the dependencies it needs).Actual behavior
The compilation takes a very long time; the minimal reproduction example takes over 1 minute to compile on my machine. The real world reproduction takes significantly longer (don't know how long exactly; I got tired of waiting).
Workaround
For the minimal reproduction:
For the
curve25519-dalek
crate:This makes it compile fast again.
Versions
rustc 1.62.0-nightly (69a5d2481 2022-04-27)
cargo-fuzz 0.11.0
(installed from crates.io)curve25519-dalek 0d49dfacf66bed4b41e445d0e6942b3c27f3b263
The text was updated successfully, but these errors were encountered: