-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
failed to mmap rmeta metadata #89795
Comments
cc #88368 This is not an erroneous situation, the |
I think ignoring 0 sized rmeta files specifically is fine. I would prefer to keep it a warning for bigger files. In any case please don't make it a |
This test is failing in nightly due to: rust-lang/rust#89795 Disabling the test for now to get the CI happy again. Will keep rust-osdev#299 open as a reminder to re-enable the test once the underlying issue has been fixed.
This test is failing in nightly due to: rust-lang/rust#89795 Disabling the test for now to get the CI happy again. Will keep #299 open as a reminder to re-enable the test once the underlying issue has been fixed.
|
This reverts commit a4f4fd2. The upstream issue that was causing these tests to fail has been fixed: rust-lang/rust#89795 Fixes rust-osdev#299
This reverts commit a4f4fd2. The upstream issue that was causing these tests to fail has been fixed: rust-lang/rust#89795 Fixes #299
…henkov Demote metadata load warning to "info". There is a warn log message for whenever the crate loader fails to load metadata from a candidate file. I think this warning is too aggressive, as there are several situations where metadata information might not be found in a candidate file, which is normal. Also, this warning is somewhat confusing, and non-actionable in most cases for a user (most users will not know what it means). If the crate loader ultimately does not find a valid crate, then an error will be reported (and hopefully rust-lang#88368 will improve that error message). If a rustc developer wants to debug a loader problem, they can still use `RUSTC_LOG=rustc_metadata=debug` and get the details. There is more discussion of this particular warning at rust-lang#89795 (comment). Fixes rust-lang#90525
…henkov Demote metadata load warning to "info". There is a warn log message for whenever the crate loader fails to load metadata from a candidate file. I think this warning is too aggressive, as there are several situations where metadata information might not be found in a candidate file, which is normal. Also, this warning is somewhat confusing, and non-actionable in most cases for a user (most users will not know what it means). If the crate loader ultimately does not find a valid crate, then an error will be reported (and hopefully rust-lang#88368 will improve that error message). If a rustc developer wants to debug a loader problem, they can still use `RUSTC_LOG=rustc_metadata=debug` and get the details. There is more discussion of this particular warning at rust-lang#89795 (comment). Fixes rust-lang#90525
…henkov Demote metadata load warning to "info". There is a warn log message for whenever the crate loader fails to load metadata from a candidate file. I think this warning is too aggressive, as there are several situations where metadata information might not be found in a candidate file, which is normal. Also, this warning is somewhat confusing, and non-actionable in most cases for a user (most users will not know what it means). If the crate loader ultimately does not find a valid crate, then an error will be reported (and hopefully rust-lang#88368 will improve that error message). If a rustc developer wants to debug a loader problem, they can still use `RUSTC_LOG=rustc_metadata=debug` and get the details. There is more discussion of this particular warning at rust-lang#89795 (comment). Fixes rust-lang#90525
Since #89634, rustc has been spewing this warning:
This happens particularly when using
-L
to load a sysroot crate, and using--emit metadata
. This can happen withx.py check
(using latest master as stage0 rustc), though I imagine it can happen in other scenarios.x.py check
uses cargo's--all-targets
which ends up including tests in the checks.Reproduction:
The cause of this particular error is that
memmap2 0.2.1
returns an error it attempts to mmap a file of 0 length (though IIRC, the behavior is platform-specific)..rmeta
files produced for binaries (such as with--test
) have 0 length (#67293).Possible Solutions
warn!
toinfo!
ordebug!
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: