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
On FreeBSD 12-CURRENT, the std::sys::imp::fs::remove_dir_all_recursive function can suffer from infinite recursion. I bumped into this problem when running cargo test in the gcc-rs crate, but it seems like a more general problem: I should think that a recursive function would include base-case tests to avoid infinite recursion. Running cargo test causes a core file to be emitted; running this through lldb yields:
[... a couple of thousand lines of backtrace ...]
frame #2040: 0x00000000010e96df cc_env-7bd47b4ac897ea8e`std::sys::imp::fs::remove_dir_all_recursive at fs.rs:672
frame #2041: 0x00000000010e96df cc_env-7bd47b4ac897ea8e`std::sys::imp::fs::remove_dir_all_recursive at fs.rs:672
frame #2042: 0x00000000010e96df cc_env-7bd47b4ac897ea8e`std::sys::imp::fs::remove_dir_all_recursive at fs.rs:672
frame #2043: 0x00000000010e955b cc_env-7bd47b4ac897ea8e`std::sys::imp::fs::remove_dir_all at fs.rs:664
frame #2044: 0x0000000001051286 cc_env-7bd47b4ac897ea8e`std::fs::remove_dir_all::hece5f45f7740fcc3 + 70
frame #2045: 0x0000000001057e3f cc_env-7bd47b4ac897ea8e`tempdir::TempDir::cleanup_dir::ha833124c67f05942 + 79
frame #2046: 0x0000000001057e74 cc_env-7bd47b4ac897ea8e`_$LT$tempdir..TempDir$u20$as$u20$core..ops..drop..Drop$GT$::drop::hf7d24f98e7c69fab + 36
frame #2047: 0x0000000001045765 cc_env-7bd47b4ac897ea8e`core::ptr::drop_in_place<tempdir::TempDir>((null)=0x00007fffdfffd5b0) at ptr.rs:61
frame #2048: 0x0000000001046425 cc_env-7bd47b4ac897ea8e`core::ptr::drop_in_place::hb964672cda22d903 + 21
frame #2049: 0x000000000104ec66 cc_env-7bd47b4ac897ea8e`cc_env::support::Test::gnu::ha935bcf832b37c65 + 134
In terms of my currently-running version, rustup show yields:
On FreeBSD
12-CURRENT
, thestd::sys::imp::fs::remove_dir_all_recursive
function can suffer from infinite recursion. I bumped into this problem when runningcargo test
in thegcc-rs
crate, but it seems like a more general problem: I should think that a recursive function would include base-case tests to avoid infinite recursion. Runningcargo test
causes a core file to be emitted; running this throughlldb
yields:In terms of my currently-running version,
rustup show
yields:The text was updated successfully, but these errors were encountered: