Skip to content

Random stack overflow on windows-gnu #139070

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
ehuss opened this issue Mar 28, 2025 · 4 comments
Open

Random stack overflow on windows-gnu #139070

ehuss opened this issue Mar 28, 2025 · 4 comments
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-bug Category: This is a bug. E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows-gnu Toolchain: GNU, Operating system: Windows S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@ehuss
Copy link
Contributor

ehuss commented Mar 28, 2025

In Cargo's CI we have been seeing an increase in STATUS_STACK_OVERFLOW compiling random tests on Windows-gnu. The errors look like:

failures:

---- freshness::changing_rustflags_is_cached stdout ----
running `D:\a\cargo\cargo\target\debug\cargo.exe build`
running `D:\a\cargo\cargo\target\debug\cargo.exe build -v`

thread 'freshness::changing_rustflags_is_cached' panicked at tests\testsuite\freshness.rs:1345:10:

test failed running `D:\a\cargo\cargo\target\debug\cargo.exe build -v`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
   Compiling foo v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t1684\foo)
     Running `rustc --crate-name foo --edition=2015 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=8d32b86fdd4d874f -C extra-filename=-156101a981eb1fb8 --out-dir D:\a\cargo\cargo\target\tmp\cit\t1684\foo\target\debug\deps -L dependency=D:\a\cargo\cargo\target\tmp\cit\t1684\foo\target\debug\deps -C linker=cc`

thread 'main' has overflowed its stack
error: could not compile `foo` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name foo --edition=2015 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=8d32b86fdd4d874f -C extra-filename=-156101a981eb1fb8 --out-dir D:\a\cargo\cargo\target\tmp\cit\t1684\foo\target\debug\deps -L dependency=D:\a\cargo\cargo\target\tmp\cit\t1684\foo\target\debug\deps -C linker=cc` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)

failures:
    freshness::changing_rustflags_is_cached

test result: FAILED. 3600 passed; 1 failed; 46 ignored; 0 measured; 0 filtered out; finished in 524.42s

error: test failed, to rerun pass `-p cargo --test testsuite`
---- freshness::same_build_dir_cached_packages stdout ----
running `D:\a\cargo\cargo\target\debug\cargo.exe build`

thread 'freshness::same_build_dir_cached_packages' panicked at tests\testsuite\freshness.rs:818:10:

test failed running `D:\a\cargo\cargo\target\debug\cargo.exe build`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
     Locking 3 packages to latest compatible versions
   Compiling d v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t1713\foo\d)
   Compiling c v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t1713\foo\c)
   Compiling b v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t1713\foo\b)
   Compiling a1 v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t1713\foo\a1)

thread 'main' has overflowed its stack
error: could not compile `c` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name c --edition=2015 D:\a\cargo\cargo\target\tmp\cit\t1713\foo\c\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=c5428bb539fd3662 -C extra-filename=-4a7368518b97c39c --out-dir D:\a\cargo\cargo\target\tmp\cit\t1713\foo\./target\debug\deps -L dependency=D:\a\cargo\cargo\target\tmp\cit\t1713\foo\./target\debug\deps --extern d=D:\a\cargo\cargo\target\tmp\cit\t1713\foo\./target\debug\deps\libd-4905d440739651d9.rmeta` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
---- doc::doc_cap_lints stdout ----
running `D:\a\cargo\cargo\target\debug\cargo.exe doc`
thread 'doc::doc_cap_lints' panicked at tests\testsuite\doc.rs:1862:10:

test failed running `D:\a\cargo\cargo\target\debug\cargo.exe doc`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
    Updating git repository `file:///D:/a/cargo/cargo/target/tmp/cit/t1269/a`
     Locking 2 packages to latest compatible versions
 Documenting a v0.5.0 (file:///D:/a/cargo/cargo/target/tmp/cit/t1269/a#c880d9f9)
    Checking a v0.5.0 (file:///D:/a/cargo/cargo/target/tmp/cit/t1269/a#c880d9f9)
 Documenting foo v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t1269\foo)

thread 'main' has overflowed its stack
error: could not document `foo`

Caused by:
  process didn't exit successfully: `rustdoc --edition=2015 --crate-type lib --crate-name foo src\lib.rs -o D:\a\cargo\cargo\target\tmp\cit\t1269\foo\target\doc --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=a2606d6191998d14 -L dependency=D:\a\cargo\cargo\target\tmp\cit\t1269\foo\target\debug\deps --extern a=D:\a\cargo\cargo\target\tmp\cit\t1269\foo\target\debug\deps\liba-361a7c653cc52c35.rmeta --crate-version 0.0.1` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
 ---- doc::doc_all_workspace stdout ----
running `D:\a\cargo\cargo\target\debug\cargo.exe doc --workspace`
thread 'doc::doc_all_workspace' panicked at tests\testsuite\doc.rs:1217:10:

test failed running `D:\a\cargo\cargo\target\debug\cargo.exe doc --workspace`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
     Locking 2 packages to latest compatible versions
    Checking bar v0.1.0 (D:\a\cargo\cargo\target\tmp\cit\t1266\foo\bar)
 Documenting bar v0.1.0 (D:\a\cargo\cargo\target\tmp\cit\t1266\foo\bar)

thread 'main' has overflowed its stack
error: could not document `bar`

Caused by:
  process didn't exit successfully: `rustdoc --edition=2015 --crate-type lib --crate-name bar bar\src\lib.rs -o D:\a\cargo\cargo\target\tmp\cit\t1266\foo\target\doc --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=40cc2bd6c0ac6116 -L dependency=D:\a\cargo\cargo\target\tmp\cit\t1266\foo\target\debug\deps --crate-version 0.1.0` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
---- doc::doc_cap_lints stdout ----
running `D:\a\cargo\cargo\target\debug\cargo.exe doc`
running `D:\a\cargo\cargo\target\debug\cargo.exe doc -vv`
thread 'doc::doc_cap_lints' panicked at tests\testsuite\doc.rs:1872:10:

test failed running `D:\a\cargo\cargo\target\debug\cargo.exe doc -vv`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
    Checking a v0.5.0 (file:///D:/a/cargo/cargo/target/tmp/cit/t1268/a#6781128e)
 Documenting a v0.5.0 (file:///D:/a/cargo/cargo/target/tmp/cit/t1268/a#6781128e)
     Running `set CARGO=\\?\D:\a\cargo\cargo\target\debug\cargo.exe&& set CARGO_CRATE_NAME=a&& set CARGO_MANIFEST_DIR=D:\a\cargo\cargo\target\tmp\cit\t1268\home\.cargo\git\checkouts\a-8baaf4225d65e0c6\6781128&& set CARGO_PKG_AUTHORS=wycats@example.com&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=a&& set CARGO_PKG_README=""&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.5.0&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=5&& set CARGO_PKG_VERSION_PATCH=0&& set CARGO_PKG_VERSION_PRE=""&& set PATH="D:\a\cargo\cargo\target\tmp\cit\t1268\foo\target\debug\deps;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\bin;D:\a\cargo\cargo\target\debug\build\curl-sys-3cdfc50fd064581e\out\build;D:\a\cargo\cargo\target\debug\build\libgit2-sys-fe666c639a2e07ee\out\build;D:\a\cargo\cargo\target\debug\build\libnghttp2-sys-13fcb8b547fbe868\out\i\lib;D:\a\cargo\cargo\target\debug\build\libsqlite3-sys-37c5e72bff0a7ce3\out;D:\a\cargo\cargo\target\debug\build\libssh2-sys-8856f938628c929f\out\build;D:\a\cargo\cargo\target\debug\build\libz-sys-0d64be973d275c44\out\lib;D:\a\cargo\cargo\target\debug\build\libz-sys-896f62a45e9e91c5\out\lib;D:\a\cargo\cargo\target\debug\deps;D:\a\cargo\cargo\target\debug;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\runneradmin\bin;C:\Program Files\MongoDB\Server\5.0\bin;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x86)\NSIS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\2.15.7\x64;C:\cabal\bin;C:\\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.4.1\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver\;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.21.11\x64\bin;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\hostedtoolcache\windows\Ruby\3.0.7\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.412-8\x64\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\docker-compose;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\160\DTS\Binn\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.7\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI\;c:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps"&& rustc --crate-name a --edition=2015 D:\a\cargo\cargo\target\tmp\cit\t1268\home\.cargo\git\checkouts\a-8baaf4225d65e0c6\6781128\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" -C metadata=afbe6803dac1e694 -C extra-filename=-afbe6803dac1e694 --out-dir D:\a\cargo\cargo\target\tmp\cit\t1268\foo\target\debug\deps -L dependency=D:\a\cargo\cargo\target\tmp\cit\t1268\foo\target\debug\deps --cap-lints warn`
     Running `rustdoc --edition=2015 --crate-type lib --crate-name a D:\a\cargo\cargo\target\tmp\cit\t1268\home\.cargo\git\checkouts\a-8baaf4225d65e0c6\6781128\src\lib.rs --cap-lints warn -o D:\a\cargo\cargo\target\tmp\cit\t1268\foo\target\doc --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=afbe6803dac1e694 -L dependency=D:\a\cargo\cargo\target\tmp\cit\t1268\foo\target\debug\deps --crate-version 0.5.0`
warning: lint `broken_intra_doc_links` has been renamed to `rustdoc::broken_intra_doc_links`
 --> D:\a\cargo\cargo\target\tmp\cit\t1268\home\.cargo\git\checkouts\a-8baaf4225d65e0c6\6781128\src\lib.rs:2:9
  |
2 | #![deny(broken_intra_doc_links)]
  |         ^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `rustdoc::broken_intra_doc_links`
  |
  = note: `#[warn(renamed_and_removed_lints)]` on by default

warning: unresolved link to `bad_link`
 --> D:\a\cargo\cargo\target\tmp\cit\t1268\home\.cargo\git\checkouts\a-8baaf4225d65e0c6\6781128\src\lib.rs:4:6
  |
4 | /// [bad_link]
  |      ^^^^^^^^ no item named `bad_link` in scope
  |
  = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
note: the lint level is defined here
 --> D:\a\cargo\cargo\target\tmp\cit\t1268\home\.cargo\git\checkouts\a-8baaf4225d65e0c6\6781128\src\lib.rs:2:9
  |
2 | #![deny(broken_intra_doc_links)]
  |         ^^^^^^^^^^^^^^^^^^^^^^

warning: `a` (lib doc) generated 2 warnings
 Documenting foo v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t1268\foo)
     Running `rustdoc --edition=2015 --crate-type lib --crate-name foo src\lib.rs -o D:\a\cargo\cargo\target\tmp\cit\t1268\foo\target\doc --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=10d924ec6a37bdaa -L dependency=D:\a\cargo\cargo\target\tmp\cit\t1268\foo\target\debug\deps --extern a=D:\a\cargo\cargo\target\tmp\cit\t1268\foo\target\debug\deps\liba-afbe6803dac1e694.rmeta --crate-version 0.0.1`

thread 'main' has overflowed its stack
error: could not document `foo`
failures:

---- profile_targets::profile_selection_build_release stdout ----
running `D:\a\cargo\cargo\target\debug\cargo.exe build --release -vv`

thread 'profile_targets::profile_selection_build_release' panicked at tests\testsuite\profile_targets.rs:145:10:

test failed running `D:\a\cargo\cargo\target\debug\cargo.exe build --release -vv`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
     Locking 2 packages to latest compatible versions
   Compiling bar v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bar)
     Running `set CARGO=D:\a\cargo\cargo\target\debug\cargo.exe&& set CARGO_CRATE_NAME=bar&& set CARGO_MANIFEST_DIR=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bar&& set CARGO_MANIFEST_PATH=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bar\Cargo.toml&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=bar&& set CARGO_PKG_README=""&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.0.1&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=1&& set CARGO_PKG_VERSION_PRE=""&& set PATH="D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\bin;D:\a\cargo\cargo\target\debug\build\blake3-a4265f86280c5107\out;D:\a\cargo\cargo\target\debug\build\curl-sys-b3f2e6c4939088ec\out\build;D:\a\cargo\cargo\target\debug\build\libgit2-sys-2a5fa28a49f705c1\out\build;D:\a\cargo\cargo\target\debug\build\libnghttp2-sys-155686064c55fd24\out\i\lib;D:\a\cargo\cargo\target\debug\build\libsqlite3-sys-7802714309d1daec\out;D:\a\cargo\cargo\target\debug\build\libssh2-sys-d0892b079457631a\out\build;D:\a\cargo\cargo\target\debug\build\libz-sys-2c35a14dc6373c9e\out\lib;D:\a\cargo\cargo\target\debug\build\libz-sys-6057a72f44d66e73\out\lib;D:\a\cargo\cargo\target\debug\deps;D:\a\cargo\cargo\target\debug;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\runneradmin\bin;C:\Program Files\MongoDB\Server\5.0\bin;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x86)\NSIS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\3.3.1\x64;C:\cabal\bin;C:\\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.4.2\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver\;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.21.13\x64\bin;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\hostedtoolcache\windows\Ruby\3.0.7\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.442-6\x64\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\160\DTS\Binn\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.9\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI\;c:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps"&& rustc --crate-name bar --edition=2015 bar\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C codegen-units=6 -C debug-assertions=off --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=bd0fa342518bb84b -C extra-filename=-2c6d57fe1a0028e9 --out-dir D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps -C strip=debuginfo -L dependency=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps`
     Running `set CARGO=D:\a\cargo\cargo\target\debug\cargo.exe&& set CARGO_CRATE_NAME=bar&& set CARGO_MANIFEST_DIR=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bar&& set CARGO_MANIFEST_PATH=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bar\Cargo.toml&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=bar&& set CARGO_PKG_README=""&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.0.1&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=1&& set CARGO_PKG_VERSION_PRE=""&& set PATH="D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\bin;D:\a\cargo\cargo\target\debug\build\blake3-a4265f86280c5107\out;D:\a\cargo\cargo\target\debug\build\curl-sys-b3f2e6c4939088ec\out\build;D:\a\cargo\cargo\target\debug\build\libgit2-sys-2a5fa28a49f705c1\out\build;D:\a\cargo\cargo\target\debug\build\libnghttp2-sys-155686064c55fd24\out\i\lib;D:\a\cargo\cargo\target\debug\build\libsqlite3-sys-7802714309d1daec\out;D:\a\cargo\cargo\target\debug\build\libssh2-sys-d0892b079457631a\out\build;D:\a\cargo\cargo\target\debug\build\libz-sys-2c35a14dc6373c9e\out\lib;D:\a\cargo\cargo\target\debug\build\libz-sys-6057a72f44d66e73\out\lib;D:\a\cargo\cargo\target\debug\deps;D:\a\cargo\cargo\target\debug;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\runneradmin\bin;C:\Program Files\MongoDB\Server\5.0\bin;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x86)\NSIS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\3.3.1\x64;C:\cabal\bin;C:\\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.4.2\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver\;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.21.13\x64\bin;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\hostedtoolcache\windows\Ruby\3.0.7\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.442-6\x64\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\160\DTS\Binn\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.9\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI\;c:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps"&& rustc --crate-name bar --edition=2015 bar\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C embed-bitcode=no -C codegen-units=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=4ada65df1f645726 -C extra-filename=-02268c0159e5a1d9 --out-dir D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps -C strip=debuginfo -L dependency=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps`
   Compiling bdep v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bdep)
     Running `set CARGO=D:\a\cargo\cargo\target\debug\cargo.exe&& set CARGO_CRATE_NAME=bdep&& set CARGO_MANIFEST_DIR=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bdep&& set CARGO_MANIFEST_PATH=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bdep\Cargo.toml&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=bdep&& set CARGO_PKG_README=""&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.0.1&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=1&& set CARGO_PKG_VERSION_PRE=""&& set PATH="D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\bin;D:\a\cargo\cargo\target\debug\build\blake3-a4265f86280c5107\out;D:\a\cargo\cargo\target\debug\build\curl-sys-b3f2e6c4939088ec\out\build;D:\a\cargo\cargo\target\debug\build\libgit2-sys-2a5fa28a49f705c1\out\build;D:\a\cargo\cargo\target\debug\build\libnghttp2-sys-155686064c55fd24\out\i\lib;D:\a\cargo\cargo\target\debug\build\libsqlite3-sys-7802714309d1daec\out;D:\a\cargo\cargo\target\debug\build\libssh2-sys-d0892b079457631a\out\build;D:\a\cargo\cargo\target\debug\build\libz-sys-2c35a14dc6373c9e\out\lib;D:\a\cargo\cargo\target\debug\build\libz-sys-6057a72f44d66e73\out\lib;D:\a\cargo\cargo\target\debug\deps;D:\a\cargo\cargo\target\debug;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\runneradmin\bin;C:\Program Files\MongoDB\Server\5.0\bin;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x86)\NSIS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\3.3.1\x64;C:\cabal\bin;C:\\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.4.2\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver\;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.21.13\x64\bin;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\hostedtoolcache\windows\Ruby\3.0.7\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.442-6\x64\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\160\DTS\Binn\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.9\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI\;c:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps"&& rustc --crate-name bdep --edition=2015 bdep\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C codegen-units=6 -C debug-assertions=off --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=0c1faeda3ac742ff -C extra-filename=-ea3e373b59ed694f --out-dir D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps -C strip=debuginfo -L dependency=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps --extern bar=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps\libbar-2c6d57fe1a0028e9.rmeta`

thread 'main' has overflowed its stack
error: could not compile `bdep` (lib)

Caused by:
  process didn't exit successfully: `set CARGO=D:\a\cargo\cargo\target\debug\cargo.exe&& set CARGO_CRATE_NAME=bdep&& set CARGO_MANIFEST_DIR=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bdep&& set CARGO_MANIFEST_PATH=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\bdep\Cargo.toml&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=bdep&& set CARGO_PKG_README=""&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.0.1&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=1&& set CARGO_PKG_VERSION_PRE=""&& set PATH="D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\bin;D:\a\cargo\cargo\target\debug\build\blake3-a4265f86280c5107\out;D:\a\cargo\cargo\target\debug\build\curl-sys-b3f2e6c4939088ec\out\build;D:\a\cargo\cargo\target\debug\build\libgit2-sys-2a5fa28a49f705c1\out\build;D:\a\cargo\cargo\target\debug\build\libnghttp2-sys-155686064c55fd24\out\i\lib;D:\a\cargo\cargo\target\debug\build\libsqlite3-sys-7802714309d1daec\out;D:\a\cargo\cargo\target\debug\build\libssh2-sys-d0892b079457631a\out\build;D:\a\cargo\cargo\target\debug\build\libz-sys-2c35a14dc6373c9e\out\lib;D:\a\cargo\cargo\target\debug\build\libz-sys-6057a72f44d66e73\out\lib;D:\a\cargo\cargo\target\debug\deps;D:\a\cargo\cargo\target\debug;C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\runneradmin\bin;C:\Program Files\MongoDB\Server\5.0\bin;C:\aliyun-cli;C:\vcpkg;C:\Program Files (x86)\NSIS\;C:\tools\zstd;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\3.3.1\x64;C:\cabal\bin;C:\\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.4.2\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver\;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.21.13\x64\bin;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\hostedtoolcache\windows\Ruby\3.0.7\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.442-6\x64\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\160\DTS\Binn\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.9\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI\;c:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps"&& rustc --crate-name bdep --edition=2015 bdep\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C codegen-units=6 -C debug-assertions=off --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=0c1faeda3ac742ff -C extra-filename=-ea3e373b59ed694f --out-dir D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps -C strip=debuginfo -L dependency=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps --extern bar=D:\a\cargo\cargo\target\tmp\cit\t2664\foo\target\release\deps\libbar-2c6d57fe1a0028e9.rmeta` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)



failures:
    profile_targets::profile_selection_build_release
---- source_replacement::publish_with_replacement stdout ----
running `D:\a\cargo\cargo\target\debug\cargo.exe publish --registry crates-io`
req: Request {
    url: Url {
        scheme: "http",
        cannot_be_a_base: false,
        username: "",
        password: None,
        host: Some(
            Ipv4(
                127.0.0.1,
            ),
        ),
        port: Some(
            57222,
        ),
        path: "/dl/bar/1.0.0/download",
        query: None,
        fragment: None,
    },
    method: "get",
    authorization: None,
    if_modified_since: None,
    if_none_match: None,
}
D:\a\cargo\cargo\target\tmp\cit\t3286\alternative-dl\bar/1.0.0/download

thread 'source_replacement::publish_with_replacement' panicked at tests\testsuite\source_replacement.rs:229:10:

test failed running `D:\a\cargo\cargo\target\debug\cargo.exe publish --registry crates-io`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
    Updating crates.io index
warning: manifest has no documentation, homepage or repository.
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
   Packaging foo v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t3286\foo)
    Updating `alternative` index
    Packaged 4 files, 1.4KiB (849B compressed)
   Verifying foo v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t3286\foo)
 Downloading crates ...
  Downloaded bar v1.0.0 (registry `alternative`)
   Compiling bar v1.0.0
   Compiling foo v0.0.1 (D:\a\cargo\cargo\target\tmp\cit\t3286\foo\target\package\foo-0.0.1)

thread 'main' has overflowed its stack
error: could not compile `foo` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name foo --edition=2015 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=db71dacbf23eac25 -C extra-filename=-55fddc08d94ba958 --out-dir D:\a\cargo\cargo\target\tmp\cit\t3286\foo\target\package/foo-0.0.1\target\debug\deps -L dependency=D:\a\cargo\cargo\target\tmp\cit\t3286\foo\target\package/foo-0.0.1\target\debug\deps --extern bar=D:\a\cargo\cargo\target\tmp\cit\t3286\foo\target\package/foo-0.0.1\target\debug\deps\libbar-bba4dd51250aa204.rmeta` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
error: failed to verify package tarball



failures:
    source_replacement::publish_with_replacement

These tests are generally doing trivial things.

I haven't had time yet to investigate or try to reproduce.

Example PRs with the failure:

@ehuss ehuss added the C-bug Category: This is a bug. label Mar 28, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 28, 2025
@jieyouxu jieyouxu added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. O-windows-gnu Toolchain: GNU, Operating system: Windows S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Mar 28, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Mar 28, 2025

That's suspicious. And it's spurious right? Even trying to build the same test doesn't always overflow?

@ehuss
Copy link
Contributor Author

ehuss commented Mar 28, 2025

Yea, it's random. When I find some time, I'll try doing some stress tests to see if it is reproducible.

@jieyouxu jieyouxu added the A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) label Apr 8, 2025
@ColinFinck
Copy link
Contributor

ColinFinck commented Apr 15, 2025

FWIW, I'm also regularly seeing this problem when running cargo doc (--> rustdoc) with the x86_64-pc-windows-gnu build of nightly-2025-04-06.
Managed to get a full memory dump of rustdoc.exe. However, unlike the MSVC version, the GNU nightly builds don't ship with any debug symbols if I'm not mistaken. Please correct me if I'm wrong.

This is the stack trace I get in WinDbg at the moment of the STATUS_STACK_OVERFLOW exception:

Frame Index | Call Site        | Child-SP       | Return Address
.... (more repeating frames omitted)
[0x897]   0xffffffffffffffff   0x8954ff3d98   0x7ff604b39b42   
[0x898]   rustdoc+0x749b42   0x8954ff3da0   0x7ff878f3e963   
[0x899]   ntdll!_C_specific_handler+0x93   0x8954ff3dd0   0x7ff878f806ff   
[0x89a]   ntdll!RtlpExecuteHandlerForException+0xf   0x8954ff3e40   0x7ff878e5a328   
[0x89b]   ntdll!RtlDispatchException+0x2c8   0x8954ff3e70   0x7ff878f8003e   
[0x89c]   ntdll!KiUserExceptionDispatch+0x2e   0x8954ff45c0   0xffffffffffffffff   
[0x89d]   0xffffffffffffffff   0x8954ff5318   0x7ff604b39b42   
[0x89e]   rustdoc+0x749b42   0x8954ff5320   0x7ff878f3e963   
[0x89f]   ntdll!_C_specific_handler+0x93   0x8954ff5350   0x7ff878f806ff   
[0x8a0]   ntdll!RtlpExecuteHandlerForException+0xf   0x8954ff53c0   0x7ff878e5a328   
[0x8a1]   ntdll!RtlDispatchException+0x2c8   0x8954ff53f0   0x7ff878f8003e   
[0x8a2]   ntdll!KiUserExceptionDispatch+0x2e   0x8954ff5b40   0xffffffffffffffff   
[0x8a3]   0xffffffffffffffff   0x8954ff6898   0x7ff604b39b42   
[0x8a4]   rustdoc+0x749b42   0x8954ff68a0   0x7ff878f3e963   
[0x8a5]   ntdll!_C_specific_handler+0x93   0x8954ff68d0   0x7ff878f806ff   
[0x8a6]   ntdll!RtlpExecuteHandlerForException+0xf   0x8954ff6940   0x7ff878e5a328   
[0x8a7]   ntdll!RtlDispatchException+0x2c8   0x8954ff6970   0x7ff878f8003e   
[0x8a8]   ntdll!KiUserExceptionDispatch+0x2e   0x8954ff70c0   0xffffffffffffffff   
[0x8a9]   0xffffffffffffffff   0x8954ff7e18   0x7ff604b39b42   
[0x8aa]   rustdoc+0x749b42   0x8954ff7e20   0x7ff878f3e963   
[0x8ab]   ntdll!_C_specific_handler+0x93   0x8954ff7e50   0x7ff878f806ff   
[0x8ac]   ntdll!RtlpExecuteHandlerForException+0xf   0x8954ff7ec0   0x7ff878e5a328   
[0x8ad]   ntdll!RtlDispatchException+0x2c8   0x8954ff7ef0   0x7ff878f8003e   
[0x8ae]   ntdll!KiUserExceptionDispatch+0x2e   0x8954ff8640   0xffffffffffffffff   
[0x8af]   0xffffffffffffffff   0x8954ff9398   0x7ff604b39b42   
[0x8b0]   rustdoc+0x749b42   0x8954ff93a0   0x7ff878f3e963   
[0x8b1]   ntdll!_C_specific_handler+0x93   0x8954ff93d0   0x7ff878f806ff   
[0x8b2]   ntdll!RtlpExecuteHandlerForException+0xf   0x8954ff9440   0x7ff878e5a328   
[0x8b3]   ntdll!RtlDispatchException+0x2c8   0x8954ff9470   0x7ff878f8003e   
[0x8b4]   ntdll!KiUserExceptionDispatch+0x2e   0x8954ff9bc0   0xffffffffffffffff   
[0x8b5]   0xffffffffffffffff   0x8954ffa918   0x7ff604b39b42   
[0x8b6]   rustdoc+0x749b42   0x8954ffa920   0x7ff878f3e963   
[0x8b7]   ntdll!_C_specific_handler+0x93   0x8954ffa950   0x7ff878f806ff   
[0x8b8]   ntdll!RtlpExecuteHandlerForException+0xf   0x8954ffa9c0   0x7ff878e5a328   
[0x8b9]   ntdll!RtlDispatchException+0x2c8   0x8954ffa9f0   0x7ff878f8003e   
[0x8ba]   ntdll!KiUserExceptionDispatch+0x2e   0x8954ffb140   0xffffffffffffffff   
[0x8bb]   0xffffffffffffffff   0x8954ffbe98   0x7ff604b39b42   
[0x8bc]   rustdoc+0x749b42   0x8954ffbea0   0x7ff878f3e963   
[0x8bd]   ntdll!_C_specific_handler+0x93   0x8954ffbed0   0x7ff878f806ff   
[0x8be]   ntdll!RtlpExecuteHandlerForException+0xf   0x8954ffbf40   0x7ff878e5a328   
[0x8bf]   ntdll!RtlDispatchException+0x2c8   0x8954ffbf70   0x7ff878f8003e   
[0x8c0]   ntdll!KiUserExceptionDispatch+0x2e   0x8954ffc6c0   0x7ff850a091f4   
[0x8c1]   libwinpthread_1!nanosleep+0x15e4   0x8954ffd400   0x7ff8508fcdfb   
[0x8c2]   libgcc_s_seh_1!_emutls_get_address+0x6b   0x8954ffd470   0x7fffce9f4549   
[0x8c3]   rustc_driver_0e8a3d66a1e0e9fc!LLVMRustGetTypeKind+0x3cfaf19   0x8954ffd4c0   0x7fffce747e27   
[0x8c4]   rustc_driver_0e8a3d66a1e0e9fc!LLVMRustGetTypeKind+0x3a4e7f7   0x8954ffd4f0   0x7fffce921228   
[0x8c5]   rustc_driver_0e8a3d66a1e0e9fc!LLVMRustGetTypeKind+0x3c27bf8   0x8954ffd540   0x7fffcacca56c   
[0x8c6]   rustc_driver_0e8a3d66a1e0e9fc!RNvNtCsexb372Ypib1_3log13___private_api3loc+0x305c   0x8954ffd570   0x7fffc747114c   
[0x8c7]   rustc_driver_0e8a3d66a1e0e9fc+0x114c   0x8954ffd5b0   0x7fffc74712e4   
[0x8c8]   rustc_driver_0e8a3d66a1e0e9fc+0x12e4   0x8954ffd610   0x7ff878e58830   
[0x8c9]   ntdll!LdrpCallInitRoutine+0xb0   0x8954ffd660   0x7ff878ed24f0   
[0x8ca]   ntdll!LdrShutdownProcess+0x260   0x8954ffd940   0x7ff878ed16b4   
[0x8cb]   ntdll!RtlExitUserProcess+0x114   0x8954ffda50   0x7ff8509718ab   
[0x8cc]   kernel32!ExitProcessImplementation+0xb   0x8954ffda80   0x7fffeecd719f   
[0x8cd]   std_3146258d839c2965!ZN3std3sys3pal7windows2os8unsetenv17h78ab5b230fd7d219E+0x8f   0x8954ffdab0   0x7fffeeccb4b9   
[0x8ce]   std_3146258d839c2965!ZN3std7process4exit17hadc5cc79d1d685a2E+0x19   0x8954ffdae0   0x7ff60445d76b   
[0x8cf]   rustdoc+0x6d76b   0x8954ffdb20   0x7ff6043f1456   
[0x8d0]   rustdoc+0x1456   0x8954fff960   0x7ff6043f146c   
[0x8d1]   rustdoc+0x146c   0x8954fff990   0x7fffeecb42a2   
[0x8d2]   std_3146258d839c2965!ZN3std2rt19lang_start_internal17h0cff959974712202E+0x72   0x8954fff9c0   0x7ff6043f14ed   
[0x8d3]   rustdoc+0x14ed   0x8954fffa60   0x7ff6043f12ef   
[0x8d4]   rustdoc+0x12ef   0x8954fffab0   0x7ff6043f1406   
[0x8d5]   rustdoc+0x1406   0x8954fffb00   0x7ff85095e8d7   
[0x8d6]   kernel32!BaseThreadInitThunk+0x17   0x8954fffb30   0x7ff878ed14fc   
[0x8d7]   ntdll!RtlUserThreadStart+0x2c   0x8954fffb60   0x0   

Without debug symbols, I only have Ghidra here to make some sense of this stack trace and the addresses.
Looks to me like something in rustdoc is causing an exception, which is then attempted to be handled, but the exception handling actually causes an infinite recursion, eventually leading to a stack overflow.

CC @ehuss

@ehuss
Copy link
Contributor Author

ehuss commented Apr 16, 2025

Just an update on this, I was able to reproduce it on my local machine just running rustdoc on an empty lib, but it was quite rare and difficult.

I don't really know how to debug, though. 😦 Was going to try ProcDump, but this is taking too much time.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-bug Category: This is a bug. E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows-gnu Toolchain: GNU, Operating system: Windows S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants