{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/25362","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/25362/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/25362/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/25362/events","html_url":"https://github.com/rust-lang/rust/issues/25362","id":75892847,"number":25362,"title":"Panicked at 'arithmetic operation overflowed'","user":{"login":"hrektts","id":4771067,"avatar_url":"https://avatars.githubusercontent.com/u/4771067?v=3","gravatar_id":"","url":"https://api.github.com/users/hrektts","html_url":"https://github.com/hrektts","followers_url":"https://api.github.com/users/hrektts/followers","following_url":"https://api.github.com/users/hrektts/following{/other_user}","gists_url":"https://api.github.com/users/hrektts/gists{/gist_id}","starred_url":"https://api.github.com/users/hrektts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrektts/subscriptions","organizations_url":"https://api.github.com/users/hrektts/orgs","repos_url":"https://api.github.com/users/hrektts/repos","events_url":"https://api.github.com/users/hrektts/events{/privacy}","received_events_url":"https://api.github.com/users/hrektts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T08:08:32Z","updated_at":"2015-05-13T14:04:46Z","closed_at":null,"body":"I encountered the following error when I ran the program shown in [here](http://stackoverflow.com/a/29573951).\r\nThe program is compiled on a host machine, which is x86_64-linux, for a powerpc-linux target machine.\r\nThis error doesn't occur when the same program is build and run on x86_64-linux.\r\n\r\nAny idea?\r\n\r\n\r\nError on a powerpc-linux target machine:\r\n```\r\nthread '<main>' panicked at 'arithmetic operation overflowed', /home/dev/src/rust/src/libcore/hash/sip.rs:132\r\n```\r\n\r\nand backtrace:\r\n```\r\nstack backtrace:\r\n   1: 0x202186cb - sys::backtrace::write::hc5626c9e3e0501c9bhs\r\n   2: 0x2021bf73 - panicking::on_panic::h96b5dcfa293f235fkXw\r\n   3: 0x202020e7 - rt::unwind::begin_unwind_inner::hf20ebac6e3946e66uCw\r\n   4: 0x20202263 - rt::unwind::begin_unwind_fmt::h9e7625955282a32cABw\r\n   5: 0x2021b893 - rust_begin_unwind\r\n   6: 0x20255567 - panicking::panic_fmt::had30524245a9e2c9EJy\r\n   7: 0x2025552b - panicking::panic::ha2c639b2e7b39d75bIy\r\n   8: 0x201fbe07 - hash::sip::SipHasher::write::h7635dfd3dbc8a7ccAVG\r\n                at /home/dev/src/rust/src/libcore/hash/sip.rs:132\r\n   9: 0x201fbc93 - hash::sip::SipHasher.Hasher::write::h94c8a32a653d4fde3bH\r\n                at /home/dev/src/rust/src/libcore/hash/sip.rs:175\r\n  10: 0x201fbc1b - hash::Hasher::write_u32::h3033101901876172782\r\n                at /home/dev/src/rust/src/libcore/hash/mod.rs:125\r\n  11: 0x201fbba7 - hash::impls::u32.Hash::hash::h69350134608348974\r\n                at /home/dev/src/rust/src/libcore/hash/mod.rs:190\r\n  12: 0x201fbb3f - Person...std..hash..Hash::hash::h9556475301775050917\r\n                at src/main.rs:5\r\n  13: 0x201fb8a3 - my_hash::h11966543868887286583\r\n                at src/main.rs:14\r\n  14: 0x201f82e7 - main::hd517835c7e164da5Aba\r\n                at src/main.rs:22\r\n  15: 0x2021ded3 - rt::unwind::try::try_fn::h677838005097809313\r\n  16: 0x20220be7 - rust_try_inner\r\n  17: 0x20220bb3 - rust_try\r\n  18: 0x2021daeb - rt::lang_start::hff0e75f58cd428aePRw\r\n  19: 0x202003eb - main\r\n  20: 0x1ffb6703 - <unknown>\r\n```\r\n\r\nAdditional info of host machine:\r\n```\r\n$ uname -a\r\nLinux ... 3.13.0-52-generic #86-Ubuntu SMP Mon May 4 04:32:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n$ rustc -V --verbose\r\nrustc 1.1.0-dev (05d5fcaa5 2015-05-07) (built 2015-05-07)\r\nbinary: rustc\r\ncommit-hash: 05d5fcaa5ba0c385e1dc97037c89fae437634fc3\r\ncommit-date: 2015-05-07\r\nbuild-date: 2015-05-07\r\nhost: x86_64-unknown-linux-gnu\r\nrelease: 1.1.0-dev\r\n\r\n$ cargo -V --verbose\r\ncargo 0.2.0 (ece2a92 2015-05-06) (built 2015-05-07)\r\n```\r\n\r\nAdditional info of target machine:\r\n```\r\n$ uname -a\r\nLinux ... 2.6.30.3 #34 Tue Dec 17 09:52:34 PST 2013 ppc GNU/Linux\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/101674122","html_url":"https://github.com/rust-lang/rust/issues/25362#issuecomment-101674122","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/25362","id":101674122,"user":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T14:04:46Z","updated_at":"2015-05-13T14:04:46Z","body":"Is this a 64-bit PowerPC target, or a 32-bit one?  (I cannot immediately tell from the target's `uname -a` output...)"}}