Skip to content

LLVM miscompiles Wine's dlls/user32/dialog.c #10079

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

Closed
llvmbot opened this issue Apr 13, 2011 · 7 comments
Closed

LLVM miscompiles Wine's dlls/user32/dialog.c #10079

llvmbot opened this issue Apr 13, 2011 · 7 comments
Labels
bugzilla Issues migrated from bugzilla llvm:codegen miscompilation

Comments

@llvmbot
Copy link
Member

llvmbot commented Apr 13, 2011

Bugzilla Link 9707
Resolution FIXED
Resolved on Aug 02, 2013 19:19
Version trunk
OS All
Blocks llvm/llvm-bugzilla-archive#10638
Reporter LLVM Bugzilla Contributor

Extended Description

Part 5 of a long series filed on behalf of Austin English. (I hope you're not tired of me at this point...)

Clang is also miscompiling the Dialog Manager code (dlls/user32/dialog.c) from Wine. This one's weird. It's not crashing, but it locks up and produces no output whatsoever. Valgrind reports an invalid 4-byte read inside the Dialog Manager, so this might have something to do with it. Not sure if it's optimizer related, but it's probably not integrated-assembler-related.

@llvmbot
Copy link
Member Author

llvmbot commented Apr 13, 2011

dialog.i
Occurs with/without integrated assembler, and at -O0 and -O2.

clang -E -I. -I. -I../../include -I../../include -D__WINESRC__ -D_USER32_ -D_WINABLE_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -std=gnu89 -g -O0 dialog.c &> dialog.i

dialog.i attached.

@llvmbot
Copy link
Member Author

llvmbot commented May 5, 2011

preprocessed gcc file
gcc -E -I. -I. -I../../include -I../../include -D__WINESRC__ -D_USER32_ -D_WINABLE_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -std=gnu89 -g -O0 dialog.c &> ~/dialog_gcc.i

gcc (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5

@llvmbot
Copy link
Member Author

llvmbot commented Aug 18, 2011

Actually, this is probably a dupe of bug 9704 (or at least related).

@llvmbot
Copy link
Member Author

llvmbot commented Feb 14, 2012

Still present, as of
git-svn-id: http://llvm.org/svn/llvm-project/llvm/trunk@150433 91177308-0d34-0410-b5e6-96231b3b80d8

and wine-1.4-rc3-23-gd548af4. Not a stack alignment issue, the wine patch from bug 9830 does not help here.

@llvmbot
Copy link
Member Author

llvmbot commented Jun 13, 2012

Still in svn.

@llvmbot
Copy link
Member Author

llvmbot commented Dec 18, 2012

Works fine in wine-1.4 and current wine from git (wine-1.5.19-186-g1cd0c4a).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170295 91177308-0d3
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170294 91177308-0d34

@llvmbot
Copy link
Member Author

llvmbot commented Aug 3, 2013

FWIW, this is still in:
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

so it was fixed some time after that.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
citymarina pushed a commit to citymarina/llvm-project that referenced this issue Feb 24, 2025
[lldb] Thread llvm::Expected through ReflectionContext
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm:codegen miscompilation
Projects
None yet
Development

No branches or pull requests

1 participant