Skip to content

Instantly share code, notes, and snippets.

@al3xtjames
Created November 28, 2024 22:47
Show Gist options
  • Save al3xtjames/a7c48cda4927cde5d22c73d66d9b38be to your computer and use it in GitHub Desktop.
Save al3xtjames/a7c48cda4927cde5d22c73d66d9b38be to your computer and use it in GitHub Desktop.
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/sz17s3c58ci5r9p8js1q8rhyslc2l6ga-source
source root is source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Executing cargoSetupPostPatchHook
Validating consistency between /private/tmp/nix-build-binwalk-3.1.0.drv-2/source/Cargo.lock and /private/tmp/nix-build-binwalk-3.1.0.drv-2/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing cargoBuildHook
cargoBuildHook flags: -j 32 --target x86_64-apple-darwin --offline --profile release
Compiling proc-macro2 v1.0.86
Compiling libc v0.2.158
Compiling unicode-ident v1.0.13
Compiling semver v1.0.23
Compiling cfg-if v1.0.0
Compiling byteorder v1.5.0
Compiling shlex v1.3.0
Compiling bitflags v1.3.2
Compiling pkg-config v0.3.30
Compiling core-foundation-sys v0.8.7
Compiling autocfg v1.3.0
Compiling memchr v2.7.4
Compiling simd-adler32 v0.3.7
Compiling adler2 v2.0.0
Compiling utf8parse v0.2.2
Compiling log v0.4.22
Compiling adler v1.0.2
Compiling foreign-types-shared v0.3.1
Compiling anstyle-query v1.1.1
Compiling regex-syntax v0.8.4
Compiling anstyle v1.0.8
Compiling option-ext v0.2.0
Compiling colorchoice v1.0.2
Compiling is_terminal_polyfill v1.70.1
Compiling color_quant v1.1.0
Compiling plotters-backend v0.3.7
Compiling jpeg-decoder v0.3.1
Compiling same-file v1.0.6
Compiling weezl v0.1.8
Compiling font-kit v0.14.2
Compiling lazy_static v1.5.0
Compiling serde v1.0.210
Compiling crc32fast v1.4.2
Compiling bytemuck v1.18.0
Compiling bitflags v2.6.0
Compiling strsim v0.11.1
Compiling anstyle-parse v0.2.5
Compiling walkdir v2.5.0
Compiling miniz_oxide v0.8.0
Compiling clap_lex v0.7.2
Compiling crc32-v2 v0.0.4
Compiling fdeflate v0.3.4
Compiling cc v1.1.21
Compiling miniz_oxide v0.7.4
Compiling float-ord v0.3.2
Compiling iana-time-zone v0.1.61
Compiling heck v0.5.0
Compiling gif v0.12.0
Compiling serde_json v1.0.128
Compiling plotters-svg v0.3.7
Compiling humantime v2.1.0
Compiling anstream v0.6.15
Compiling itoa v1.0.11
Compiling num-traits v0.2.19
Compiling ryu v1.0.18
Compiling ttf-parser v0.20.0
Compiling colored v2.1.0
Compiling base64 v0.22.1
Compiling entropy v0.4.2
Compiling xxhash-rust v0.8.12
Compiling flate2 v1.0.34
Compiling aho-corasick v1.1.3
Compiling clap_builder v4.5.18
Compiling png v0.17.13
Compiling bzip2-sys v0.1.11+1.0.8
Compiling lzma-sys v0.1.20
Compiling rustc_version v0.4.1
Compiling regex-automata v0.4.7
Compiling pathfinder_simd v0.5.4
Compiling crc32c v0.6.8
Compiling quote v1.0.37
Compiling core-foundation v0.9.4
Compiling getrandom v0.2.15
Compiling dirs-sys v0.4.1
Compiling num_cpus v1.16.0
Compiling termsize v0.1.9
Compiling syn v2.0.77
Compiling threadpool v1.8.1
Compiling dirs v5.0.1
Compiling rand_core v0.6.4
Compiling bzip2 v0.4.4
Compiling core-graphics-types v0.1.3
Compiling image v0.24.9
Compiling chrono v0.4.38
Compiling regex v1.10.6
Compiling pathfinder_geometry v0.5.1
Compiling env_filter v0.1.2
Compiling env_logger v0.11.5
Compiling zerocopy-derive v0.7.35
Compiling foreign-types-macros v0.2.3
Compiling serde_derive v1.0.210
Compiling clap_derive v4.5.18
Compiling uuid-macro-internal v1.10.0
Compiling plotters-bitmap v0.3.7
Compiling foreign-types v0.5.0
Compiling zerocopy v0.7.35
Compiling core-graphics v0.23.2
Compiling core-text v20.1.0
Compiling clap v4.5.18
Compiling ppv-lite86 v0.2.20
Compiling plotters v0.3.7
Compiling rand_chacha v0.3.1
Compiling rand v0.8.5
Compiling uuid v1.10.0
Compiling xz2 v0.1.7
Compiling binwalk v3.1.0 (/private/tmp/nix-build-binwalk-3.1.0.drv-2/source)
Finished `release` profile [optimized] target(s) in 22.58s
Executing cargoInstallPostBuildHook
Finished cargoInstallPostBuildHook
Finished cargoBuildHook
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
Executing cargoCheckHook
cargoCheckHook flags: -j 32 --profile release --target x86_64-apple-darwin --offline -- --test-threads=32
Compiling binwalk v3.1.0 (/private/tmp/nix-build-binwalk-3.1.0.drv-2/source)
Finished `release` profile [optimized] target(s) in 1.15s
Running unittests src/lib.rs (target/x86_64-apple-darwin/release/deps/binwalk-eb95d4a8bf8763fe)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/main.rs (target/x86_64-apple-darwin/release/deps/binwalk-3a7cebf105be300c)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests binwalk
running 32 tests
test src/extractors.rs - extractors (line 83) ... ignored
test src/signatures.rs - signatures (line 16) ... ignored
test src/signatures.rs - signatures (line 57) ... ignored
test src/extractors.rs - extractors (line 29) - compile ... ok
test src/lib.rs - (line 5) - compile ... ok
test src/structures.rs - structures (line 41) - compile ... ok
test src/common.rs - common::is_offset_safe (line 131) ... ok
test src/common.rs - common::crc32 (line 50) ... ok
test src/binwalk.rs - binwalk::Binwalk (line 42) ... FAILED
test src/common.rs - common::read_file (line 11) ... ok
test src/common.rs - common::get_cstring (line 102) ... ok
test src/binwalk.rs - binwalk::Binwalk::scan (line 225) ... FAILED
test src/binwalk.rs - binwalk::Binwalk::new (line 80) ... ok
test src/extractors/common.rs - extractors::common::Chroot::create_fifo (line 379) ... FAILED
test src/common.rs - common::epoch_to_string (line 67) ... ok
test src/binwalk.rs - binwalk::Binwalk::configure (line 103) ... ok
test src/structures/common.rs - structures::common::size (line 136) ... ok
test src/extractors/common.rs - extractors::common::Chroot::chrooted_path (line 198) ... ok
test src/binwalk.rs - binwalk::Binwalk::analyze (line 639) ... ok
test src/extractors/common.rs - extractors::common::Chroot::make_executable (line 513) ... FAILED
test src/extractors/common.rs - extractors::common::Chroot::create_block_device (line 347) ... FAILED
test src/extractors/common.rs - extractors::common::Chroot::new (line 92) ... ok
test src/extractors/common.rs - extractors::common::Chroot::append_to_file (line 429) ... FAILED
test src/binwalk.rs - binwalk::Binwalk::extract (line 537) ... ok
test src/extractors/common.rs - extractors::common::Chroot::create_character_device (line 315) ... FAILED
test src/extractors/common.rs - extractors::common::Chroot::create_directory (line 482) ... FAILED
test src/extractors/common.rs - extractors::common::Chroot::carve_file (line 258) ... FAILED
test src/structures/common.rs - structures::common::parse (line 34) ... ok
test src/extractors/common.rs - extractors::common::Chroot::create_symlink (line 574) ... FAILED
test src/extractors/common.rs - extractors::common::Chroot::create_socket (line 404) ... FAILED
test src/extractors/common.rs - extractors::common::Chroot::safe_path_join (line 151) ... ok
test src/extractors/common.rs - extractors::common::Chroot::create_file (line 216) ... FAILED
failures:
---- src/binwalk.rs - binwalk::Binwalk (line 42) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/binwalk.rs:8:47:
Unable to read file: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/binwalk.rs - binwalk::Binwalk::scan (line 225) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/binwalk.rs:8:47:
Unable to read file: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::create_fifo (line 379) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:12:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::make_executable (line 513) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:13:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::create_block_device (line 347) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:14:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::append_to_file (line 429) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:13:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::create_character_device (line 315) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:14:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::create_directory (line 482) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:12:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::carve_file (line 258) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:13:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::create_symlink (line 574) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:12:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::create_socket (line 404) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:12:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- src/extractors/common.rs - extractors::common::Chroot::create_file (line 216) stdout ----
Test executable failed (exit status: 101).
stderr:
thread 'main' panicked at src/extractors/common.rs:13:1:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
src/binwalk.rs - binwalk::Binwalk (line 42)
src/binwalk.rs - binwalk::Binwalk::scan (line 225)
src/extractors/common.rs - extractors::common::Chroot::append_to_file (line 429)
src/extractors/common.rs - extractors::common::Chroot::carve_file (line 258)
src/extractors/common.rs - extractors::common::Chroot::create_block_device (line 347)
src/extractors/common.rs - extractors::common::Chroot::create_character_device (line 315)
src/extractors/common.rs - extractors::common::Chroot::create_directory (line 482)
src/extractors/common.rs - extractors::common::Chroot::create_fifo (line 379)
src/extractors/common.rs - extractors::common::Chroot::create_file (line 216)
src/extractors/common.rs - extractors::common::Chroot::create_socket (line 404)
src/extractors/common.rs - extractors::common::Chroot::create_symlink (line 574)
src/extractors/common.rs - extractors::common::Chroot::make_executable (line 513)
test result: FAILED. 17 passed; 12 failed; 3 ignored; 0 measured; 0 filtered out; finished in 4.90s
error: doctest failed, to rerun pass `--doc`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment