[lldb-dev] [Bug 51875] 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

via lldb-dev lldb-dev at lists.llvm.org
Wed Sep 15 13:19:26 PDT 2021


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

            Bug ID: 51875
           Summary: 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
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: nicolasweber at gmx.de
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

Created attachment 25262
  --> https://bugs.llvm.org/attachment.cgi?id=25262&action=edit
full log

Full log attached. A stack below, inline.

Sounds possibly related to https://reviews.llvm.org/D65935 an
https://reviews.llvm.org/D71909


$ ":" "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 https://bugs.llvm.org/ 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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20210915/7b2d4568/attachment.html>


More information about the lldb-dev mailing list