-
Notifications
You must be signed in to change notification settings - Fork 13.5k
LLVM miscompiles Wine's dlls/msctf/categorymgr.c at -O0 #10077
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
Occurs at -O0 and -O2. Recompiling just dlls/msctf/categorymgr.c with gcc avoids the crash. Preprocessed C file will be attached. |
preprocessed clang file |
preprocessed gcc file gcc (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5 |
Occurs in trunk, r130886, at -O0 (with/without integrated assembler), but NOT at -O1/-O2 (with/without integrated assembler). Also miscompiles in 2.9 at -O0, but not at -O2. |
Fixed in Wine, by http://source.winehq.org/git/wine.git/commitdiff/d5090fd9757fbee2190eaa0f54ea39ebcfe657e3. Valgrind also showed a problem. From Wine's bugzilla:Valgrind found a write buffer overrun on a stack buffer, Source and destination overlap in memcpy(0x7f22f8c8, 0x7f22f904, 76) so likely not an llvm bug. |
…customization-removal [lldb][NFC] Remove downstream changes related to ThreadPlan migration
Extended Description
Part 3 of a long series filed on behalf of Austin English.
Clang also miscompiles dlls/msctf/categorymgr.c from Wine. This results in an AV during Wine's msctf regression test (see http://bugs.winehq.org/show_bug.cgi?id=25826). Preprocessed source will be attached. Not sure what -O levels trigger this; need to get more details from Austin. Shouldn't be related to the integrated assembler.
The text was updated successfully, but these errors were encountered: