Bug 373127 - Kdevelop crashes when I try to open some project.
Summary: Kdevelop crashes when I try to open some project.
Status: RESOLVED DUPLICATE of bug 373614
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.0.1
Platform: Debian unstable Linux
: HI crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-12-01 06:20 UTC by mslf
Modified: 2016-12-13 19:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mslf 2016-12-01 06:20:41 UTC
Application: kdevelop (5.0.1)

Qt Version: 5.7.1
Frameworks Version: 5.28.0
Operating System: Linux 4.8.0-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:
Just open any .kdev4 project or open any file in Kdevelop editor.
It starts to happen after updates.
Version of kdevelop package is 4:5.0.1-2.
$ uname -a
Linux lin2 4.8.0-1-amd64 #1 SMP Debian 4.8.7-1 (2016-11-13) x86_64 GNU/Linux

- Unusual behavior I noticed:
There is some strange screen black blanking, but it seems to be due to videodriver.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7199b0d040 (LWP 1813))]

Thread 7 (Thread 0x7f7172145700 (LWP 2081)):
#0  0x00000031bdcdf56d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00000031c144a9f6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00000031c144ab0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00000031cd6de6fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00000031cd68807a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00000031cd4aa0d3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00000031dc8cd5d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00000031cd4aed88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00000031be807464 in start_thread (arg=0x7f7172145700) at pthread_create.c:333
#9  0x00000031bdce89df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 6 (Thread 0x7f717dab7700 (LWP 2058)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00000031cd4afb86 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00000031ef0c7438 in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10
#3  0x00000031cd4aed88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00000031be807464 in start_thread (arg=0x7f717dab7700) at pthread_create.c:333
#5  0x00000031bdce89df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 5 (Thread 0x7f717f92b700 (LWP 1818)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7188c022ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f7188c02107 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00000031be807464 in start_thread (arg=0x7f717f92b700) at pthread_create.c:333
#4  0x00000031bdce89df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 4 (Thread 0x7f718012c700 (LWP 1817)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7188c022ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f7188c02107 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00000031be807464 in start_thread (arg=0x7f718012c700) at pthread_create.c:333
#4  0x00000031bdce89df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7f718092d700 (LWP 1816)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7188c022ab in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f7188c02107 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00000031be807464 in start_thread (arg=0x7f718092d700) at pthread_create.c:333
#4  0x00000031bdce89df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7f718b489700 (LWP 1815)):
#0  0x00000031bdcdf56d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00000031c144a9f6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00000031c144ab0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00000031cd6de6fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00000031cd68807a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00000031cd4aa0d3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00000031cf4156d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00000031cd4aed88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00000031be807464 in start_thread (arg=0x7f718b489700) at pthread_create.c:333
#9  0x00000031bdce89df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7f7199b0d040 (LWP 1813)):
[KCrash Handler]
#6  0x00007f71818636ad in llvm::cl::Option::setArgStr(llvm::StringRef) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.9.so.1
#7  0x00007f715fdfeacb in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#8  0x00007f715fdfed08 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#9  0x00000031bd80f5da in call_init (l=<optimized out>, argc=argc@entry=2, argv=argv@entry=0x7ffcc62153e8, env=env@entry=0x7ffcc6215400) at dl-init.c:72
#10 0x00000031bd80f6eb in call_init (env=0x7ffcc6215400, argv=0x7ffcc62153e8, argc=2, l=<optimized out>) at dl-init.c:30
#11 _dl_init (main_map=main_map@entry=0x22907f0, argc=2, argv=0x7ffcc62153e8, env=0x7ffcc6215400) at dl-init.c:120
#12 0x00000031bd813c68 in dl_open_worker (a=a@entry=0x7ffcc6213070) at dl-open.c:575
#13 0x00000031bd80f484 in _dl_catch_error (objname=objname@entry=0x7ffcc6213060, errstring=errstring@entry=0x7ffcc6213068, mallocedp=mallocedp@entry=0x7ffcc621305f, operate=operate@entry=0x31bd813880 <dl_open_worker>, args=args@entry=0x7ffcc6213070) at dl-error.c:187
#14 0x00000031bd813419 in _dl_open (file=0x1f5c248 "/usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/25/kdevclangsupport.so", mode=-2147483647, caller_dlopen=0x31cd6861be, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x7ffcc6215400) at dl-open.c:660
#15 0x00000031be400ee9 in dlopen_doit (a=a@entry=0x7ffcc62132a0) at dlopen.c:66
#16 0x00000031bd80f484 in _dl_catch_error (objname=0xa42360, errstring=0xa42368, mallocedp=0xa42358, operate=0x31be400e90 <dlopen_doit>, args=0x7ffcc62132a0) at dl-error.c:187
#17 0x00000031be401521 in _dlerror_run (operate=operate@entry=0x31be400e90 <dlopen_doit>, args=args@entry=0x7ffcc62132a0) at dlerror.c:163
#18 0x00000031be400f82 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#19 0x00000031cd6861be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00000031cd67f285 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00000031cec48d9a in KPluginLoader::load() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#22 0x00000031cec48eca in KPluginLoader::instance() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#23 0x00000031cec48f1c in KPluginLoader::factory() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#24 0x00000031ec09baa5 in KDevelop::PluginController::loadPluginInternal(QString const&) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#25 0x00000031ec09d289 in KDevelop::PluginController::pluginForExtension(QString const&, QString const&, QMap<QString, QVariant> const&) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#26 0x00000031ec0dabef in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#27 0x00000031ec0d7435 in KDevelop::DocumentController::openDocument(QUrl const&, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, QString const&, KDevelop::IDocument*) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#28 0x00007f717c561624 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/25/kdevopenwith.so
#29 0x00007f717c56195f in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/25/kdevopenwith.so
#30 0x00007f717776fc18 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/25/kdevfilemanager.so
#31 0x00000031cd6b5ffe in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00000031e2a441d5 in KDirOperator::fileSelected(KFileItem const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#33 0x00000031e2a45aac in KDirOperator::Private::_k_slotActivated(QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#34 0x00000031e2a4d934 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#35 0x00000031cd6b5c89 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00000031cfda3115 in QAbstractItemView::activated(QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00000031cfda666e in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00000031cfdf077b in QTreeView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00000031cfba11d8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x00000031cfc896ee in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00000031cfdb0493 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#42 0x00000031cfdefeec in QTreeView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00000031cd689df1 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x00000031cfb59b05 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00000031cfb6219d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00000031cd68a090 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#47 0x00000031cfb6084d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#48 0x00000031cfbbb866 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#49 0x00000031cfbbe273 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#50 0x00000031cfb59b2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00000031cfb612e1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#52 0x00000031cd68a090 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#53 0x00000031cdef7b03 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#54 0x00000031cdef9685 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#55 0x00000031cded761b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#56 0x00007f71924364e0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#57 0x00000031c144a7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00000031c144aa60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00000031c144ab0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00000031cd6de6df in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#61 0x00000031cd68807a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#62 0x00000031cd6907ec in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#63 0x000000000040ba2c in ?? ()
#64 0x00000031bdc202b1 in __libc_start_main (main=0x405d20, argc=2, argv=0x7ffcc62153e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcc62153d8) at ../csu/libc-start.c:291
#65 0x000000000040c06a in _start ()

Reported using DrKonqi
Comment 1 Kevin Funk 2016-12-01 08:09:43 UTC
Self-compiled KDevelop?

You're loading two different versions of libLLVM, as can be seen here:
#6  0x00007f71818636ad in llvm::cl::Option::setArgStr(llvm::StringRef) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.9.so.1
#7  0x00007f715fdfeacb in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#8  0x00007f715fdfed08 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1

That won't work, please check your setup.
Comment 2 mslf 2016-12-01 09:13:54 UTC
(In reply to Kevin Funk from comment #1)
> Self-compiled KDevelop?
No, it is installed from debian sid reps.
> That won't work, please check your setup.
May it be due to not removing old packages? I tried to do apt-get autoremove,  but it doesn't seems to be enough. Need to wait updating debian reps?
Comment 3 Kevin Funk 2016-12-01 09:21:26 UTC
I'll check. We've seen similar issues on the CI unfortunately.

Haven't figured out the cause of this problem yet. Maybe it's indeed a bug in our CMake scripts for detecting Clang/LLVM.
Comment 4 Kevin Funk 2016-12-13 19:48:46 UTC

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