Skip to content

careful option doesn't work #422

@qarmin

Description

@qarmin
git clone [email protected]:qarmin/Automated-Fuzzer.git
cd Automated-Fuzzer

and

cargo +nightly fuzz run lopdf --release --features "lopdf_f" -- -rss_limit_mb=20000

works fine, but

cargo +nightly fuzz run lopdf --release --features "lopdf_f" -c -- -rss_limit_mb=20000

produces this compilation errors

error: `compiler_builtins` cannot call functions through upstream monomorphizations; encountered invalid call from `<&T as core::fmt::Debug>::fmt` to `<str as core::fmt::Debug>::fmt`
    --> /home/rafal/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2668:1
     |
2668 | fmt_refs! { Debug, Display, Octal, Binary, LowerHex, UpperHex, LowerExp, UpperExp }
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: this error originates in the macro `fmt_refs` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `compiler_builtins` cannot call functions through upstream monomorphizations; encountered invalid call from `<&T as core::fmt::Display>::fmt` to `<str as core::fmt::Display>::fmt`
    --> /home/rafal/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2668:1
     |
2668 | fmt_refs! { Debug, Display, Octal, Binary, LowerHex, UpperHex, LowerExp, UpperExp }
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error: failed to build fuzz script: ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Cpasses=sancov-module -Cllvm-args=-sanitizer-coverage-level=4 -Cllvm-args=-sanitizer-coverage-inline-8bit-counters -Cllvm-args=-sanitizer-coverage-pc-table -Cllvm-args=-sanitizer-coverage-trace-compares --cfg fuzzing -Clink-dead-code -Zsanitizer=address -Zextra-const-ub-checks -Zstrict-init-checks --cfg careful -Cllvm-args=-sanitizer-coverage-stack-depth -Cdebug-assertions -C codegen-units=1" "cargo" "build" "--manifest-path" "/home/rafal/test/Automated-Fuzzer/fuzz/Cargo.toml" "--target" "x86_64-unknown-linux-gnu" "--release" "--config" "profile.release.debug=true" "--features" "lopdf_f" "-Z" "build-std" "--bin" "lopdf"


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