[llvm-bugs] [Bug 26298] New: msvc exceptions crash clang.exe

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 25 14:50:45 PST 2016


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

            Bug ID: 26298
           Summary: msvc exceptions crash clang.exe
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alex at lanin.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I compiled clang in visual studio 2013 myself (from git), however even when
running directly from visual studio it won't resolve function names. Same
behavior with Debug and RelWithDebInfo. If you could tell me how to do that I
could possibly provide more info.

Anyway I followed the how-to-submit-bugs guide and used multidelta (wow!!! I'm
in love). It reduced the file in question to:

template <class _E> void *__GetExceptionInfo(_E);


This line alone crashes clang.exe. It is in C:\Program Files (x86)\Microsoft
Visual Studio 12.0\VC\include\exception

I know exceptions are not fully supported - but this is a rather severe
limitation if I cannot include the file at all. Also some other bug report
comments suggest that it should actually work by now:
https://llvm.org/bugs/show_bug.cgi?id=21450
https://llvm.org/bugs/show_bug.cgi?id=22675

command: clang -v -target i686-pc-windows-msvc -O0 crash.cpp
version: from git so I'm not sure whether it's "258628". The full message
reads: Improving documentation for the isMoveAssignmentOperator AST matcher.
Patch by Jonathan Coe.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258628
91177308-0d34-0410-b5e6-96231b3b80d8

output:
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin
 "C:\\Git\\build\\RelWithDebInfo\\bin\\clang.exe" -cc1 -triple
i686-pc-windows-msvc18.0.0 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -disable-llvm-verifier
-main-file-name crash.cpp -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu
pentium4 -v -dwarf-column-info -debugger-tuning=gdb -resource-dir
"C:\\Git\\build\\RelWithDebInfo\\bin\\..\\lib\\clang\\3.9.0" -internal-isystem
"C:\\Git\\build\\RelWithDebInfo\\bin\\..\\lib\\clang\\3.9.0\\include"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio
12.0\\VC\\include" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\um" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\winrt" -O0 -fdeprecated-macro -fdebug-compilation-dir
"Z:\\" -ferror-limit 19 -fmessage-length 0 -fms-extensions -fms-compatibility
-fms-compatibility-version=18 -std=c++11 -fno-threadsafe-statics
-fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -o
"C:\\Programme\\di_tools_cygwin_3\\tmp\\crash-292c80.o" -x c++ crash.cpp
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
i686-pc-windows-msvc
#include "..." search starts here:
#include <...> search starts here:
 C:\Git\build\RelWithDebInfo\bin\..\lib\clang\3.9.0\include
 C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
 C:\Program Files (x86)\Windows Kits\8.1\include\shared
 C:\Program Files (x86)\Windows Kits\8.1\include\um
 C:\Program Files (x86)\Windows Kits\8.1\include\winrt
End of search list.
#0 0x02849c09 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1479c09)
#1 0x029a1248 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d1248)
#2 0x029a15ba (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d15ba)
#3 0x029a0209 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d0209)
#4 0x029a0101 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d0101)
#5 0x029a2373 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d2373)
#6 0x02848361 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1478361)
#7 0x028f1348 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1521348)
#8 0x026ba5b7 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12ea5b7)
#9 0x026ba478 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12ea478)
#10 0x026cb24f (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12fb24f)
#11 0x026cb9b2 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12fb9b2)
#12 0x026c9fcd (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12f9fcd)
#13 0x026ba230 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12ea230)
#14 0x026ac0a3 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12dc0a3)
#15 0x026adc1d (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12ddc1d)
#16 0x026a91fc (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12d91fc)
#17 0x0228e34f (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xebe34f)
#18 0x02f092d9 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1b392d9)
#19 0x0228e25f (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xebe25f)
#20 0x0226ffeb (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xe9ffeb)
#21 0x022df7f3 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xf0f7f3)
#22 0x0143c738 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x6c738)
#23 0x01437e47 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x67e47)
#24 0x0143a4d4 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x6a4d4)
#25 0x02e5c674 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1a8c674)
#26 0x74d4338a BaseThreadInitThunk (C:\Windows\syswow64\kernel32.dll+0x1338a)
#27 0x76fa97f2 RtlInitializeExceptionChain
(C:\Windows\SysWOW64\ntdll.dll+0x397f2)
#28 0x76fa97c5 RtlInitializeExceptionChain
(C:\Windows\SysWOW64\ntdll.dll+0x397c5)
clang.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin
clang.exe: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang.exe: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang.exe: note: diagnostic msg:
C:\Programme\di_tools_cygwin_3\tmp\crash-926698.cpp
clang.exe: note: diagnostic msg:
C:\Programme\di_tools_cygwin_3\tmp\crash-926698.sh
clang.exe: note: diagnostic msg:

********************

-- 
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/20160125/3c771961/attachment-0001.html>


More information about the llvm-bugs mailing list