<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang crash: A single unwind edge may only enter one EH pad"
href="https://llvm.org/bugs/show_bug.cgi?id=26329">26329</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang crash: A single unwind edge may only enter one EH pad
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm@alex.lanin.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>call: clang -v -target i686-pc-windows-msvc -O0 -fexceptions crash.cpp
probably by far not minimal input, but I couldn't get it any smaller:
#include <typeinfo>
#include <string>
void reportError( const std::type_info& );
void couldThrow();
void handleException()
{
try
{
couldThrow();
}
catch ( std::exception &e )
{
std::string notBaseType;
reportError( typeid(e) );
}
}
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 -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 -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -o
"C:\\Programme\\di_tools_cygwin_3\\tmp\\crash-19a4bb.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.
A single unwind edge may only enter one EH pad
%4 = invoke i8* @__RTtypeid(i8* %3)
to label %invoke.cont1 unwind label %ehcleanup
fatal error: error in backend: Broken function found, compilation aborted!
clang.exe: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>