-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
panicked at 'assertion failed: max_phys_addr < (1 << 48) / 512' in post-09 #1138
Comments
Seeing the same thing on Macos with |
Thanks for reporting! We currently see a test failure on our macOS CI runners as well. When I compared the logs for the last-working run and the first failing one, I noticed that QEMU updated from v7.0.0 to v7.1.0. The runners for Ubuntu and Windows stil use much older QEMU versions and don't show any problems. Since Arch Linux is also typically running the newest software, I could imagine that this is triggered by the QEMU v7.1.0 release. Could you check your QEMU versions to see if my suspicion is correct? |
The assertion failure happens here: https://github.com/rust-osdev/bootloader/blob/42da77b47558478c5a948d27cac80767b484eacc/src/main.rs#L289-L291 . If the assertion fails, it means that the memory map contains a memory region at address >512GiB, which is a bit strange. I think you should be able to bypass the assertion by creating a |
I can confirm I have QEmu 7.1.0 installed. I used your workaround which indeed removed the panic, and was able to print the memory map:
Hope this helps. |
It does, thanks a lot! Looks like there is indeed a new reserved memory region just below the 1TiB mark now. |
Yes, can confirm that the computer it's failing on runs QEMU 7.1.0 and the one it works on is running 7.0.0. Also, set the offset in Cargo.toml and it is now working again (on 7.1.0). Thanks for the workaround! |
Thanks! Let's keep this issue open for now, this is something that we should fix in the |
Fixed in rust-osdev/bootloader#264 |
Crashed when running my code, and confirmed occurring as well with the code from
post-09
branch.It does not appear to be using my own panic handler (won't print text other than the error), even though other panics do.
Running Arch Linux, Rustc 1.65 nightly, QEMU 7.1.0. Same error occurs on Windows.
6th gen i7, 48GB RAM.
Error does not appear on another PC which is running a 10th gen i7 (QEMU 7.0.0).
The text was updated successfully, but these errors were encountered: