-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Inline Assembly cause segmentation fault when define label. #14375
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
Comments
LLDB says |
This appears to have been fixed in more recent versions of LLVM (and the currently bundled one) |
@alexcrichton This doesn't seem to be fixed on OS X, or at least it's happening again. Using labels seems to cause |
Aha I missed the OSX part of this! |
Triage: a year and a half later, I'm not sure if this is fixed, as I don't have a mac. We've upgraded LLVM a number of times.... |
Verified as still broken today. |
Appears to be fixed today... E-needstest. |
This isn't actually fixed. |
Triage: don't have a mac, so I can't reproduce, but that doesn't mean that it has been fixed. |
I can reproduce this bug. Still exists |
See #63977 (comment) |
You should only use local labels in inline assembly. This is stated in the documentation for the new |
…ust-lang#14392) If types such as `Option<Option<String>>` are not used by value, then `Option<Option<&String>>` will be suggested, instead of `Option<&Option<String>>`. changelog: [`needless_pass_by_value`]: suggest using a reference on the innermost `Option` content fix rust-lang#14375
OS: OS X 10.8.5
Architecture: x86_64
This code pass the compiler but cause segmentation fault.
Inline Assembly in LLVM is called at https://github.com/mozilla/rust/blob/master/src/rustllvm/RustWrapper.cpp#l173
The description of module level inline assembly about LLVM is here(http://llvm.org/docs/LangRef.html#module-level-inline-assembly)
The text was updated successfully, but these errors were encountered: