<div dir="ltr">The pre-built binaries were built without debug info, so you won't be able to get a stack trace unfortunately.  Going forward we should probably make sure we always generate PDBs for released builds.<div>
<br></div><div>In general, the next step would be to generate pre-processed source with -E or /P, but in this case I think I have a repro that I can file.</div><div><br></div><div><br></div><div>-------------</div><div><br>
</div><div>$ cat t.cpp</div><div>#include <ppltasks.h></div><div><div><br></div><div>$ clang-cl t.cpp -c</div><div>In file included from t.cpp:1:</div><div>In file included from C:/PROGRA~2/MICROS~1.0/VC/include\ppltasks.h:21:</div>
<div>C:/PROGRA~2/MICROS~1.0/VC/include\ppl.h(4151,4) :  error: 'mutable' cannot be applied to references</div><div>    mutable _Combinable_type &_Combinable;</div><div>    ^</div><div>Only ClassTemplatePartialSpecializationDecls occurinside templates</div>
<div>UNREACHABLE executed at ..\tools\clang\lib\Sema\SemaTemplateInstantiateDecl.cpp:2325!</div><div>Stack dump:</div><div>0.      Program arguments: D:\src\llvm\build_debug\bin\clang-cl.exe -cc1 -triple i686-pc-win32 -emit-obj -mrelax-all -disable-free -main-file-name t.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -D_MT --dependent-lib=libcmt --dependent-lib=oldnames -cxx-abi microsoft -fdiagnostics-format msvc -coverage-file D:\src\llvm\tools\clang\t.obj -resource-dir D:\src\llvm\build_debug\bin\..\lib\clang\3.5 -internal-isystem D:\src\llvm\build_debug\bin\..\lib\clang\3.5\include -internal-isystem C:/PROGRA~2/MICROS~1.0/VC/include -internal-isystem C:/PROGRA~2/WI3CF2~1/8.0/Include/shared -internal-isystem C:/PROGRA~2/WI3CF2~1/8.0/Include/um -internal-isystem C:/PROGRA~2/WI3CF2~1/8.0/Include/winrt -internal-isystem C:/PROGRA~2/MICROS~1.0/include -std=c++11 -fdeprecated-macro -fdebug-compilation-dir D:\src\llvm\tools\clang -ferror-limit 19 -fmessage-length 0 -mstackrealign -fms-extensions -fms-compatibility -fmsc-version=1700 -fdelayed-template-parsing -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-slp -fcolor-diagnostics -fansi-escape-codes -o t.obj -x c++ t.cpp</div>
<div>1.      C:/PROGRA~2/MICROS~1.0/VC/include\ppltasks.h:4156:42: current parser token ';'</div><div>2.      C:/PROGRA~2/MICROS~1.0/VC/include\ppltasks.h:80:1: parsing namespace 'Concurrency'</div><div>3.      C:/PROGRA~2/MICROS~1.0/VC/include\ppltasks.h:3622:1: parsing struct/union/class body 'task'</div>
<div>0x01FE5AEA (0x0000000A 0x00000000 0x0429A4B4 0x00D7B095), _NMSG_WRITE() + 0x8A bytes(s), f:\dd\vctools\crt_bld\self_x86\crt\src\crt0msg.c, line 226</div><div>0x01FCF3BC (0x0429A4CC 0x016C01E2 0x032AF840 0x032AF054), abort() + 0x1C bytes(s), f:\dd\vctools\crt_bld\self_x86\crt\src\abort.c, line 62 + 0x7 byte(s)</div>
<div>0x00D7B095 (0x032AF840 0x032AF054 0x00000915 0x0429A730), llvm::llvm_unreachable_internal() + 0x85 bytes(s), d:\src\llvm\lib\support\errorhandling.cpp, line 105</div><div>0x016C01E2 (0x07CB2DE0 0x0000001D 0x0429A730 0x0429A850), clang::TemplateDeclInstantiator::VisitClassTemplateSpecializationDecl() + 0x22 bytes(s), d:\src\llvm\tools\clang\lib\sema\sematemplateinstantiatedecl.cpp, line 2326</div>
<div>0x0162EF0F (0x07CB2DE0 0x0429AC58 0x0429A870 0xCCCCCCCC), clang::declvisitor::Base<clang::declvisitor::make_ptr,clang::TemplateDeclInstantiator,clang::Decl *>::Visit() + 0x22F bytes(s), d:\src\llvm\tools\clang\include\clang\ast\declvisitor.h, line 237 + 0xC byte(s)</div>
<div>0x016026E7 (0x000320F4 0x07CCBC80 0x07CAFC10 0x0429A8F4), clang::Sema::InstantiateClass() + 0x357 bytes(s), d:\src\llvm\tools\clang\lib\sema\sematemplateinstantiate.cpp, line 2068 + 0x19 byte(s)</div><div>0x01603874 (0x000320F4 0x07CCBC80 0x00000001 0x00000001), clang::Sema::InstantiateClassTemplateSpecialization() + 0x5E4 bytes(s), d:\src\llvm\tools\clang\lib\sema\sematemplateinstantiate.cpp, line 2448 + 0x37 byte(s)</div>
<div>0x0155DFAF (0x000320F4 0x07CCBD30 0x0429AE08 0x0429E3A0), clang::Sema::RequireCompleteTypeImpl() + 0x36F bytes(s), d:\src\llvm\tools\clang\lib\sema\sematype.cpp, line 5192 + 0x35 byte(s)</div><div>0x0155E2FC (0x000320F4 0x07CCBD30 0x0429AE08 0xCCCCCCCC), clang::Sema::RequireCompleteType() + 0x2C bytes(s), d:\src\llvm\tools\clang\lib\sema\sematype.cpp, line 5097 + 0x14 byte(s)</div>
<div>0x0155E3C3 (0x000320F4 0x07CCBD30 0x000007EA 0x0429B194), clang::Sema::RequireCompleteType() + 0x43 bytes(s), d:\src\llvm\tools\clang\lib\sema\sematype.cpp, line 5244 + 0x14 byte(s)</div><div>0x013033CD (0x0796A2AC 0x07CCBD30 0x07CCBD90 0x07CC8AC0), clang::Sema::CheckFieldDecl() + 0xBD bytes(s), d:\src\llvm\tools\clang\lib\sema\semadecl.cpp, line 11437 + 0x15 byte(s)</div>
<div>0x013031E4 (0x0457C4A8 0x07CC8AC0 0x000320F4 0x0429B7FC), clang::Sema::HandleField() + 0x3C4 bytes(s), d:\src\llvm\tools\clang\lib\sema\semadecl.cpp, line 11387 + 0x47 byte(s)</div><div>0x0134F4B8 (0x0457C4A8 0x00000002 0x0429B7FC 0x00000000), clang::Sema::ActOnCXXMemberDeclarator() + 0x8E8 bytes(s), d:\src\llvm\tools\clang\lib\sema\semadeclcxx.cpp, line 2039 + 0x30 byte(s)</div>
<div>0x012700F6 (0x00000002 0x00000000 0x0429BF18 0x00000000), clang::Parser::ParseCXXClassMemberDeclaration() + 0x10F6 bytes(s), d:\src\llvm\tools\clang\lib\parse\parsedeclcxx.cpp, line 2304 + 0x47 byte(s)</div><div>0x0126EAD4 (0x0002AA93 0x0002AA99 0x0429C840 0x00000012), clang::Parser::ParseCXXMemberSpecification() + 0x9E4 bytes(s), d:\src\llvm\tools\clang\lib\parse\parsedeclcxx.cpp, line 2690</div>
<div>0x0126DCD0 (0x0000007C 0x0002AA93 0x0429D2D8 0x0429D47C), clang::Parser::ParseClassSpecifier() + 0x16B0 bytes(s), d:\src\llvm\tools\clang\lib\parse\parsedeclcxx.cpp, line 1615</div><div>0x01223C34 (0x0429D2D8 0x0429D47C 0x00000003 0x00000004), clang::Parser::ParseDeclarationSpecifiers() + 0x16B4 bytes(s), d:\src\llvm\tools\clang\lib\parse\parsedecl.cpp, line 3243</div>
<div>0x0121785D (0x00000000 0x0429D47C 0x0429D554 0x0429DA4C), clang::Parser::ParseSingleDeclarationAfterTemplate() + 0x11D bytes(s), d:\src\llvm\tools\clang\lib\parse\parsetemplate.cpp, line 195</div><div>0x012175DE (0x00000000 0x0429DA4C 0x00000003 0x00000000), clang::Parser::ParseTemplateDeclarationOrSpecialization() + 0x39E bytes(s), d:\src\llvm\tools\clang\lib\parse\parsetemplate.cpp, line 150 + 0x42 byte(s)</div>
<div>0x012171EE (0x00000000 0x0429DA4C 0x00000003 0x00000000), clang::Parser::ParseDeclarationStartingWithTemplate() + 0xAE bytes(s), d:\src\llvm\tools\clang\lib\parse\parsetemplate.cpp, line 39 + 0x18 byte(s)</div><div>0x01220093 (0x0429DAD4 0x0429D9B8 0x00000000 0x0429DA4C), clang::Parser::ParseDeclaration() + 0x93 bytes(s), d:\src\llvm\tools\clang\lib\parse\parsedecl.cpp, line 1436 + 0x14 byte(s)</div>
<div>0x012087CE (0x0429DAD4 0x0429DAEC 0x00000000 0x0429DED8), clang::Parser::ParseExternalDeclaration() + 0x5Aclang-cl.exe: error: clang frontend command failed due to signal (use -v to see invocation)</div><div>clang version 3.5</div>
<div>Target: i686-pc-win32</div><div>Thread model: posix</div><div>clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to <a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and associated run script.</div>
<div>BuildJobsForAction</div><div>clang-cl.exe: note: diagnostic msg:</div><div>********************</div><div><br></div><div>PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:</div><div>Preprocessed source(s) and associated run script(s) are located at:</div>
<div>clang-cl.exe: note: diagnostic msg: D:\src\tmp\t-471543.cpp</div><div>clang-cl.exe: note: diagnostic msg: D:\src\tmp\t-471543.sh</div><div>clang-cl.exe: note: diagnostic msg:</div></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 1:49 PM, Edward Diener <span dir="ltr"><<a href="mailto:eldlistmailingz@tropicsoft.com" target="_blank">eldlistmailingz@tropicsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I received an internal compiler error for clang-cl when testing clang-cl with Boost config. How do I generate a crash backtrace and anything else that is needed for a bug report.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Stack dump:<br>
0.      Program arguments: C:\Programming\VersionControl\<u></u>bclang\bin\Release\clang-cl.<u></u>exe -cc1 -triple i686-pc-win32 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name config_test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -D_DEBUG -D_MT -D_DLL --dependent-lib=msvcrtd --dependent-lib=oldnames -cxx-abi microsoft -fdiagnostics-format msvc -coverage-file C:\Programming\VersionControl\<u></u>modular-boost\libs\config\<u></u>test\..\..\..\bin.v2\libs\<u></u>config\test\config_test_<u></u>threaded.test\clang-vc11-win-<u></u>3.4\debug\threading-multi\<u></u>config_test.obj -resource-dir C:\Programming\VersionControl\<u></u>bclang\bin\Release\..\lib\<u></u>clang\3.5 -D _HAS_EXCEPTIONS=0 -D BOOST_ALL_NO_LIB=1 -I ..\..\.. -internal-isystem C:\Programming\VersionControl\<u></u>bclang\bin\Release\..\lib\<u></u>clang\3.5\include -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE -internal-isystem C:\Program Files (x86)\Microsoft Visu!<br>

</blockquote>
al Studi<br>
o 11.0\VC\ATLMFC\INCLUDE -internal-isystem C:\Program Files (x86)\Windows Kits\8.0\include\shared -internal-isystem C:\Program Files (x86)\Windows Kits\8.0\include\um -internal-isystem C:\Program Files (x86)\Windows Kits\8.0\include\winrt -O0 -Wall -std=c++11 -fdeprecated-macro -fdebug-compilation-dir C:\Programming\VersionControl\<u></u>modular-boost\libs\config\test -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-rtti -fms-extensions -fms-compatibility -fmsc-version=1700 -fdelayed-template-parsing -fno-inline -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-slp -o ..\..\..\bin.v2\libs\config\<u></u>test\config_test_threaded.<u></u>test\clang-vc11-win-3.4\debug\<u></u>threading-multi\config_test.<u></u>obj -x c++ config_test.cpp<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1.      C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\ppltasks.h:<u></u>4156:42: current parser token ';'<br>
2.      C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\ppltasks.h:80:<u></u>1: parsing namespace 'Concurrency'<br>
3.      C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\ppltasks.h:<u></u>3622:1: parsing struct/union/class body 'task'<br>
clang-cl.exe: error: clang frontend command failed due to signal (use -v to see invocation)<br>
clang version 3.5 (195940)<br>
Target: i686-pc-win32<br>
Thread model: posix<br>
clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to <a href="http://llvm.org/bugs/" target="_blank">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and associated run script.<br>

clang-cl.exe: note: diagnostic msg: Error generating preprocessed source(s).<br>
</blockquote>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>