https://bugs.kde.org/show_bug.cgi?id=357585
Bug ID: 357585 Summary: ASSERT: "offset >= start" in clangutils.cpp Product: kdevelop Version: git master Platform: Kubuntu Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Language Support: CPP (Clang-based) Assignee: kdevelop-bugs-n...@kde.org Reporter: bunge...@gmail.com 5.0 branch, debug build: kdevplatform 4c3129e0949ebda78704ae7e082911ad97850825 kdevelop cc6350ba51747578c69ddd8bba7b3f883009b5dc Unfortunately, I didn't have the libclang1-3.6-dbg symbols installed at the time, so I can't see what's in the opaque types. Reproducible: Didn't try Steps to Reproduce: Was editing a header file which partially implements type traits (so very heavy template use) from a recent build under gdb. I removed some lines and added a few characters to an existing line, and kdevelop segfaulted on an assert. Actual Results: Crash Expected Results: Not crash ASSERT: "offset >= start" in file ../languages/clang/util/clangutils.cpp, line 281 Program received signal SIGABRT, Aborted. [Switching to Thread 0x7fffa1e15700 (LWP 10502)] 0x00007ffff503f267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55 55 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007ffff503f267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55 #1 0x00007ffff5040eca in __GI_abort () at abort.c:89 #2 0x00007ffff57e5c88 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #3 0x00007ffff57e0dce in qt_assert(char const*, char const*, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fffb5a276df in ClangUtils::getRawContents (unit=0x7fff84c41e70, range=...) at ../languages/clang/util/clangutils.cpp:281 #5 0x00007fffb59e7d83 in (anonymous namespace)::Visitor::setDeclData<(CXCursorKind)501> (this=0x7fffa1e13ae0, cursor=..., decl=0x7fff90b649d0) at ../languages/clang/duchain/builder.cpp:912 #6 0x00007fffb59d7a91 in (anonymous namespace)::Visitor::createDeclarationCommon<(CXCursorKind)501, MacroDefinition> (this=0x7fffa1e13ae0, cursor=..., id=...) at ../languages/clang/duchain/builder.cpp:372 #7 0x00007fffb59c8ceb in (anonymous namespace)::Visitor::createDeclaration<(CXCursorKind)501, MacroDefinition> (this=0x7fffa1e13ae0, cursor=..., id=..., context=0x7fff902a7480) at ../languages/clang/duchain/builder.cpp:394 #8 0x00007fffb59c0ae2 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)501, MacroDefinition, true> (this=0x7fffa1e13ae0, cursor=...) at ../languages/clang/duchain/builder.cpp:1094 #9 0x00007fffb59ba513 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)501, (Decision)1, (Decision)0, (detail::type)0> (this=0x7fffa1e13ae0, cursor=..., parent=...) at ../languages/clang/duchain/builder.cpp:870 #10 0x00007fffb59b7a5b in (anonymous namespace)::visitCursor (cursor=..., parent=..., data=0x7fffa1e13ae0) at ../languages/clang/duchain/builder.cpp:1405 #11 0x00007fffb4db7add in ?? () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 #12 0x00007fffb4db842a in ?? () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 #13 0x00007fffb4db89f5 in ?? () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 #14 0x00007fffb4db7804 in ?? () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 #15 0x00007fffb4dbe024 in clang_visitChildren () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 #16 0x00007fffb59b6c67 in (anonymous namespace)::Visitor::Visitor (this=0x7fffa1e13ae0, tu=0x7fff84c41e70, file=0x7fff84690d00, includes=..., update=true) at ../languages/clang/duchain/builder.cpp:1299 #17 0x00007fffb59b7bd7 in Builder::visit (tu=0x7fff84c41e70, file=0x7fff84690d00, includes=..., update=true) at ../languages/clang/duchain/builder.cpp:1437 #18 0x00007fffb5992f0a in ClangHelpers::buildDUChain (file=0x7fff84690d00, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:181 #19 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff856eaed0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #20 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff84992f10, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #21 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff8755b270, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #22 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff8755b2f0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #23 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff84074de0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #24 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff85dc2920, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #25 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff84b803f0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #26 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff855db3b0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #27 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff84550cc0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #28 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff844e4430, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #29 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff85677230, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 #30 0x00007fffb596cd52 in ClangParseJob::run (this=0x5dca390) at ../languages/clang/clangparsejob.cpp:307 #31 0x00007fffebd50630 in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #32 0x00007fffebd50c70 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #33 0x00007fffebd4f8b0 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #34 0x00007fffebd4f35a in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #35 0x00007ffff57f82be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #36 0x00007fffee8fc6aa in start_thread (arg=0x7fffa1e15700) at pthread_create.c:333 #37 0x00007ffff5110eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb) frame 4 (gdb) print offset $1 = 0 (gdb) print start $2 = 10195 (gdb) print location $3 = {location = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, int_data = 2146243253}} (gdb) print unit $4 = (CXTranslationUnit) 0x7fff84c41e70 (gdb) print token $5 = {int_data = {0, 2146243253, 1, 0}, ptr_data = 0x0} (gdb) print range $9 = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, begin_int_data = 2146243184, end_int_data = 2146243248} (gdb) print rangeStart $10 = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, int_data = 2146243184} (gdb) print rangeEnd $11 = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, int_data = 2146243248} (gdb) print end $12 = 10259 (gdb) bt full #0 0x00007ffff503f267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55 resultvar = 0 pid = 10317 selftid = 10502 #1 0x00007ffff5040eca in __GI_abort () at abort.c:89 save_stage = 2 act = {__sigaction_handler = {sa_handler = 0x3, sa_sigaction = 0x3}, sa_mask = {__val = {140735909277696, 501, 140737351974688, 140735909276944, 140737312102628, 140735746878576, 140735909277008, 140735796104256, 15583815179779996416, 140735909277008, 140735909277072, 0, 140737304859901, 0, 140735810645056, 140737316439832}}, sa_flags = -180549280, sa_restorer = 0x7fffa1e15700} sigs = {__val = {32, 0 <repeats 15 times>}} #2 0x00007ffff57e5c88 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 No symbol table info available. #3 0x00007ffff57e0dce in qt_assert(char const*, char const*, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 No symbol table info available. #4 0x00007fffb5a276df in ClangUtils::getRawContents (unit=0x7fff84c41e70, range=...) at ../languages/clang/util/clangutils.cpp:281 location = {location = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, int_data = 2146243253}} offset = 0 fillCharacters = 3 spelling = {data = 0x7fff87b54d40, private_flags = 0} token = {int_data = {0, 2146243253, 1, 0}, ptr_data = 0x0} __for_range = @0x7fffa1e12f10: {m_unit = 0x7fff84c41e70, m_tokens = 0x7fff9b3a0970, m_numTokens = 13} __for_begin = 0x7fff9b3a0a90 __for_end = 0x7fff9b3a0aa8 rangeStart = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, int_data = 2146243184} rangeEnd = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, int_data = 2146243248} start = 10195 end = 10259 result = {static MaxSize = 1073741800, d = 0x7fff9a167590} tokens = {m_unit = 0x7fff84c41e70, m_tokens = 0x7fff9b3a0970, m_numTokens = 13} #5 0x00007fffb59e7d83 in (anonymous namespace)::Visitor::setDeclData<(CXCursorKind)501> (this=0x7fffa1e13ae0, cursor=..., decl=0x7fff90b649d0) at ../languages/clang/duchain/builder.cpp:912 unit = 0x7fff84c41e70 range = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, begin_int_data = 2146243184, end_int_data = 2146243248} contents = {static null = {<No data fields>}, d = 0x7fffa1e13080} firstOpeningParen = 32767 firstWhitespace = -1735421760 isFunctionLike = false start = -1245251328 #6 0x00007fffb59d7a91 in (anonymous namespace)::Visitor::createDeclarationCommon<(CXCursorKind)501, MacroDefinition> (this=0x7fffa1e13ae0, cursor=..., id=...) at ../languages/clang/duchain/builder.cpp:372 decl = 0x7fff90b649d0 indexedId = {<KDevelop::ReferenceCountManager> = {<No data fields>}, index = 74910} lock = {m_lock = 0x7ffff40ef020 <KDevelop::(anonymous namespace)::Q_QGS_sdDUChainPrivate::innerFunction()::holder+32>, m_locked = true, m_timeout = 0} it = {i = 0x7fff988f90e8} range = {start = {line = 216, column = 0}, end = {line = 216, column = 0}} clangRange = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, begin_int_data = 2146243184, end_int_data = 2146243185} expansionLocOffset = 10195 spellingLocation = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, int_data = 2146243184} decl = 0x7fffc5b53010 #7 0x00007fffb59c8ceb in (anonymous namespace)::Visitor::createDeclaration<(CXCursorKind)501, MacroDefinition> (this=0x7fffa1e13ae0, cursor=..., id=..., context=0x7fff902a7480) at ../languages/clang/duchain/builder.cpp:394 decl = 0x7fed12b07fed1270 type = 0xd844d556e4207b00 lock = {m_lock = 0x0, m_locked = false, m_timeout = 3628389718} #8 0x00007fffb59c0ae2 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)501, MacroDefinition, true> (this=0x7fffa1e13ae0, cursor=...) at ../languages/clang/duchain/builder.cpp:1094 context = 0x7fff902a7480 newParent = {context = 0x7fff00012968, previousChildContexts = {d = 0x1379838}, previousChildDeclarations = {d = 0x7ffff5aa7500 <QArrayData::shared_null>}, resortChildContexts = 105, resortLocalDeclarations = 36} pushCurrent = {m_ref = @0x1f5, m_oldValue = 0x7fff9b56b078} id = {m_index = 74910, {dd = 0x136935e, cd = 0x136935e}} helperContext = {d = 0x0} pushCurrent = {m_ref = @0x7fffa1e13b38, m_oldValue = 0x7fffa1e139d0} #9 0x00007fffb59ba513 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)501, (Decision)1, (Decision)0, (detail::type)0> (this=0x7fffa1e13ae0, cursor=..., parent=...) at ../languages/clang/duchain/builder.cpp:870 isClassMember = false isDefinition = true hasContext = true #10 0x00007fffb59b7a5b in (anonymous namespace)::visitCursor (cursor=..., parent=..., data=0x7fffa1e13ae0) at ../languages/clang/duchain/builder.cpp:1405 visitor = 0x7fffa1e13ae0 kind = CXCursor_MacroDefinition location = {ptr_data = {0x7fff845cd7a0, 0x7fff86194ad0}, int_data = 2146243184} file = 0x7fff84690d00 #11 0x00007fffb4db7add in ?? () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 No symbol table info available. #12 0x00007fffb4db842a in ?? () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 No symbol table info available. #13 0x00007fffb4db89f5 in ?? () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 No symbol table info available. #14 0x00007fffb4db7804 in ?? () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 No symbol table info available. #15 0x00007fffb4dbe024 in clang_visitChildren () from /usr/lib/llvm-3.6/lib/libclang-3.6.so.1 No symbol table info available. #16 0x00007fffb59b6c67 in (anonymous namespace)::Visitor::Visitor (this=0x7fffa1e13ae0, tu=0x7fff84c41e70, file=0x7fff84690d00, includes=..., update=true) at ../languages/clang/duchain/builder.cpp:1299 tuCursor = {kind = CXCursor_TranslationUnit, xdata = 0, data = {0x7fff86634010, 0x1, 0x7fff84c41e70}} parent = {context = 0x7fff91a36f70, previousChildContexts = {d = 0x7fff9823bf20}, previousChildDeclarations = {d = 0x7fff988f90c0}, resortChildContexts = true, resortLocalDeclarations = true} top = 0x7ffff389b5ca <KDevelop::TopDUContextDynamicData::DUChainItemStorage<QExplicitlySharedDataPointer<KDevelop::Problem> >::getItemForIndex(unsigned int) const+554> #17 0x00007fffb59b7bd7 in Builder::visit (tu=0x7fff84c41e70, file=0x7fff84690d00, includes=..., update=true) at ../languages/clang/duchain/builder.cpp:1437 visitor = {m_file = 0x7fff84690d00, m_includes = @0x7fffa1e14c60, m_uses = std::unordered_map with 0 elements, m_macroExpansionLocations = {q_hash = {{d = 0x7ffff5aa84c0 <QHashData::shared_null>, e = 0x7ffff5aa84c0 <QHashData::shared_null>}}}, m_cursorToDeclarationCache = {{d = 0x7fff98386500, e = 0x7fff98386500}}, m_parentContext = 0x7fffa1e139d0, m_update = true} #18 0x00007fffb5992f0a in ClangHelpers::buildDUChain (file=0x7fff84690d00, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:181 path = {m_index = 65853} environment = @0x7fffa1e13c40: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fffb5c6f2b0 <vtable for ClangParsingEnvironment+16>}, m_projectPaths = {d = 0x64c45d0}, m_includes = {d = 0x430e940}, m_defines = {d = 0x48df730}, m_pchInclude = {m_data = {d = 0x7ffff5aa7500 <QArrayData::shared_null>}}, m_tuUrl = {m_index = 312483}, m_quality = ClangParsingEnvironment::Source, m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fffcee12660 <(anonymous namespace)::defaultArguments()::{lambda()#1}::operator()() const::qstring_literal>}}} update = true urlLock = {m_url = {m_index = 65853}} context = {m_topContext = 0x7fff91a36f70} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff9afbf160}, d = 0x7fff9afbf160}} #19 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff856eaed0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff9843cb40: {file = 0x7fff84690d00, location = {line = 10, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff9836ec50}, d = 0x7fff9836ec50}}, i = {i = 0x7fff9836ec60}, e = {i = 0x7fff9836ec68}, control = 1} path = {m_index = 16} environment = @0x7fffa1e13d80: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fff9836ec50}, m_projectPaths = {d = 0x7fff985245a0}, m_includes = {d = 0x7fffa1e13dd0}, m_defines = {d = 0x1007fff985245a0}, m_pchInclude = {m_data = {d = 0x7fff9836ec50}}, m_tuUrl = {m_index = 2553736288}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff9836ec68}}} update = false urlLock = {m_url = {m_index = 2617256593}} context = {m_topContext = 0x7fff9c002a91} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x1e}, d = 0x1e}} #20 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff84992f10, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff9860b7e0: {file = 0x7fff856eaed0, location = {line = 11, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff985245a0}, d = 0x7fff985245a0}}, i = {i = 0x7fff985245b0}, e = {i = 0x7fff985245c0}, control = 1} path = {m_index = 16} environment = @0x7fffa1e13ee0: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fff985245a0}, m_projectPaths = {d = 0x7fff98616b60}, m_includes = {d = 0x7fffa1e13f30}, m_defines = {d = 0x1007fff98616b60}, m_pchInclude = {m_data = {d = 0x7fff985245a0}}, m_tuUrl = {m_index = 2555528624}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff985245c0}}} update = false urlLock = {m_url = {m_index = 2617256593}} context = {m_topContext = 0x7fff9c002a91} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x1e}, d = 0x1e}} #21 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff8755b270, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff984e1fe0: {file = 0x7fff84992f10, location = {line = 11, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff98616b60}, d = 0x7fff98616b60}}, i = {i = 0x7fff98616b78}, e = {i = 0x7fff98616b88}, control = 1} path = {m_index = 16} environment = @0x7fffa1e14040: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x0}, m_projectPaths = {d = 0x7fff98412a40}, m_includes = {d = 0x7fffa1e14090}, m_defines = {d = 0x1007fff98412a40}, m_pchInclude = {m_data = {d = 0x7fff98616b60}}, m_tuUrl = {m_index = 2556521336}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff98616b88}}} update = false urlLock = {m_url = {m_index = 2617256593}} context = {m_topContext = 0x7fff9c002a91} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff5aa8530 <QListData::shared_null+16>}, d = 0x7ffff5aa8530 <QListData::shared_null+16>}} #22 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff8755b2f0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff985190f0: {file = 0x7fff8755b270, location = {line = 10, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff98412a40}, d = 0x7fff98412a40}}, i = {i = 0x7fff98412a50}, e = {i = 0x7fff98412a58}, control = 1} path = {m_index = 16} environment = @0x7fffa1e141a0: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fff98412a40}, m_projectPaths = {d = 0x7fff984d9360}, m_includes = {d = 0x7fffa1e141f0}, m_defines = {d = 0x1007fff984d9360}, m_pchInclude = {m_data = {d = 0x7fff98412a40}}, m_tuUrl = {m_index = 2554407504}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff98412a58}}} update = false urlLock = {m_url = {m_index = 2617256593}} context = {m_topContext = 0x7fff9c002a91} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x1e}, d = 0x1e}} #23 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff84074de0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff9a878e10: {file = 0x7fff8755b2f0, location = {line = 12, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff984d9360}, d = 0x7fff984d9360}}, i = {i = 0x7fff984d9378}, e = {i = 0x7fff984d9380}, control = 1} path = {m_index = 16} environment = @0x7fffa1e14300: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x0}, m_projectPaths = {d = 0x7fff985b0e40}, m_includes = {d = 0x7fffa1e14350}, m_defines = {d = 0x1007fff985b0e40}, m_pchInclude = {m_data = {d = 0x7fff984d9360}}, m_tuUrl = {m_index = 2555220856}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff984d9380}}} update = false urlLock = {m_url = {m_index = 2617256593}} context = {m_topContext = 0x7fff9c002a91} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x1e}, d = 0x1e}} #24 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff85dc2920, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff9834cc30: {file = 0x7fff84074de0, location = {line = 13, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff985b0e40}, d = 0x7fff985b0e40}}, i = {i = 0x7fff985b0e50}, e = {i = 0x7fff985b0e70}, control = 1} path = {m_index = 2715894816} environment = @0x7fffa1e14460: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fff985b0e40}, m_projectPaths = {d = 0x7ffff37fa4ba <QMutexLocker::~QMutexLocker()+24>}, m_includes = {d = 0x7fff98435a90}, m_defines = {d = 0x7fffa1e144a0}, m_pchInclude = {m_data = {d = 0x7fff985b0e40}}, m_tuUrl = { m_index = 2556104272}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff985b0e70}}} update = false urlLock = {m_url = {m_index = 2715894848}} context = {m_topContext = 0x7fffa1e14490} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fffa1e14490}, d = 0x7fffa1e14490}} #25 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff84b803f0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff982f5430: {file = 0x7fff85dc2920, location = {line = 14, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff985ba2e0}, d = 0x7fff985ba2e0}}, i = {i = 0x7fff985ba2f8}, e = {i = 0x7fff985ba320}, control = 1} path = {m_index = 16} environment = @0x7fffa1e145c0: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fff8e33f370}, m_projectPaths = {d = 0x7fff98142e30}, m_includes = {d = 0x7fffa1e14610}, m_defines = {d = 0x1007fff98142e30}, m_pchInclude = {m_data = {d = 0x7fff985ba2e0}}, m_tuUrl = {m_index = 2556142328}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff985ba320}}} update = false urlLock = {m_url = {m_index = 2617256593}} context = {m_topContext = 0x7fff9c002a91} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x1e}, d = 0x1e}} #26 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff855db3b0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff9834d6c0: {file = 0x7fff84b803f0, location = {line = 14, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff98142e30}, d = 0x7fff98142e30}}, i = {i = 0x7fff98142e40}, e = {i = 0x7fff98142e68}, control = 1} path = {m_index = 2715895520} environment = @0x7fffa1e14720: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fff98142e30}, m_projectPaths = {d = 0x7ffff37fa4ba <QMutexLocker::~QMutexLocker()+24>}, m_includes = {d = 0x7fff9ae5b6c0}, m_defines = {d = 0x7fffa1e14760}, m_pchInclude = {m_data = {d = 0x7fff98142e30}}, m_tuUrl = { m_index = 2551459392}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff98142e68}}} update = false urlLock = {m_url = {m_index = 2715895552}} context = {m_topContext = 0x7fffa1e14750} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fffa1e14750}, d = 0x7fffa1e14750}} #27 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff84550cc0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff98a8c810: {file = 0x7fff855db3b0, location = {line = 11, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff984bed10}, d = 0x7fff984bed10}}, i = {i = 0x7fff984bed28}, e = {i = 0x7fff984bed38}, control = 1} path = {m_index = 16} environment = @0x7fffa1e14880: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x64ab2f0}, m_projectPaths = {d = 0x7fff9a6b1970}, m_includes = {d = 0x7fffa1e148d0}, m_defines = {d = 0x1007fff9a6b1970}, m_pchInclude = {m_data = {d = 0x7fff984bed10}}, m_tuUrl = {m_index = 2555112744}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff984bed38}}} update = false urlLock = {m_url = {m_index = 2617256593}} context = {m_topContext = 0x7fff9c002a91} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x1e}, d = 0x1e}} #28 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff844e4430, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff98005960: {file = 0x7fff84550cc0, location = {line = 11, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff9a6b1970}, d = 0x7fff9a6b1970}}, i = {i = 0x7fff9a6b1980}, e = {i = 0x7fff9a6b1990}, control = 1} path = {m_index = 16} environment = @0x7fffa1e149e0: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fff9a6b1970}, m_projectPaths = {d = 0x7fff9809e570}, m_includes = {d = 0x7fffa1e14a30}, m_defines = {d = 0x1007fff9809e570}, m_pchInclude = {m_data = {d = 0x7fff9a6b1970}}, m_tuUrl = {m_index = 2590710144}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x7fff9a6b1990}}} update = false urlLock = {m_url = {m_index = 2617256593}} context = {m_topContext = 0x7fff9c002a91} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x1e}, d = 0x1e}} #29 0x00007fffb5992765 in ClangHelpers::buildDUChain (file=0x7fff85677230, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x17fbc80) at ../languages/clang/duchain/clanghelpers.cpp:121 import = @0x7fff98227030: {file = 0x7fff844e4430, location = {line = 20, column = 0}} _container_ = {c = {<QListSpecialMethods<Import>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff9809e570}, d = 0x7fff9809e570}}, i = {i = 0x7fff9809e580}, e = {i = 0x7fff9809e5e8}, control = 1} path = {m_index = 2715896544} environment = @0x7fffa1e14ba0: {<KDevelop::ParsingEnvironment> = {_vptr.ParsingEnvironment = 0x7fffa1e14bd0}, m_projectPaths = {d = 0x1e}, m_includes = {d = 0x17fbc80}, m_defines = {d = 0x7fff9c002a91}, m_pchInclude = {m_data = {d = 0x7fffa1e14d10}}, m_tuUrl = {m_index = 3046559058}, m_quality = (ClangParsingEnvironment::Source | ClangParsingEnvironment::BuildSystem | unknown: 32764), m_parserSettings = {parserOptions = {static null = {<No data fields>}, d = 0x17fbc80}}} update = false urlLock = {m_url = {m_index = 2715896576}} context = {m_topContext = 0x7fffa1e14b20} problems = {<QListSpecialMethods<QExplicitlySharedDataPointer<KDevelop::Problem> >> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fffa1e14bd0}, d = 0x7fffa1e14bd0}} #30 0x00007fffb596cd52 in ClangParseJob::run (this=0x5dca390) at ../languages/clang/clangparsejob.cpp:307 parseLock = {q_val = 27883841} __PRETTY_FUNCTION__ = "virtual void ClangParseJob::run(ThreadWeaver::JobPointer, ThreadWeaver::Thread*)" session = {d = {d = 0x7fff8d6393f0}} imports = {<QHash<void*, Import>> = {{d = 0x7fff98175810, e = 0x7fff98175810}}, <No data fields>} includedFiles = {{d = 0x7fff98739e20, e = 0x7fff98739e20}} context = {m_topContext = 0x7fffa1e14dc0} #31 0x00007fffebd50630 in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 No symbol table info available. #32 0x00007fffebd50c70 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 No symbol table info available. #33 0x00007fffebd4f8b0 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 No symbol table info available. #34 0x00007fffebd4f35a in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 No symbol table info available. #35 0x00007ffff57f82be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 No symbol table info available. #36 0x00007fffee8fc6aa in start_thread (arg=0x7fffa1e15700) at pthread_create.c:333 __res = <optimized out> pd = 0x7fffa1e15700 now = <optimized out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735909287680, -4732670666884056383, 0, 140736068602639, 140735909288384, 140735810644320, 4732560661483551425, 4732702691487972033}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = <optimized out> pagesize_m1 = <optimized out> sp = <optimized out> freesize = <optimized out> __PRETTY_FUNCTION__ = "start_thread" #37 0x00007ffff5110eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Some additional information about the file being edited: $ ls -al <file_being_edited> -rw-rw-r-- 1 bungeman bungeman 10257 Jan 5 10:00 <file_being_edited> $ vim <file_being_edited> > apply edits made in kdevelop between last save and crash (remove two lines, > add three characters to existing line) > looking at the documentation of clang_getFileLocation, it may or may not be > relevent that there is a #define macro toward the end of this file. $ ls -al <file_being_edited> -rw-rw-r-- 1 bungeman bungeman 10093 Jan 5 10:16 <file_being_edited> -- You are receiving this mail because: You are watching all bug changes.