-
Notifications
You must be signed in to change notification settings - Fork 13.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
ICE (stable segfault) in LLVM with creative FFI types #54410
Closed
Labels
A-codegen
Area: Code generation
A-diagnostics
Area: Messages for errors, warnings, and lints
A-FFI
Area: Foreign function interface (FFI)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
|
visited for triage. General consensus was that going from a segfault to an ICE (an the ICE is preceded by a warning pointing you to what is wrong in your code), does not exactly seem like a regression. |
@oli-obk is going to mentor how to make this even nicer. |
On Thu, Oct 11, 2018 at 02:42:04PM +0000, Felix S Klock II wrote:
visited for triage. General consensus was that going from a segfault to an ICE (an the ICE is preceded by a warning pointing you to what is wrong in your code), does not exactly seem like a regression.
I don't consider it a regression; on the contrary, turning a segfault
into an ICE seems like an improvement. Still a bug, though. :)
|
oli-obk
added a commit
to oli-obk/cargo
that referenced
this issue
Oct 15, 2018
statics (even extern ones) will get their type checked for a `Sized` bound in order to fix rust-lang/rust#54410
bors
added a commit
to rust-lang/cargo
that referenced
this issue
Oct 16, 2018
Future proof an unstable test statics (even extern ones) will get their type checked for a `Sized` bound in order to fix rust-lang/rust#54410
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Oct 18, 2018
Check the type of statics and constants for `Sized`ness fixes rust-lang#54410
bors
added a commit
that referenced
this issue
Oct 19, 2018
Check the type of statics and constants for `Sized`ness fixes #54410
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-codegen
Area: Code generation
A-diagnostics
Area: Messages for errors, warnings, and lints
A-FFI
Area: Foreign function interface (FFI)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Found this while experimenting with the right FFI type to declare a
char[]
(notchar *
) symbol in anextern "C"
block. Credit to @acfoltzer for the original code sample that I tweaked to end up with this error. This produces an ICE on nightly, or a segfault on stable.rustc 1.30.0-nightly (20dc0c507 2018-09-19)
Code:
Result:
The text was updated successfully, but these errors were encountered: