Bug 355392 - Crash with auto-completion suggestions while cursor is on virtual destructor with incorrect name
Summary: Crash with auto-completion suggestions while cursor is on virtual destructor ...
Status: RESOLVED DUPLICATE of bug 355163
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 4.90.90
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-15 19:52 UTC by Bill Robinson
Modified: 2015-11-16 13:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Robinson 2015-11-15 19:52:11 UTC
I changed the base class of a class and its name, then the cursor was on the name of the destructor declaration and I got this crash. Hope this helps

#0  0x00007ffff5045267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007ffff5046eca in __GI_abort () at abort.c:89
#2  0x00007ffff57ebc88 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffff57e6e31 in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fff9658c513 in QList<QString>::at (this=0x7fff935ad7c8, i=0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:478
#5  0x00007fff96604f0a in (anonymous namespace)::baseClassVisitor (cursor=..., data=0x7fff935ad7c0) at /home/bill/programming/kdevelop/languages/clang/codecompletion/completionhelper.cpp:152
#6  0x00007fff95a4fcfd in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#7  0x00007fff95a51e54 in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#8  0x00007fff95a4f455 in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#9  0x00007fff95a4f7fb in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#10 0x00007fff95a56244 in clang_visitChildren () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#11 0x00007fff96604dea in (anonymous namespace)::processBaseClass (cursor=..., functionList=0x7fff8c14fc50) at /home/bill/programming/kdevelop/languages/clang/codecompletion/completionhelper.cpp:141
#12 0x00007fff96604f49 in (anonymous namespace)::baseClassVisitor (cursor=..., data=0x7fff935adc90) at /home/bill/programming/kdevelop/languages/clang/codecompletion/completionhelper.cpp:155
#13 0x00007fff95a4fcfd in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#14 0x00007fff95a4f3ba in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#15 0x00007fff95a4f7fb in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#16 0x00007fff95a56244 in clang_visitChildren () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#17 0x00007fff96604dea in (anonymous namespace)::processBaseClass (cursor=..., functionList=0x7fff8c14fc50) at /home/bill/programming/kdevelop/languages/clang/codecompletion/completionhelper.cpp:141
#18 0x00007fff9660503c in (anonymous namespace)::findBaseVisitor (cursor=..., data=0x7fff8c14fc50) at /home/bill/programming/kdevelop/languages/clang/codecompletion/completionhelper.cpp:171
#19 0x00007fff95a4fcfd in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#20 0x00007fff95a4f3ba in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#21 0x00007fff95a4f7fb in ?? () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#22 0x00007fff95a56244 in clang_visitChildren () from /usr/lib/llvm-3.5/lib/libclang-3.5.so.1
#23 0x00007fff9660623b in CompletionHelper::computeCompletions (this=0x7fff8c14fc50, session=..., file=0x7ffedc9cec60, position=...) at /home/bill/programming/kdevelop/languages/clang/codecompletion/completionhelper.cpp:332
#24 0x00007fff965f9155 in ClangCodeCompletionContext::ClangCodeCompletionContext (this=0x7fff8c14fc00, context=..., sessionData=..., url=..., position=..., text=..., followingText=...)
    at /home/bill/programming/kdevelop/languages/clang/codecompletion/context.cpp:825
#25 0x00007fff965f44b1 in QSharedPointer<ClangCodeCompletionContext>::create<KDevelop::DUChainPointer<KDevelop::DUContext> const&, QExplicitlySharedDataPointer<ParseSessionData> const&, QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&> () at /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:410
#26 0x00007fff965f2762 in (anonymous namespace)::createCompletionContext (context=..., session=..., url=..., position=..., text=..., followingText=...)
    at /home/bill/programming/kdevelop/languages/clang/codecompletion/model.cpp:79
#27 0x00007fff965f2ba3 in (anonymous namespace)::ClangCodeCompletionWorker::completionRequested (this=0x649880, url=..., position=..., text=..., followingText=...)
    at /home/bill/programming/kdevelop/languages/clang/codecompletion/model.cpp:126
#28 0x00007fff965f3dc9 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1, 2, 3>, QtPrivate::List<QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&>, void, void ((anonymous namespace)::ClangCodeCompletionWorker::*)(QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&)>::call (f=
    (void ((anonymous namespace)::ClangCodeCompletionWorker::*)((anonymous namespace)::ClangCodeCompletionWorker * const, const QUrl &, const KTextEditor::Cursor &, const QString &, const QString &)) 0x7fff965f27e4 <(anonymous namespace)::ClangCodeCompletionWorker::completionRequested(QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&)>, o=0x649880, arg=0x28766f0)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:500
#29 0x00007fff965f3d23 in QtPrivate::FunctionPointer<void ((anonymous namespace)::ClangCodeCompletionWorker::*)(QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&)>::call<QtPrivate::List<QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&>, void> (f=
    (void ((anonymous namespace)::ClangCodeCompletionWorker::*)((anonymous namespace)::ClangCodeCompletionWorker * const, const QUrl &, const KTextEditor::Cursor &, const QString &, const QString &)) 0x7fff965f27e4 <(anonymous namespace)::ClangCodeCompletionWorker::completionRequested(QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&)>, o=0x649880, arg=0x28766f0)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:519
#30 0x00007fff965f3c67 in QtPrivate::QSlotObject<void ((anonymous namespace)::ClangCodeCompletionWorker::*)(QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&), QtPrivate::List<QUrl const&, KTextEditor::Cursor const&, QString const&, QString const&>, void>::impl (which=1, this_=0x17acfc0, r=0x649880, a=0x28766f0, ret=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject_impl.h:143
#31 0x00007ffff5a0f651 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007ffff62abb8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007ffff62b1230 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007ffff59ddf1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007ffff59e0057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007ffff5a34e73 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#37 0x00007fffee19bff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007fffee19c250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fffee19c2fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007ffff5a3527f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007ffff59db75a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007ffff57f93d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00007ffff398ce44 in KDevelop::CompletionWorkerThread::run (this=0x17a4980) at /home/bill/programming/kdevplatform/language/codecompletion/codecompletionmodel.cpp:88
#44 0x00007ffff57fe2be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007fffeeb1e6aa in start_thread (arg=0x7fff935af700) at pthread_create.c:333
#46 0x00007ffff5116eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Comment 1 Milian Wolff 2015-11-16 13:08:56 UTC
I think I fixed this recently. Can you update your kdevelop checkout and try again? Or is this the 5.0 beta 1 package?

*** This bug has been marked as a duplicate of bug 355163 ***