[llvm-bugs] [Bug 35827] New: Clang crashes with computed goto

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 4 12:05:49 PST 2018


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

            Bug ID: 35827
           Summary: Clang crashes with computed goto
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: info at ct800.net
                CC: llvm-bugs at lists.llvm.org

Created attachment 19630
  --> https://bugs.llvm.org/attachment.cgi?id=19630&action=edit
Preprocessed sources and run script

I'm using Win7-x64 and Android NDK 16b. I have generated the standalone chain
for Android Arm64 that uses Clang 5.0.300080 to generate 64 bit code.

When compiling a C file that contains a shellsort using computed goto jump
tables, Clang crashes. The error message suggest to file a bug report.

When I replaced the computed goto shellsort with a version that does not use
computed goto, Clang did not crash and produced a binary, as intended. So it
has something to do with the computed goto.

I tried to isolate this computed goto shellsort into a single file and just
sorting integers, but that did not crash Clang. So the issue is more complex
than just computed goto.

I'm also using the Android NDK 16b standalone toolchain configured for Armv7-a
with 32 bit target with the same application and the computed goto shellsort,
and this works without problems.

-- 
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/20180104/dc5a97ef/attachment.html>


More information about the llvm-bugs mailing list