[llvm-bugs] [Bug 32143] New: r274162 (SafeStack) causes cryptographic code to miscompile
llvm-bugs at lists.llvm.org
Sun Mar 5 07:10:50 PST 2017
Bug ID: 32143
Summary: r274162 (SafeStack) causes cryptographic code to
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: ed at 80386.nl
CC: llvm-bugs at lists.llvm.org
Created attachment 18054
Reduced testcase of the miscompilation
CloudABI is a runtime environment based on a subset of POSIX that allows for
strong sandboxing. CloudABI uses Clang as its C/C++ compiler with LLVM's
SafeStack enabled by default.
One of the lead developers of Bitcoin, Wladimir van der Laan, is currently
working on getting Bitcoin Core ported over to CloudABI:
In the process, he discovered that some of Bitcoin's unit tests tend to fail
when SafeStack is enabled. He observed this when using LLVM/Clang 4.0-rc2:
I've done some bisecting and discovered it's caused by SVN r274162:
Attached you can find a source file of a reduced test case that should build
both on CloudABI and non-CloudABI. When built with SafeStack enabled and -O2 or
higher set, it will call abort(). When built without SafeStack or when using
lower optimisation levels, it will print "O.K." and terminate successfully.
I will add this as a blocker for 4.0.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs