Skip to content

Arithmetic operation overflowed in rustc_trans::trans::cabi_x86_64 #29073

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
apasel422 opened this issue Oct 15, 2015 · 4 comments
Closed

Arithmetic operation overflowed in rustc_trans::trans::cabi_x86_64 #29073

apasel422 opened this issue Oct 15, 2015 · 4 comments
Assignees

Comments

@apasel422
Copy link
Contributor

I'm getting an "arithmetic operation overflowed" ICE in librustc_trans/trans/cabi_x86_64.rs on line 454 when building stage1 libstd on 64-bit Ubuntu. Likely related to #27017.

@alexcrichton
Copy link
Member

cc @luqmana

@apasel422
Copy link
Contributor Author

Note that this occurred with --enable-debug --enable-debug-assertions. More reason to fix #27010.

@luqmana luqmana self-assigned this Oct 15, 2015
@apasel422
Copy link
Contributor Author

From what I can tell, this is choking on the getnameinfo function, which takes 7 "integer" arguments:

extern "system" {
     fn getnameinfo(sa: *const libc::sockaddr, salen: socklen_t,
                    host: *mut c_char, hostlen: libc::size_t,
                    serv: *mut c_char, servlen: libc::size_t,
                    flags: c_int) -> c_int;
}

@luqmana
Copy link
Member

luqmana commented Oct 15, 2015

Yup, I know what the issue is. I'll get a fix up as soon as I get home.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants