<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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-cl CommentParser.cpp crashes compiling opencv"
   href="https://bugs.llvm.org/show_bug.cgi?id=39007">39007</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl CommentParser.cpp crashes compiling opencv
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>anush@nod.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20893" name="attach_20893" title="diagnostic msg">attachment 20893</a> <a href="attachment.cgi?id=20893&action=edit" title="diagnostic msg">[details]</a></span>
diagnostic msg

Compiling OpenCV
(<a href="https://github.com/opencv/opencv/commit/dbcb454917b5d10197ae18b2559339b74a04dfc3">https://github.com/opencv/opencv/commit/dbcb454917b5d10197ae18b2559339b74a04dfc3</a>)
LLVM/Clang from top of master as of yesterday (
clang version 8.0.0 (<a href="https://github.com/llvm-mirror/clang">https://github.com/llvm-mirror/clang</a>
30d3f201efd974e92af39ab7522ca30ddb2a379a) (<a href="https://github.com/llvm-mirror/llvm">https://github.com/llvm-mirror/llvm</a>
50dce07c8dd6ea205f7ed0c5689237cde40c5796)

System: Windows 10 Pro
AMD Threadripper 2

Setup Visual Studio 2017 commandline scripts and used Ninja to build with

<span class="quote">>> cmake .. -GNinja  -DCMAKE_CXX_COMPILER:PATH="D:\llvm\build\bin\clang-cl.exe" -DCMAKE_C_COMPILER:PATH="D:\llvm\build\bin\clang-cl.exe" -DBUILD_OPENEXR=OFF</span >

<span class="quote">>> ninja</span >


..\modules\core\include\opencv2/core/hal/interface.h(83,57):  note: expanded
from macro 'CV_MAKETYPE'
#define CV_MAKETYPE(depth,cn) (CV_MAT_DEPTH(depth) + (((cn)-1) << CV_CN_SHIFT))
                                                        ^~
Assertion failed: Content.size() != 0, file
..\tools\clang\lib\AST\CommentParser.cpp, line 561
LLVMSymbolizer: error reading file: 'ucrtbased.pdb': no such file or directory
LLVMSymbolizer: error reading file: 'kernel32.pdb': no such file or directory
LLVMSymbolizer: error reading file: 'ntdll.pdb': no such file or directory
#0 0x00007ff7881bb56c HandleAbort d:\llvm\lib\support\windows\signals.inc:409:0
#1 0x00007ffa4994a381 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6a381)
#2 0x00007ffa4994bf59 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6bf59)
#3 0x00007ffa4995167f (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x7167f)
#4 0x00007ffa4994f671 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6f671)
#5 0x00007ffa49951d8f (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x71d8f)
#6 0x00007ff78d59fec9
clang::comments::Parser::parseParagraphOrBlockCommand(void)
d:\llvm\tools\clang\lib\ast\commentparser.cpp:561:0
#7 0x00007ff78d59ed8d clang::comments::Parser::parseBlockCommand(void)
d:\llvm\tools\clang\lib\ast\commentparser.cpp:385:0
#8 0x00007ff78d59fff0
clang::comments::Parser::parseParagraphOrBlockCommand(void)
d:\llvm\tools\clang\lib\ast\commentparser.cpp:576:0
#9 0x00007ff78d5a0ddc clang::comments::Parser::parseBlockContent(void)
d:\llvm\tools\clang\lib\ast\commentparser.cpp:736:0
#10 0x00007ff78d5a0f1a clang::comments::Parser::parseFullComment(void)
d:\llvm\tools\clang\lib\ast\commentparser.cpp:766:0
#11 0x00007ff78d4c8ec1 clang::RawComment::parse(class clang::ASTContext const
&,class clang::Preprocessor const *,class clang::Decl const *)const 
d:\llvm\tools\clang\lib\ast\rawcommentlist.cpp:222:0
#12 0x00007ff78d044d64 clang::ASTContext::getCommentForDecl(class clang::Decl
const *,class clang::Preprocessor const *)const 
d:\llvm\tools\clang\lib\ast\astcontext.cpp:592:0
#13 0x00007ff78bd7ee7c clang::Sema::ActOnDocumentableDecls(class
llvm::ArrayRef<class clang::Decl *>)
d:\llvm\tools\clang\lib\sema\semadecl.cpp:12287:0
#14 0x00007ff78bd7ec7e clang::Sema::ActOnDocumentableDecl(class clang::Decl *)
d:\llvm\tools\clang\lib\sema\semadecl.cpp:12248:0
#15 0x00007ff78bd8ffea clang::Sema::ActOnTagStartDefinition(class clang::Scope
*,class clang::Decl *) d:\llvm\tools\clang\lib\sema\semadecl.cpp:14836:0
#16 0x00007ff78b850c10 clang::Parser::ParseCXXMemberSpecification(class
clang::SourceLocation,class clang::SourceLocation,struct
clang::Parser::ParsedAttributesWithRange &,unsigned int,class clang::Decl *)
d:\llvm\tools\clang\lib\parse\parsedeclcxx.cpp:3138:0
#17 0x00007ff78b84ffd1 clang::Parser::ParseClassSpecifier(enum
clang::tok::TokenKind,class clang::SourceLocation,class clang::DeclSpec
&,struct clang::Parser::ParsedTemplateInfo const &,enum
clang::AccessSpecifier,bool,enum clang::Parser::DeclSpecContext,struct
clang::Parser::ParsedAttributesWithRa
nge &) d:\llvm\tools\clang\lib\parse\parsedeclcxx.cpp:1900:0
#18 0x00007ff78b79a2c2 clang::Parser::ParseDeclarationSpecifiers(class
clang::DeclSpec &,struct clang::Parser::ParsedTemplateInfo const &,enum
clang::AccessSpecifier,enum clang::Parser::DeclSpecContext,class
clang::Parser::LateParsedAttrList *)
d:\llvm\tools\clang\lib\parse\parsedecl.cpp:3700:0
#19 0x00007ff78b759a62 clang::Parser::ParseDeclOrFunctionDefInternal(struct
clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec &,enum
clang::AccessSpecifier) d:\llvm\tools\clang\lib\parse\parser.cpp:930:0
#20 0x00007ff78b759970
clang::Parser::ParseDeclarationOrFunctionDefinition(struct
clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *,enum
clang::AccessSpecifier) d:\llvm\tools\clang\lib\parse\parser.cpp:1031:0
#21 0x00007ff78b759392 clang::Parser::ParseExternalDeclaration(struct
clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *)
d:\llvm\tools\clang\lib\parse\parser.cpp:856:0
#22 0x00007ff78b84a566 clang::Parser::ParseInnerNamespace(class
std::vector<class clang::SourceLocation,class std::allocator<class
clang::SourceLocation> > &,class std::vector<class clang::IdentifierInfo
*,class std::allocator<class clang::IdentifierInfo *> > &,class
std::vector<class clang::Source
Location,class std::allocator<class clang::SourceLocation> > &,unsigned
int,class clang::SourceLocation &,class clang::ParsedAttributes &,class
clang::BalancedDelimiterTracker &)
d:\llvm\tools\clang\lib\parse\parsedeclcxx.cpp:221:0
#23 0x00007ff78b84a33d clang::Parser::ParseNamespace(enum
clang::DeclaratorContext,class clang::SourceLocation &,class
clang::SourceLocation) d:\llvm\tools\clang\lib\parse\parsedeclcxx.cpp:199:0
#24 0x00007ff78b79375b clang::Parser::ParseDeclaration(enum
clang::DeclaratorContext,class clang::SourceLocation &,struct
clang::Parser::ParsedAttributesWithRange &)
d:\llvm\tools\clang\lib\parse\parsedecl.cpp:1682:0
#25 0x00007ff78b758e45 clang::Parser::ParseExternalDeclaration(struct
clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *)
d:\llvm\tools\clang\lib\parse\parser.cpp:789:0
#26 0x00007ff78b754332 clang::Parser::ParseTopLevelDecl(class
clang::OpaquePtr<class clang::DeclGroupRef> &)
d:\llvm\tools\clang\lib\parse\parser.cpp:610:0
#27 0x00007ff78b750474 clang::ParseAST(class clang::Sema &,bool,bool)
d:\llvm\tools\clang\lib\parse\parseast.cpp:157:0
#28 0x00007ff789295b8b clang::ASTFrontendAction::ExecuteAction(void)
d:\llvm\tools\clang\lib\frontend\frontendaction.cpp:1018:0
#29 0x00007ff78da6cf46 clang::CodeGenAction::ExecuteAction(void)
d:\llvm\tools\clang\lib\codegen\codegenaction.cpp:1045:0
#30 0x00007ff7892955d7 clang::FrontendAction::Execute(void)
d:\llvm\tools\clang\lib\frontend\frontendaction.cpp:919:0
#31 0x00007ff789200e10 clang::CompilerInstance::ExecuteAction(class
clang::FrontendAction &)
d:\llvm\tools\clang\lib\frontend\compilerinstance.cpp:965:0
#32 0x00007ff78946509b clang::ExecuteCompilerInvocation(class
clang::CompilerInstance *)
d:\llvm\tools\clang\lib\frontendtool\executecompilerinvocation.cpp:259:0
#33 0x00007ff78486c7c4 cc1_main(class llvm::ArrayRef<char const *>,char const
*,void *) d:\llvm\tools\clang\tools\driver\cc1_main.cpp:218:0
#34 0x00007ff78485562d ExecuteCC1Tool
d:\llvm\tools\clang\tools\driver\driver.cpp:310:0
#35 0x00007ff784855eaf main d:\llvm\tools\clang\tools\driver\driver.cpp:382:0
#36 0x00007ff78d749454 invoke_main
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:79:0
#37 0x00007ff78d7492fe __scrt_common_main_seh
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0
#38 0x00007ff78d7491be __scrt_common_main
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0
#39 0x00007ff78d7494e9 mainCRTStartup
f:\dd\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0
#40 0x00007ffa62113034 (C:\WINDOWS\System32\KERNEL32.DLL+0x13034)
#41 0x00007ffa64161461 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x71461)
clang-cl: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 8.0.0 (<a href="https://github.com/llvm-mirror/clang">https://github.com/llvm-mirror/clang</a>
30d3f201efd974e92af39ab7522ca30ddb2a379a) (<a href="https://github.com/llvm-mirror/llvm">https://github.com/llvm-mirror/llvm</a>
50dce07c8dd6ea205f7ed0c5689237cde40c5796)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: D:\llvm\build\bin
clang-cl: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang-cl: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl: note: diagnostic msg:
C:\Users\Anush\AppData\Local\Temp\parallel-98d280.sh
clang-cl: note: diagnostic msg:

********************
ninja: build stopped: subcommand failed.</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>