Skip to content
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

calling native passing struct by value is broken on x86 #2035

Closed
graydon opened this issue Mar 21, 2012 · 1 comment
Closed

calling native passing struct by value is broken on x86 #2035

graydon opened this issue Mar 21, 2012 · 1 comment
Labels
A-codegen Area: Code generation I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone

Comments

@graydon
Copy link
Contributor

graydon commented Mar 21, 2012

Followup to #1970.

One of the two tests in struct-return.rs doesn't work on x86. Works on x64 though.

The double/byte/double one winds up feeding garbage memory to the callee. Valgrind gets upset. Program crashes.

@ghost ghost assigned graydon Mar 21, 2012
@graydon
Copy link
Contributor Author

graydon commented Mar 29, 2012

Duplicated in #2064 but that one has more context so closing this one.

@graydon graydon closed this as completed Mar 29, 2012
@graydon graydon removed their assignment Jun 16, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Projects
None yet
Development

No branches or pull requests

1 participant