A commit implementing usage of the executable path from cmake server causes segfault
Aleix Pol
aleixpol at kde.org
Wed Jul 19 01:14:16 UTC 2017
Hi,
could you check if this fixed your issue?
https://commits.kde.org/kdevelop/47f9ffe02413355e9fbf9a950224f5d7e7bcb141
Please compile your kdevelop in debug mode so these issues are easier to spot!
Thanks,
Aleix
On Mon, Jul 17, 2017 at 6:33 PM, Alexander Zhigalin
<alexander at zhigalin.tk> wrote:
> Hello Aleix!
>
> I have found that your commit is causing a segmentation fault on my machine.
> Here is the backtrace I got:
>
>
> Thread 1 "kdevelop" received signal SIGSEGV, Segmentation fault.
> 0x00007ffff77f7964 in KDevelop::Path::Path(KDevelop::Path const&, QString
> const&) () from /home/z/kde-5/lib/x86_64-linux-gnu/libKDevPlatformUtil.so.10
> (gdb) bt
> #0 0x00007ffff77f7964 in KDevelop::Path::Path(KDevelop::Path const&,
> QString const&) () from
> /home/z/kde-5/lib/x86_64-linux-gnu/libKDevPlatformUtil.so.10
> #1 0x00007fffb5929553 in
> CMakeTargetItem::CMakeTargetItem(KDevelop::ProjectFolderItem*, QString
> const&, KDevelop::Path const&) () from
> /home/z/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/28/kdevcmakemanager.so
> #2 0x00007fffb5923cb3 in populateTargets(KDevelop::ProjectFolderItem*,
> QHash<KDevelop::Path, QVector<CMakeTarget> > const&) [clone .constprop.162]
> () from
> /home/z/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/28/kdevcmakemanager.so
> #3 0x00007fffb5924f2a in CMakeManager::integrateData(CMakeProjectData
> const&, KDevelop::IProject*) () from
> /home/z/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/28/kdevcmakemanager.so
> #4 0x00007fffb59284c8 in
> QtPrivate::QFunctorSlotObject<ChooseCMakeInterfaceJob::failedConnection(int)::{lambda()#1},
> 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*,
> QObject*, void**, bool*) ()
> from
> /home/z/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/28/kdevcmakemanager.so
> #5 0x00007ffff5ed3f46 in QMetaObject::activate(QObject*, int, int, void**)
> () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #6 0x00007ffff6d5b740 in KJob::result (this=0x42cf400, _t1=0x42cf400) at
> /home/z/kdesrc/build/kcoreaddons/src/lib/moc_kjob.cpp:568
> #7 0x00007ffff6d599a3 in KJob::finishJob (this=0x42cf400, emitResult=true)
> at /home/z/kdesrc/kcoreaddons/src/lib/jobs/kjob.cpp:109
> #8 0x00007ffff6d5a109 in KJob::emitResult (this=0x42cf400) at
> /home/z/kdesrc/kcoreaddons/src/lib/jobs/kjob.cpp:293
> #9 0x00007fffb59118bf in
> CMakeImportJsonJob::importCompileCommandsJsonFinished() () from
> /home/z/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/28/kdevcmakemanager.so
> #10 0x00007ffff5ed3f46 in QMetaObject::activate(QObject*, int, int, void**)
> () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #11 0x00007ffff5cca221 in QFutureWatcherBase::event(QEvent*) () from
> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #12 0x00007ffff680f3fc in QApplicationPrivate::notify_helper(QObject*,
> QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #13 0x00007ffff6816e07 in QApplication::notify(QObject*, QEvent*) () from
> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #14 0x00007ffff5ea7798 in QCoreApplication::notifyInternal2(QObject*,
> QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #15 0x00007ffff5ea9f7b in
> QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
> from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #16 0x00007ffff5efd323 in ?? () from
> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #17 0x00000031c484a197 in g_main_context_dispatch () from
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #18 0x00000031c484a3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #19 0x00000031c484a49c in g_main_context_iteration () from
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #20 0x00007ffff5efc92f in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
> () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #21 0x00007ffff5ea57ca in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #22 0x00007ffff5eae704 in QCoreApplication::exec() () from
> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> #23 0x000000000040bce9 in main ()
>
>
>
>
> --
> Alexander Zhigalin - DevOps
>
More information about the KDevelop-devel
mailing list