[llvm-bugs] [Bug 32646] UBSAN binary segfaults on correct UB-free test case.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 13 11:35:00 PDT 2017


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

Vedant Kumar <vsk at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |vsk at apple.com
           Assignee|unassignedbugs at nondot.org   |vsk at apple.com
           Severity|enhancement                 |normal
            Product|libraries                   |clang
          Component|Miscellaneous               |LLVM Codegen
                   |Instrumentation passes      |
         Resolution|---                         |INVALID

--- Comment #1 from Vedant Kumar <vsk at apple.com> ---
It's crashing while trying to write to the stack:

->  0x102ace7fc <+44878268>: movq   %rsi, -0x802080(%rbp)

I worked around the crash by increasing the stack size limit. On macOS, that's:

  $ ulimit -s 65532

Another workaround might be to compile with -O1 or greater.

-- 
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/20170413/ef24c186/attachment.html>


More information about the llvm-bugs mailing list