<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 - SymbolFile/NativePDB/stack_unwinding01.cpp, SymbolFile/PDB/ast-restore.test fail on Windows due to Assertion failed: Access != AS_none && "Access specifier is AS_none inside a record decl", file ../../clang/lib/AST/DeclBase.cpp, line 993"
   href="https://bugs.llvm.org/show_bug.cgi?id=51875">51875</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SymbolFile/NativePDB/stack_unwinding01.cpp,  SymbolFile/PDB/ast-restore.test fail on Windows due to Assertion failed: Access != AS_none && "Access specifier is AS_none inside a record decl", file ../../clang/lib/AST/DeclBase.cpp, line 993
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=25262" name="attach_25262" title="full log">attachment 25262</a> <a href="attachment.cgi?id=25262&action=edit" title="full log">[details]</a></span>
full log

Full log attached. A stack below, inline.

Sounds possibly related to <a href="https://reviews.llvm.org/D65935">https://reviews.llvm.org/D65935</a> an
<a href="https://reviews.llvm.org/D71909">https://reviews.llvm.org/D71909</a>


$ ":" "RUN: at line 3"
$ "env" "LLDB_USE_NATIVE_PDB_READER=0"
"c:\src\llvm-project\out\gn\bin\lldb-test.exe" "symbols" "-dump-ast"
"C:\src\llvm-project\out\gn\obj\lldb\test\Shell\SymbolFile\PDB\Output\ast-restore.test.tmp.exe"
$ "c:\src\llvm-project\out\gn\bin\filecheck.exe" "--check-prefix=ENUM"
"C:\src\llvm-project\lldb\test\Shell\SymbolFile\PDB\ast-restore.test"
$ ":" "RUN: at line 4"
$ "env" "LLDB_USE_NATIVE_PDB_READER=1"
"c:\src\llvm-project\out\gn\bin\lldb-test.exe" "symbols" "-dump-ast"
"C:\src\llvm-project\out\gn\obj\lldb\test\Shell\SymbolFile\PDB\Output\ast-restore.test.tmp.exe"
# command stderr:
Assertion failed: Access != AS_none && "Access specifier is AS_none inside a
record decl", file ../../clang/lib/AST/DeclBase.cpp, line 993
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: c:\\src\\llvm-project\\out\\gn\\bin\\lldb-test.exe
symbols -dump-ast
C:\\src\\llvm-project\\out\\gn\\obj\\lldb\\test\\Shell\\SymbolFile\\PDB\\Output\\ast-restore.test.tmp.exe
 #0 0x00007ff646298d26 HandleAbort
/b/f/w/llvm-project/out/gn/../../llvm/lib/Support/Windows/Signals.inc:408:0
 #1 0x00007ff649352e04 raise
C:\src\llvm-project\out\gn\minkernel\crts\ucrt\src\appcrt\misc\signal.cpp:547:0
 #2 0x00007ff6493486ac abort
C:\src\llvm-project\out\gn\minkernel\crts\ucrt\src\appcrt\startup\abort.cpp:71:0
 #3 0x00007ff649349012 common_assert_to_stderr<wchar_t>
C:\src\llvm-project\out\gn\minkernel\crts\ucrt\src\appcrt\startup\assert.cpp:186:0
 #4 0x00007ff649348eba _wassert
C:\src\llvm-project\out\gn\minkernel\crts\ucrt\src\appcrt\startup\assert.cpp:443:0
 #5 0x00007ff6467919b9 clang::Decl::AccessDeclContextSanity(void) const
/b/f/w/llvm-project/out/gn/../../clang/lib/AST/DeclBase.cpp:992:0
 #6 0x00007ff6462c8044 clang::Decl::getAccess
/b/f/w/llvm-project/out/gn/../../clang/include/clang/AST/DeclBase.h:479:0
 #7 0x00007ff6462c8044 `anonymous namespace'::VerifyDecl
/b/f/w/llvm-project/out/gn/../../lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:95:0
 #8 0x00007ff6462c8044
lldb_private::TypeSystemClang::CreateFunctionDeclaration(class
clang::DeclContext *, class lldb_private::OptionalClangModuleID, class
llvm::StringRef, class lldb_private::CompilerType const &, enum
clang::StorageClass, bool)
/b/f/w/llvm-project/out/gn/../../lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:2159:0
 #9 0x00007ff6475335e1
lldb_private::npdb::PdbAstBuilder::GetOrCreateFunctionDecl(struct
lldb_private::npdb::PdbCompilandSymId)
/b/f/w/llvm-project/out/gn/../../lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp:1017:0
#10 0x00007ff646a57697
std::_Ptr_base<lldb_private::Function>::_Move_construct_from
/b/f/w/llvm-project/out/gn/../../sysroot/VC/Tools/MSVC/14.16.27023/include/memory:1069:0
#11 0x00007ff646a57697 std::shared_ptr<lldb_private::Function>::shared_ptr
/b/f/w/llvm-project/out/gn/../../sysroot/VC/Tools/MSVC/14.16.27023/include/memory:1347:0
#12 0x00007ff646a57697
lldb_private::npdb::SymbolFileNativePDB::CreateFunction(struct
lldb_private::npdb::PdbCompilandSymId, class lldb_private::CompileUnit &)
/b/f/w/llvm-project/out/gn/../../lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:403:0
#13 0x00007ff646a56e76 llvm::DebugEpochBase::HandleBase::isHandleInSync
/b/f/w/llvm-project/out/gn/../../llvm/include/llvm/ADT/EpochTracker.h:70:0
#14 0x00007ff646a56e76 llvm::DenseMapIterator<unsigned long
long,std::shared_ptr<lldb_private::Function>,llvm::DenseMapInfo<unsigned long
long>,llvm::detail::DenseMapPair<unsigned long
long,std::shared_ptr<lldb_private::Function> >,0>::operator->
/b/f/w/llvm-project/out/gn/../../llvm/include/llvm/ADT/DenseMap.h:1241:0
#15 0x00007ff646a56e76
lldb_private::npdb::SymbolFileNativePDB::GetOrCreateFunction(struct
lldb_private::npdb::PdbCompilandSymId, class lldb_private::CompileUnit &)
/b/f/w/llvm-project/out/gn/../../lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:849:0
#16 0x00007ff646a5cec9 std::_Ptr_base<lldb_private::Function>::_Decref
/b/f/w/llvm-project/out/gn/../../sysroot/VC/Tools/MSVC/14.16.27023/include/memory:1118:0
#17 0x00007ff646a5cec9 std::shared_ptr<lldb_private::Function>::~shared_ptr
/b/f/w/llvm-project/out/gn/../../sysroot/VC/Tools/MSVC/14.16.27023/include/memory:1403:0
#18 0x00007ff646a5cec9
lldb_private::npdb::SymbolFileNativePDB::ParseFunctions(class
lldb_private::CompileUnit &)
/b/f/w/llvm-project/out/gn/../../lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:926:0
#19 0x00007ff6461d1d83 lldb_private::Module::ParseAllDebugSymbols(void)
/b/f/w/llvm-project/out/gn/../../lldb/source/Core/Module.cpp:394:0
#20 0x00007ff6461ad843 opts::symbols::dumpAST
/b/f/w/llvm-project/out/gn/../../lldb/tools/lldb-test/lldb-test.cpp:610:0
#21 0x00007ff6461a6f84 llvm::Error::getPtr
/b/f/w/llvm-project/out/gn/../../llvm/include/llvm/Support/Error.h:272:0
#22 0x00007ff6461a6f84 llvm::Error::operator bool
/b/f/w/llvm-project/out/gn/../../llvm/include/llvm/Support/Error.h:236:0
#23 0x00007ff6461a6f84 opts::symbols::dumpSymbols
/b/f/w/llvm-project/out/gn/../../lldb/tools/lldb-test/lldb-test.cpp:838:0
#24 0x00007ff6461a6f84 main
/b/f/w/llvm-project/out/gn/../../lldb/tools/lldb-test/lldb-test.cpp:1130:0</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>