[INFO] cloning repository https://github.com/kush-jain/http-server-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kush-jain/http-server-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkush-jain%2Fhttp-server-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkush-jain%2Fhttp-server-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ba92683005dd4a1ac5d2a938117da9f5191a1aa [INFO] testing kush-jain/http-server-rust against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759-retry [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkush-jain%2Fhttp-server-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kush-jain/http-server-rust [INFO] finished tweaking git repo https://github.com/kush-jain/http-server-rust [INFO] tweaked toml for git repo https://github.com/kush-jain/http-server-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kush-jain/http-server-rust on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kush-jain/http-server-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] edfe8500ccfc9cba820fce6dd6de433896d4edd33475daf7ac9224f08683da70 [INFO] running `Command { std: "docker" "start" "-a" "edfe8500ccfc9cba820fce6dd6de433896d4edd33475daf7ac9224f08683da70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edfe8500ccfc9cba820fce6dd6de433896d4edd33475daf7ac9224f08683da70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edfe8500ccfc9cba820fce6dd6de433896d4edd33475daf7ac9224f08683da70", kill_on_drop: false }` [INFO] [stdout] edfe8500ccfc9cba820fce6dd6de433896d4edd33475daf7ac9224f08683da70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a73512aa3ee57cddf44a6d979147e440cb1335489e3e87a36dbbc9c28632336 [INFO] running `Command { std: "docker" "start" "-a" "5a73512aa3ee57cddf44a6d979147e440cb1335489e3e87a36dbbc9c28632336", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling clap_builder v4.5.31 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling clap v4.5.31 [INFO] [stderr] Compiling codecrafters-http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.29s [INFO] running `Command { std: "docker" "inspect" "5a73512aa3ee57cddf44a6d979147e440cb1335489e3e87a36dbbc9c28632336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a73512aa3ee57cddf44a6d979147e440cb1335489e3e87a36dbbc9c28632336", kill_on_drop: false }` [INFO] [stdout] 5a73512aa3ee57cddf44a6d979147e440cb1335489e3e87a36dbbc9c28632336 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c21de2e801b5b2c6ed886159af10ec3fcdf781c70e98a219ac220888a5deb24 [INFO] running `Command { std: "docker" "start" "-a" "1c21de2e801b5b2c6ed886159af10ec3fcdf781c70e98a219ac220888a5deb24", kill_on_drop: false }` [INFO] [stderr] Compiling codecrafters-http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.59s [INFO] running `Command { std: "docker" "inspect" "1c21de2e801b5b2c6ed886159af10ec3fcdf781c70e98a219ac220888a5deb24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c21de2e801b5b2c6ed886159af10ec3fcdf781c70e98a219ac220888a5deb24", kill_on_drop: false }` [INFO] [stdout] 1c21de2e801b5b2c6ed886159af10ec3fcdf781c70e98a219ac220888a5deb24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c1bcac00f81ddb086441747148825c5a88f5d46668b5c0a393812af7430fd944 [INFO] running `Command { std: "docker" "start" "-a" "c1bcac00f81ddb086441747148825c5a88f5d46668b5c0a393812af7430fd944", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/codecrafters_http_server-6610fae8232a5a64) [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test handler::tests::handle_http_request_echo_route ... ok [INFO] [stdout] test handler::tests::handle_http_request_get_file_route_valid ... ok [INFO] [stdout] test handler::tests::handle_gzip_encoding ... ok [INFO] [stdout] test handler::tests::handle_http_request_invalid_route ... ok [INFO] [stdout] test handler::tests::handle_http_request_valid_route ... ok [INFO] [stdout] test handler::tests::handle_http_request_user_agent_route ... ok [INFO] [stdout] test handler::tests::handle_invalid_encoding ... ok [INFO] [stdout] test handler::tests::handle_multiple_encodings_all_invalid ... ok [INFO] [stdout] test handler::tests::handle_multiple_encodings ... ok [INFO] [stdout] test handler::tests::handle_http_request_invalid_file_path ... ok [INFO] [stdout] test handler::tests::handle_http_request_invalid_request ... ok [INFO] [stdout] test handler::tests::handle_http_request_get_file_route_invalid ... FAILED [INFO] [stdout] test handler::tests::handle_http_request_post_file_route ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- handler::tests::handle_http_request_get_file_route_invalid stdout ---- [INFO] [stdout] received request: "GET /files/random.txt HTTP/1.1", headers: [], request body: "" [INFO] [stdout] method: "GET", route: "/files/random.txt" [INFO] [stdout] file path: "/opt/rustwide/workdir/src/random.txt" [INFO] [stdout] [INFO] [stdout] thread 'handler::tests::handle_http_request_get_file_route_invalid' panicked at src/handler.rs:251:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "200" [INFO] [stdout] right: "404" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x565868218522 - std::backtrace_rs::backtrace::libunwind::trace::h73a647620bf1c49d [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x565868218522 - std::backtrace_rs::backtrace::trace_unsynchronized::hd4d513ed96cb3cb1 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x565868218522 - std::sys::backtrace::_print_fmt::h61bb95f7476aafa5 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x565868218522 - ::fmt::ha2e7e3a01df69042 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x56586823ec23 - core::fmt::rt::Argument::fmt::hf14163372f0f9a76 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x56586823ec23 - core::fmt::write::h7cb8f63788cd01d2 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/fmt/mod.rs:1465:25 [INFO] [stdout] 6: 0x565868215203 - std::io::default_write_fmt::h9ed739ccee8a150c [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x565868215203 - std::io::Write::write_fmt::h1c0a32da913b32f1 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x565868218372 - std::sys::backtrace::BacktraceLock::print::h3ec4d7883eb25e61 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x565868219bdc - std::panicking::default_hook::{{closure}}::h29548987efd832cb [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x565868219a32 - std::panicking::default_hook::ha25170a15c643514 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x5658681da384 - as core::ops::function::Fn>::call::h562adeecbf43c420 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x5658681da384 - test::test_main_with_exit_callback::{{closure}}::h97dd2a879d27e0e4 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x56586821a5bb - as core::ops::function::Fn>::call::h7e85cbdbda26fdb7 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x56586821a5bb - std::panicking::rust_panic_with_hook::h0d81afcd829aa24b [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x56586821a38a - std::panicking::begin_panic_handler::{{closure}}::hc84a33f1202346cf [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x565868218a19 - std::sys::backtrace::__rust_end_short_backtrace::h373067a14f6c59aa [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x56586821a01d - __rustc[beb0385846a06d21]::rust_begin_unwind [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x56586823d770 - core::panicking::panic_fmt::ha33fa2ae772efba9 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x56586823da07 - core::panicking::assert_failed_inner::h6a89cd271393c011 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panicking.rs:448:17 [INFO] [stdout] 20: 0x5658681eb5e1 - core::panicking::assert_failed::h7364af63d2f8d482 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panicking.rs:403:5 [INFO] [stdout] 21: 0x565868197c60 - codecrafters_http_server::handler::tests::handle_http_request_get_file_route_invalid::hc82d7d11f937818c [INFO] [stdout] at /opt/rustwide/workdir/src/handler.rs:251:9 [INFO] [stdout] 22: 0x56586819fbd9 - codecrafters_http_server::handler::tests::handle_http_request_get_file_route_invalid::{{closure}}::h07a4ef4ec0010a0a [INFO] [stdout] at /opt/rustwide/workdir/src/handler.rs:248:52 [INFO] [stdout] 23: 0x56586819fbd9 - core::ops::function::FnOnce::call_once::hf6f4ce3239067c3b [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5658681dfabb - core::ops::function::FnOnce::call_once::hf84b9c3d864a6959 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5658681dfabb - test::__rust_begin_short_backtrace::h5724e31441c16fcb [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x5658681decfe - test::run_test_in_process::{{closure}}::hbc28c9aa91793d7d [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x5658681decfe - as core::ops::function::FnOnce<()>>::call_once::hc17b0e238c0f8f3e [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x5658681decfe - std::panicking::catch_unwind::do_call::hcdbce0d6dd6c83ce [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x5658681decfe - std::panicking::catch_unwind::h9477967ceea044e8 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x5658681decfe - std::panic::catch_unwind::h616a2e249da12e16 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5658681decfe - test::run_test_in_process::h2758deb0f2e54430 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x5658681decfe - test::run_test::{{closure}}::habe5cd2564b18aaa [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x5658681a28a4 - test::run_test::{{closure}}::h9a0a6928f1a15421 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x5658681a28a4 - std::sys::backtrace::__rust_begin_short_backtrace::hd68b5332434a22ca [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x5658681a624a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h264ddcc3098eacae [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x5658681a624a - as core::ops::function::FnOnce<()>>::call_once::h9fa39489749d6f3c [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x5658681a624a - std::panicking::catch_unwind::do_call::hb9a1944b9f85100f [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x5658681a624a - std::panicking::catch_unwind::h0c6f100786c0dad8 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x5658681a624a - std::panic::catch_unwind::hf6084e2723385823 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5658681a624a - std::thread::Builder::spawn_unchecked_::{{closure}}::hf0af58ce658143ad [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x5658681a624a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h88a14f9b2e79f9de [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x56586821d5a7 - as core::ops::function::FnOnce>::call_once::hf31256ba38644b65 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 43: 0x56586821d5a7 - as core::ops::function::FnOnce>::call_once::h100ad77f3448041b [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 44: 0x56586821d5a7 - std::sys::pal::unix::thread::Thread::new::thread_start::h1a22ded422ce395b [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x7cd1a8e4baa4 - [INFO] [stdout] 46: 0x7cd1a8ed8a34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- handler::tests::handle_http_request_post_file_route stdout ---- [INFO] [stdout] received request: "POST /files/abc.txt HTTP/1.1", headers: ["Content-Length: 5"], request body: "abcde" [INFO] [stdout] method: "POST", route: "/files/abc.txt" [INFO] [stdout] file path: "/opt/rustwide/workdir/src/abc.txt" [INFO] [stdout] Writing to file: "/opt/rustwide/workdir/src/abc.txt" contents: "abcde" [INFO] [stdout] Error writing to file: "/opt/rustwide/workdir/src/abc.txt" [INFO] [stdout] [INFO] [stdout] thread 'handler::tests::handle_http_request_post_file_route' panicked at src/handler.rs:278:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "500" [INFO] [stdout] right: "201" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x565868218522 - std::backtrace_rs::backtrace::libunwind::trace::h73a647620bf1c49d [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x565868218522 - std::backtrace_rs::backtrace::trace_unsynchronized::hd4d513ed96cb3cb1 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x565868218522 - std::sys::backtrace::_print_fmt::h61bb95f7476aafa5 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x565868218522 - ::fmt::ha2e7e3a01df69042 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x56586823ec23 - core::fmt::rt::Argument::fmt::hf14163372f0f9a76 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x56586823ec23 - core::fmt::write::h7cb8f63788cd01d2 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/fmt/mod.rs:1465:25 [INFO] [stdout] 6: 0x565868215203 - std::io::default_write_fmt::h9ed739ccee8a150c [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x565868215203 - std::io::Write::write_fmt::h1c0a32da913b32f1 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x565868218372 - std::sys::backtrace::BacktraceLock::print::h3ec4d7883eb25e61 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x565868219bdc - std::panicking::default_hook::{{closure}}::h29548987efd832cb [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x565868219a32 - std::panicking::default_hook::ha25170a15c643514 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x5658681da384 - as core::ops::function::Fn>::call::h562adeecbf43c420 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x5658681da384 - test::test_main_with_exit_callback::{{closure}}::h97dd2a879d27e0e4 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x56586821a5bb - as core::ops::function::Fn>::call::h7e85cbdbda26fdb7 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x56586821a5bb - std::panicking::rust_panic_with_hook::h0d81afcd829aa24b [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x56586821a38a - std::panicking::begin_panic_handler::{{closure}}::hc84a33f1202346cf [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x565868218a19 - std::sys::backtrace::__rust_end_short_backtrace::h373067a14f6c59aa [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x56586821a01d - __rustc[beb0385846a06d21]::rust_begin_unwind [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x56586823d770 - core::panicking::panic_fmt::ha33fa2ae772efba9 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x56586823da07 - core::panicking::assert_failed_inner::h6a89cd271393c011 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panicking.rs:448:17 [INFO] [stdout] 20: 0x5658681eb5e1 - core::panicking::assert_failed::h7364af63d2f8d482 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panicking.rs:403:5 [INFO] [stdout] 21: 0x5658681985c5 - codecrafters_http_server::handler::tests::handle_http_request_post_file_route::h74bec47d3da9410f [INFO] [stdout] at /opt/rustwide/workdir/src/handler.rs:278:9 [INFO] [stdout] 22: 0x56586819fbf9 - codecrafters_http_server::handler::tests::handle_http_request_post_file_route::{{closure}}::hd35a0c0f938d44fd [INFO] [stdout] at /opt/rustwide/workdir/src/handler.rs:266:45 [INFO] [stdout] 23: 0x56586819fbf9 - core::ops::function::FnOnce::call_once::hfca9e539c1b3c1ba [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5658681dfabb - core::ops::function::FnOnce::call_once::hf84b9c3d864a6959 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5658681dfabb - test::__rust_begin_short_backtrace::h5724e31441c16fcb [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x5658681decfe - test::run_test_in_process::{{closure}}::hbc28c9aa91793d7d [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x5658681decfe - as core::ops::function::FnOnce<()>>::call_once::hc17b0e238c0f8f3e [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x5658681decfe - std::panicking::catch_unwind::do_call::hcdbce0d6dd6c83ce [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x5658681decfe - std::panicking::catch_unwind::h9477967ceea044e8 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x5658681decfe - std::panic::catch_unwind::h616a2e249da12e16 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5658681decfe - test::run_test_in_process::h2758deb0f2e54430 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x5658681decfe - test::run_test::{{closure}}::habe5cd2564b18aaa [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x5658681a28a4 - test::run_test::{{closure}}::h9a0a6928f1a15421 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x5658681a28a4 - std::sys::backtrace::__rust_begin_short_backtrace::hd68b5332434a22ca [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x5658681a624a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h264ddcc3098eacae [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x5658681a624a - as core::ops::function::FnOnce<()>>::call_once::h9fa39489749d6f3c [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x5658681a624a - std::panicking::catch_unwind::do_call::hb9a1944b9f85100f [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x5658681a624a - std::panicking::catch_unwind::h0c6f100786c0dad8 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x5658681a624a - std::panic::catch_unwind::hf6084e2723385823 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5658681a624a - std::thread::Builder::spawn_unchecked_::{{closure}}::hf0af58ce658143ad [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x5658681a624a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h88a14f9b2e79f9de [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x56586821d5a7 - as core::ops::function::FnOnce>::call_once::hf31256ba38644b65 [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 43: 0x56586821d5a7 - as core::ops::function::FnOnce>::call_once::h100ad77f3448041b [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 44: 0x56586821d5a7 - std::sys::pal::unix::thread::Thread::new::thread_start::h1a22ded422ce395b [INFO] [stdout] at /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x7cd1a8e4baa4 - [INFO] [stdout] 46: 0x7cd1a8ed8a34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] handler::tests::handle_http_request_get_file_route_invalid [INFO] [stdout] handler::tests::handle_http_request_post_file_route [INFO] [stdout] [INFO] [stdout] test result: FAILED. 11 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin codecrafters-http-server` [INFO] running `Command { std: "docker" "inspect" "c1bcac00f81ddb086441747148825c5a88f5d46668b5c0a393812af7430fd944", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1bcac00f81ddb086441747148825c5a88f5d46668b5c0a393812af7430fd944", kill_on_drop: false }` [INFO] [stdout] c1bcac00f81ddb086441747148825c5a88f5d46668b5c0a393812af7430fd944