-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memmap2 write_all call panics on cacache 10 #32
Comments
#31 there's a PR for this, but it seems to be a bug in memmap2 itself, so I've been hesitant to merge that PR. I thought the author had sent a bug report over to memmap2 but I guess that didn't happen. I'll go file that issue. In the meantime, you can safely downgrade to cacache@9.0. The only thing that's changed since then is the bump to memmap2, which is what caused this crash. |
^ and there's the memmap2 bug |
Fixed in 10.0.1 |
I'm still seeing this issue with inputs <= 1MiB. That is, this works: let _ = cacache::write_hash("./cache", &[b'a'; 1024 * 1024 + 1]).await; But this results in a panic: let _ = cacache::write_hash("./cache", &[b'a'; 1024 * 1024]).await;
The issue doesn't occur when using |
This appears to happen with any vec <= the memmap size.
That backtrace points at:
I tested manually lowering the max memmap limit to 0 and it started working again; also pinning cacache at v9 seems to pass as well. I noticed this with both sync and async calls of
cacache::write_hash
.My machine is:
If there's any other info I can post here to help please let me know, & thanks for cacache!
The text was updated successfully, but these errors were encountered: