Bug 388832 - crash when open c++ files.
Summary: crash when open c++ files.
Status: RESOLVED DUPLICATE of bug 383086
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.1.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-01-12 00:02 UTC by cyuan
Modified: 2018-01-12 18:35 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 cyuan 2018-01-12 00:02:27 UTC
Application: kdevelop (5.1.1)

Qt Version: 5.6.1
Frameworks Version: 5.36.0
Operating System: Linux 4.13.0-26-generic x86_64
Distribution: Ubuntu 16.04.3 LTS

-- Information about the crash:
- What I was doing when the application crashed:
can not open any kinds of c++ files  (cpp, hpp, ipp, etc), but open txt and py files are ok.

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 0x7f2b15169900 (LWP 8835))]

Thread 5 (Thread 0x7f2af292e700 (LWP 8864)):
#0  0x00007f2b31efd70d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f2b2b00938c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2b2b00949c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2b3282537b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2b327cdffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2b325f69e4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f2b283906b5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f2b325fb808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f2b2be9e6ba in start_thread (arg=0x7f2af292e700) at pthread_create.c:333
#9  0x00007f2b31f093dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f2afd062700 (LWP 8841)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007f2b325fc5f6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f2b3002ee48 in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10
#3  0x00007f2b325fb808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2b2be9e6ba in start_thread (arg=0x7f2afd062700) at pthread_create.c:333
#5  0x00007f2b31f093dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f2afeb18700 (LWP 8838)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2b034d360b in ?? () from /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#2  0x00007f2b034d3517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
#3  0x00007f2b2be9e6ba in start_thread (arg=0x7f2afeb18700) at pthread_create.c:333
#4  0x00007f2b31f093dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f2b10bbe700 (LWP 8837)):
#0  0x00007f2b2b04da90 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f2b2b0092ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2b2b00949c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2b3282537b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2b327cdffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2b325f69e4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f2b34932515 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f2b325fb808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f2b2be9e6ba in start_thread (arg=0x7f2b10bbe700) at pthread_create.c:333
#9  0x00007f2b31f093dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f2b15169900 (LWP 8835)):
[KCrash Handler]
#6  0x00007f2afff3df68 in llvm::cl::AddLiteralOption(llvm::cl::Option&, llvm::StringRef) () from /usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1
#7  0x00007f2b002766f5 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1
#8  0x00007f2ae1afcb0a in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#9  0x00007f2b347d96ba in call_init (l=<optimized out>, argc=argc@entry=2, argv=argv@entry=0x7ffd604ceb78, env=env@entry=0x7ffd604ceb90) at dl-init.c:72
#10 0x00007f2b347d97cb in call_init (env=0x7ffd604ceb90, argv=0x7ffd604ceb78, argc=2, l=<optimized out>) at dl-init.c:30
#11 _dl_init (main_map=main_map@entry=0x1fd0960, argc=2, argv=0x7ffd604ceb78, env=0x7ffd604ceb90) at dl-init.c:120
#12 0x00007f2b347de8e2 in dl_open_worker (a=a@entry=0x7ffd604cc8e0) at dl-open.c:575
#13 0x00007f2b347d9564 in _dl_catch_error (objname=objname@entry=0x7ffd604cc8d0, errstring=errstring@entry=0x7ffd604cc8d8, mallocedp=mallocedp@entry=0x7ffd604cc8cf, operate=operate@entry=0x7f2b347de4d0 <dl_open_worker>, args=args@entry=0x7ffd604cc8e0) at dl-error.c:187
#14 0x00007f2b347ddda9 in _dl_open (file=0x1fa54f8 "/usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/27/kdevclangsupport.so", mode=-2147483647, caller_dlopen=0x7f2b327cc1b0, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x7ffd604ceb90) at dl-open.c:660
#15 0x00007f2b29a4ff09 in dlopen_doit (a=a@entry=0x7ffd604ccb10) at dlopen.c:66
#16 0x00007f2b347d9564 in _dl_catch_error (objname=0xcf5720, errstring=0xcf5728, mallocedp=0xcf5718, operate=0x7f2b29a4feb0 <dlopen_doit>, args=0x7ffd604ccb10) at dl-error.c:187
#17 0x00007f2b29a50571 in _dlerror_run (operate=operate@entry=0x7f2b29a4feb0 <dlopen_doit>, args=args@entry=0x7ffd604ccb10) at dlerror.c:163
#18 0x00007f2b29a4ffa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#19 0x00007f2b327cc1b0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f2b327c5735 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f2b336741fa in KPluginLoader::load() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#22 0x00007f2b3367432a in KPluginLoader::instance() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#23 0x00007f2b3367437c in KPluginLoader::factory() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#24 0x00007f2b3449ce0e in KDevelop::PluginController::loadPluginInternal(QString const&) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#25 0x00007f2b3449e7d1 in KDevelop::PluginController::pluginForExtension(QString const&, QString const&, QMap<QString, QVariant> const&) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#26 0x00007f2b344dd3c4 in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#27 0x00007f2b344d9c15 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 0x00007f2af54b0ccb in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/27/kdevopenwith.so
#29 0x00007f2af54b1016 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/27/kdevopenwith.so
#30 0x00007f2af3d78a8b in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/27/kdevfilemanager.so
#31 0x00007f2b327fcc24 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f2b31b73105 in KDirOperator::fileSelected(KFileItem const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#33 0x00007f2b31b74c6c in KDirOperator::Private::_k_slotActivated(QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#34 0x00007f2b31b7cb04 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#35 0x00007f2b327fcb71 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f2b33367d65 in QAbstractItemView::activated(QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007f2b3336b13a in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007f2b333b2ef3 in QTreeView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f2b3314ae58 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x00007f2b3324bb2e in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007f2b33374b23 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#42 0x00007f2b333b279c in QTreeView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007f2b327d0012 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x00007f2b33105ad5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00007f2b3310b88e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00007f2b327d02a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#47 0x00007f2b3310a585 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#48 0x00007f2b331654b0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#49 0x00007f2b33167df3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#50 0x00007f2b33105afc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00007f2b3310b036 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#52 0x00007f2b327d02a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#53 0x00007f2b32b1efc0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#54 0x00007f2b32b20b55 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#55 0x00007f2b32afe78b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#56 0x00007f2b146d5d40 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#57 0x00007f2b2b009197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007f2b2b0093f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007f2b2b00949c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007f2b3282535f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#61 0x00007f2b327cdffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#62 0x00007f2b327d66bc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#63 0x000000000040bc06 in ?? ()
#64 0x00007f2b31e22830 in __libc_start_main (main=0x405f50, argc=2, argv=0x7ffd604ceb78, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd604ceb68) at ../csu/libc-start.c:291
#65 0x000000000040c139 in _start ()

Possible duplicates by query: bug 375892.

Reported using DrKonqi
Comment 1 Kevin Funk 2018-01-12 08:02:09 UTC
This is a packaging problem. There two LLVM libraries of different version loaded into the same process:

#7  0x00007f2b002766f5 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1
#8  0x00007f2ae1afcb0a in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1

Where/How did you get KDevelop on Ubuntu 16.04?
Comment 2 Kevin Funk 2018-01-12 08:02:16 UTC

*** This bug has been marked as a duplicate of bug 383086 ***
Comment 3 cyuan 2018-01-12 18:35:00 UTC
(In reply to Kevin Funk from comment #1)
> This is a packaging problem. There two LLVM libraries of different version
> loaded into the same process:
> 
> #7  0x00007f2b002766f5 in ?? () from
> /usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1
> #8  0x00007f2ae1afcb0a in ?? () from
> /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
> 
> Where/How did you get KDevelop on Ubuntu 16.04?


Thanks for reply. I install KDevelop by:

sudo apt-get install kdevelop