[llvm-bugs] [Bug 31643] New: Clang crashes when compiling code on Windows with SEH and openmp

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 14 03:06:58 PST 2017


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

            Bug ID: 31643
           Summary: Clang crashes when compiling code on Windows with SEH
                    and openmp
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: adamf88 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17841
  --> https://llvm.org/bugs/attachment.cgi?id=17841&action=edit
Crash dump + source code + simple bat to run

If I compile this reduced code:

extern "C" {
    void __cpuid(int[4], int);
}

int main( void )
{
    __try
    {
        int info[4];
        __cpuid(info, 1);
    }
    __except (1)
    {
    }

    return 0;
}


With command:
clang.exe "-cc1" "-triple" "x86_64-pc-windows-msvc19.0.0" "-emit-obj"
"-fms-compatibility" "-fopenmp" "test.cpp"

Then I receive an error:
Assertion failed: CGF.CurFn && "No function in current CodeGenFunction.", file
D:\src\llvm_package_288665\llvm\tools\clang\lib\CodeGen\CGOpenMPRuntime.cpp,
line 1030
Wrote crash dump file "C:\Users\AdamF\AppData\Local\Temp\clang.exe-e99388.dmp"
0x024B9CE8 (0x00000016 0x03DA3FE7 0x00D9BFA0 0x02767F5D)
0x03DAE515 (0x0494A340 0x0494A10E 0x00000406 0x00000003)
0x03DA3EA1 (0x0494A340 0x0494A10E 0x00000406 0x00C5C058)
0x03DA4089 (0x0494A340 0x0494A10E 0x00000406 0x00D9C898)
0x02767F5D (0x00C5D038 0x00D949B8 0x00D94700 0x0000006C)
0x036D8405 (0x00000000 0x00000000 0x00D59A98 0x00000007)

Crash dump + source code + simple bat to run in attachment

-- 
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/20170114/32b4feef/attachment-0001.html>


More information about the llvm-bugs mailing list