[llvm-bugs] [Bug 47657] New: -O2 -fstack-clash-protection alloca(0) SEGV

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 26 14:33:09 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47657

            Bug ID: 47657
           Summary: -O2 -fstack-clash-protection alloca(0) SEGV
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jan.kratochvil at redhat.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

echo -e '#include <alloca.h>\n#include <stdint.h>\nlong size;int main() {return
(uintptr_t)alloca(size);}'|clang -O2 -fstack-clash-protection -Wall -x c++
-;./a.out
Segmentation fault

FAIL: clang-11.0.0-0.3.rc2.fc34.x86_64
FAIL: c6c5629f2fb4ddabd376fbe7c218733283e91d09 = 2020-09-25
PASS: gcc-10.2.1-4.fc34.x86_64

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200926/b204b0e1/attachment.html>


More information about the llvm-bugs mailing list