-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
clang crashes on the aws-crt-python project #57888
Comments
In
Still investigating. The @@ -6669 +6670 @@
- : "+c"(crc)
+ : [crc]"+c"(crc)
@@ -6672 +6673 @@
- : [ crc ] "c"(crc), [ in ] "d"(input)
+ : [ in ] "d"(input)
@@ -6755 +6756 @@
- : "+c"(crc), "+d"(input)
+ : [crc]"+c"(crc), "+d"(input)
@@ -6759 +6760 @@
- : [ crc ] "c"(crc), [ in ] "d"(input)
+ : [ in ] "d"(input)
@@ -6835 +6836 @@
- : "+c"(crc), "+d"(input)
+ : [crc]"+c"(crc), "+d"(input)
@@ -6839 +6840 @@
- : [ crc ] "c"(crc), [ in ] "d"(input)
+ : [ in ] "d"(input)
@@ -6871,0 +6873 @@
+ uint32_t crc1 = 0;
@@ -6873 +6875 @@
- __asm__("loop_small_%=: CRC32B (%[in]), %[crc]" : "+c"(crc) : [ crc ] "c"(crc), [ in ] "r"(input));
+ __asm__("loop_small_%=: CRC32B (%[in]), %[crc]" : [crc] "+c"(crc) : [ in ] "r"(input));
@@ -6890 +6892 @@
- __asm__("loop_leading_%=: CRC32B (%[in]), %[crc]" : "+c"(crc) : [ crc ] "c"(crc), [ in ] "r"(input));
+ __asm__("loop_leading_%=: CRC32B (%[in]), %[crc]" : [ crc ] "+c"(crc) : [ in ] "r"(input));
@@ -6920 +6922 @@
- __asm__ __volatile__("loop_8_%=: CRC32Q (%[in]), %%rcx" : "+c"(crc) : [ crc ] "c"(crc), [ in ] "r"(input));
+ __asm__ __volatile__("loop_8_%=: CRC32Q (%[in]), %%rcx" : [crc]"+c"(crc) : [ in ] "r"(input));
@@ -6928,2 +6930 @@
- : "+c"(crc)
- : [ crc ] "c"(crc), [ in ] "r"(input));
+ : [crc]"+c"(crc) : [ in ] "r"(input)); |
There are a lot of duplicates of this bug, and it's always some Amazon AWS code, e.g.:
I think AWS is using some common CRC inline assembly that causes either assertions or backend errors with clang. Probably some impossible register constraint, which instead of generating a normal diagnostic causes an assertion failure or backend failure... |
@llvm/issue-subscribers-backend-x86
Project: https://github.com/awslabs/aws-crt-python
OS: FreeBSD 14-CURRENT
|
Project: https://github.com/awslabs/aws-crt-python
OS: FreeBSD 14-CURRENT
clang-crash.tgz
The text was updated successfully, but these errors were encountered: