-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 'arithmetic operation overflowed' #25362
Comments
Is this a 64-bit PowerPC target, or a 32-bit one? (I cannot immediately tell from the target's |
It's 32-bit. (It's definitely confusing...) |
Okay. I'm betting we can reproduce this if we cross compile from a 64-bit target to any 32-bit one; namely cross-compiling from x86_64 to i686 (or whatever it is called). I'll look into trying that when I get a chance. |
Triage: I bet https://github.com/japaric/cross would make this easy to reproduce; I can't do it at the moment though. |
For some definition of easy, I guess 😂 |
Triage: are you still seeing this problem? Can anyone reproduce? |
Sorry for late reply. $ cargo run --target x86_64-unknown-linux-gnu
Finished dev [unoptimized + debuginfo] target(s) in 1.32s
Running `target/x86_64-unknown-linux-gnu/debug/hash-test`
10274620341943426671
16828784525031417047
$ cross run --target powerpc-unknown-linux-gnu
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
Running `qemu-ppc /target/powerpc-unknown-linux-gnu/debug/hash-test`
12793483990194865043
15425382868227043520 |
@hrektts Hashes are only guaranteed to be same inside the same process. It's obviously different between architectures, and it's even allowed to vary between different execution (though I don't know if we implement such randomisation). |
@ishitatsuyuki Ah, I misunderstood about it. I thought that it was something like the git commit hash. Thanks for your comment. Since there is no error anymore, I will close this. |
I encountered the following error when I ran the program shown in here.
The program is compiled on a host machine, which is x86_64-linux, for a powerpc-linux target machine.
This error doesn't occur when the same program is build and run on x86_64-linux.
Any idea?
Error on a powerpc-linux target machine:
and backtrace:
Additional info of host machine:
Additional info of target machine:
The text was updated successfully, but these errors were encountered: