Bug 331174 - Crash when opening a specific C++ file
Summary: Crash when opening a specific C++ file
Status: RESOLVED DUPLICATE of bug 318972
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.5.2
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-16 06:17 UTC by mastergeek.elliott
Modified: 2014-02-16 10:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The file that consistently causes the crash when opened (6.74 KB, text/x-c++hdr)
2014-02-16 06:23 UTC, mastergeek.elliott
Details
A file that is incredibly similar to the problem file, but doesn't cause a crash (7.40 KB, text/x-c++hdr)
2014-02-16 06:28 UTC, mastergeek.elliott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mastergeek.elliott 2014-02-16 06:17:13 UTC
When I open a certain C++ file (that heavily uses C++11), kdevelop 4.5.1 crashes immediately. I know it's specific to this file because it still crashes even when I have no projects open in kdevelop and there are no other files opened. It's strange, because I have another file extremely similar to the problem file (in terms of imports, purpose, and design), and that doesn't cause any problems at all, and the file itself compiles just fine with a recent version of clang or gcc. Also, since the file opens automatically for the project I'm working on when I start kdevelop, it crashes after it starts up and loads the file, though I have enough time to close the file and stop the crash. Of course, it crashes as soon as I open it again. The other thing I should mention is that after it crashes, kdevelop will occasionally cause a segmentation fault (and I've included that backtrace of that). It seems like it's more likely to segfault if a project is open, though.

Also, a few weeks ago I seem to remember having this issue, and I think I fixed it by deleting all the files that looked related to kdevelop in ~/.kde/share/apps. However, I don't want to have to redo all my settings every time something like this happens.

Reproducible: Always

Steps to Reproduce:
Open the problem file. Kdevelop is fine when it's not open, and crashes immediately when it is.
Actual Results:  
Kdevelop crashes: the window closes and the only error message is on the command line.

Expected Results:  
That nothing special happens.

====================================================
Console output when kdevelop crashes (and doesn't segfault)
====================================================
KGlobal::locale(): Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
WARNING: deleting stale lockfile /home/frans/.kde/share/apps/kdevelop/sessions/{865f40df-d8a7-4717-a19d-30cd820c5da8}/lock
WARNING: deleting stale lockfile /home/frans/.cache/kdevduchain/{865f40df-d8a7-4717-a19d-30cd820c5da8}/0/lock
kdevelop(10215)/kdevplatform (language) KDevelop::ItemRepositoryRegistry::open: version-hint not found, seems to be an old version 
kdevelop(10215)/kdevplatform (language) KDevelop::ItemRepositoryRegistry::open: "The data-repository at /home/frans/.cache/kdevduchain/{865f40df-d8a7-4717-a19d-30cd820c5da8}/0 has to be cleared." 
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
qrc:/main.qml:23:1: QML Loader: Binding loop detected for property "source"
qrc:/main.qml:23:1: QML Loader: Binding loop detected for property "source"
"/org/freedesktop/UDisks2/drives/Generic_USB_MS_Reader_920321111113" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_BDDVDRW_CH08LS10_H939AH85325" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/Generic_USB_SD_Reader_920321111113" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/Generic_USB_SM_Reader_920321111113" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GH24NS90_KE1C89L3907" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/Generic_USB_CF_Reader_920321111113" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/SAMSUNG_HD502HJ_S20BJ90Z146744" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/ST1000DM003_9YN162_Z1D2G408" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d2" : property "MountPoints" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d0" : property "Name" does not exist 
"/" : property "DeviceNumber" does not exist 
"/" : property "Device" does not exist 
"/" : property "MediaCompatibility" does not exist 
"/" : property "MediaRemovable" does not exist 
"/" : property "Removable" does not exist 
"/" : property "ConnectionBus" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d1" : property "Name" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d4" : property "Name" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d5" : property "Name" does not exist 
"/org/freedesktop/UDisks2/drives/ST1000DM003_9YN162_Z1D2G408" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/ST1000DM003_9YN162_Z1D2G408" : property "Device" does not exist 
kdevelop(10215)/kdevplatform (shell) KDevelop::SessionControllerPrivate::performRecovery: Starting recovery from  "/home/frans/.kde/share/apps/kdevelop/sessions/{865f40df-d8a7-4717-a19d-30cd820c5da8}/recovery/current" 
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x4600012
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x460015e
kdevelop(10215)/kdevelop (cpp duchain) ContextBuilder::buildContexts: "/usr/include/c++/4.8/bits/stl_iterator_base_types.h" Previous parameter declaration context didn't get used?? 
kdevelop(10215)/kdevelop (cpp duchain) ContextBuilder::buildContexts: "/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++allocator.h" Previous parameter declaration context didn't get used?? 
KCrash: Application 'kdevelop' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/frans/.kde/socket-Frans-Desktop-Linux/kdeinit4__0
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
QSocketNotifier: Invalid socket 35 and type 'Read', disabling...
QSocketNotifier: Invalid socket 33 and type 'Read', disabling...
QSocketNotifier: Invalid socket 22 and type 'Read', disabling...
QSocketNotifier: Invalid socket 23 and type 'Read', disabling...
kdevelop: Fatal IO error: client killed
SpecialTemplateDeclarationData::m_specializations There were items left on destruction: 937
ClassFunctionDeclarationData::m_defaultParameters There were items left on destruction: 1147
FunctionDeclarationData::m_defaultParameters There were items left on destruction: 1281
ClassDeclarationData::baseClasses There were items left on destruction: 921
DUContextData::m_importers There were items left on destruction: 1875
DUContextData::m_importedContexts There were items left on destruction: 2080
DUContextData::m_uses There were items left on destruction: 5568
TopDUContextData::m_usedDeclarationIds There were items left on destruction: 149
DUContextData::m_childContexts There were items left on destruction: 5387
DUContextData::m_localDeclarations There were items left on destruction: 5666
Unable to start Dr. Konqi

==============================================
Console output when kdevelop crashes (and segfaults)
==============================================

KGlobal::locale(): Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
WARNING: deleting stale lockfile /home/frans/.kde/share/apps/kdevelop/sessions/{865f40df-d8a7-4717-a19d-30cd820c5da8}/lock
WARNING: deleting stale lockfile /home/frans/.cache/kdevduchain/{865f40df-d8a7-4717-a19d-30cd820c5da8}/0/lock
kdevelop(13622)/kdevplatform (language) KDevelop::ItemRepositoryRegistry::open: version-hint not found, seems to be an old version 
kdevelop(13622)/kdevplatform (language) KDevelop::ItemRepositoryRegistry::open: "The data-repository at /home/frans/.cache/kdevduchain/{865f40df-d8a7-4717-a19d-30cd820c5da8}/0 has to be cleared." 
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
qrc:/main.qml:23:1: QML Loader: Binding loop detected for property "source"
qrc:/main.qml:23:1: QML Loader: Binding loop detected for property "source"
"/org/freedesktop/UDisks2/drives/Generic_USB_MS_Reader_920321111113" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_BDDVDRW_CH08LS10_H939AH85325" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/Generic_USB_SD_Reader_920321111113" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/Generic_USB_SM_Reader_920321111113" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GH24NS90_KE1C89L3907" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/Generic_USB_CF_Reader_920321111113" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/SAMSUNG_HD502HJ_S20BJ90Z146744" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/ST1000DM003_9YN162_Z1D2G408" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d2" : property "MountPoints" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d0" : property "Name" does not exist 
"/" : property "DeviceNumber" does not exist 
"/" : property "Device" does not exist 
"/" : property "MediaCompatibility" does not exist 
"/" : property "MediaRemovable" does not exist 
"/" : property "Removable" does not exist 
"/" : property "ConnectionBus" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d1" : property "Name" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d4" : property "Name" does not exist 
"/org/freedesktop/UDisks2/block_devices/dm_2d5" : property "Name" does not exist 
"/org/freedesktop/UDisks2/drives/ST1000DM003_9YN162_Z1D2G408" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/ST1000DM003_9YN162_Z1D2G408" : property "Device" does not exist 
kdevelop(13622)/kdevplatform (shell) KDevelop::SessionControllerPrivate::performRecovery: Starting recovery from  "/home/frans/.kde/share/apps/kdevelop/sessions/{865f40df-d8a7-4717-a19d-30cd820c5da8}/recovery/current" 
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x4600012
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /CMakeCache.txt
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x4600166
error! can't unset the cached var:  "_BOOST_INCLUDEDIR_LAST" 
error! can't unset the cached var:  "_Boost_ADDITIONAL_VERSIONS_LAST" 
error! can't unset the cached var:  "_BOOST_LIBRARYDIR_LAST" 
error! can't unset the cached var:  "_BOOST_ROOT_LAST" 
error! can't unset the cached var:  "_Boost_NO_SYSTEM_PATHS_LAST" 
error! can't unset the cached var:  "_Boost_COMPILER_LAST" 
error! can't unset the cached var:  "_Boost_THREADAPI_LAST" 
error! can't unset the cached var:  "_Boost_USE_DEBUG_PYTHON_LAST" 
error! can't unset the cached var:  "_Boost_USE_STATIC_LIBS_LAST" 
error! can't unset the cached var:  "_Boost_USE_STATIC_RUNTIME_LAST" 
error! can't unset the cached var:  "_Boost_USE_STLPORT_LAST" 
error! can't unset the cached var:  "_Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS_LAST" 
kdevelop(13622)/kdevelop (cpp duchain) ContextBuilder::buildContexts: "/usr/include/c++/4.8/bits/stl_iterator_base_types.h" Previous parameter declaration context didn't get used?? 
kdevelop(13622)/kdevelop (cpp duchain) ContextBuilder::buildContexts: "/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++allocator.h" Previous parameter declaration context didn't get used?? 
KCrash: Application 'kdevelop' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/frans/.kde/socket-Frans-Desktop-Linux/kdeinit4__0

[1]+  Stopped                 kdevelop

===========================================
Backtrace when kdevelop segfaults after it crashes
===========================================

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 0x7fe4bbcec7c0 (LWP 13622))]

Thread 13 (Thread 0x7fe49da85700 (LWP 13624)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fe4b9a2b3e4 in wait (time=1000, this=0x24ab880) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x24868f0, time=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fe4b58dbc1b in ?? () from /usr/lib/libkdevplatformlanguage.so.7
#4  0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x24868d0) at thread/qthread_unix.cpp:338
#5  0x00007fe4b780ef6e in start_thread (arg=0x7fe49da85700) at pthread_create.c:311
#6  0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 12 (Thread 0x7fe48aa09700 (LWP 13631)):
#0  __GI___pthread_mutex_lock (mutex=0x7fe484000a80) at pthread_mutex_lock.c:47
#1  0x00007fe4b2afd3a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe4b2abd286 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4b2abd708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe4b2abd7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe4b9b57a76 in QEventDispatcherGlib::processEvents (this=0x7fe4840008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fe4b9b295ef in QEventLoop::processEvents (this=this@entry=0x7fe48aa08d70, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fe4b9b298e5 in QEventLoop::exec (this=this@entry=0x7fe48aa08d70, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fe4b9a2888f in QThread::exec (this=this@entry=0x30fb530) at thread/qthread.cpp:542
#9  0x00007fe4b9b0ad13 in QInotifyFileSystemWatcherEngine::run (this=0x30fb530) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x30fb530) at thread/qthread_unix.cpp:338
#11 0x00007fe4b780ef6e in start_thread (arg=0x7fe48aa09700) at pthread_create.c:311
#12 0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 11 (Thread 0x7fe4897b5700 (LWP 13632)):
#0  0x00007fe4b871e6bd in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe4a9549e41 in ?? () from /usr/lib/nvidia-331/tls/libnvidia-tls.so.331.38
#2  0x00007fe4b2afc670 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4b2abd1cc in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe4b2abd63b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe4b2abd7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fe4b9b57a76 in QEventDispatcherGlib::processEvents (this=0x7fe47c0008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007fe4b9b295ef in QEventLoop::processEvents (this=this@entry=0x7fe4897b4db0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007fe4b9b298e5 in QEventLoop::exec (this=this@entry=0x7fe4897b4db0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007fe4b9a2888f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#10 0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x329bbc0) at thread/qthread_unix.cpp:338
#11 0x00007fe4b780ef6e in start_thread (arg=0x7fe4897b5700) at pthread_create.c:311
#12 0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 10 (Thread 0x7fe488fb4700 (LWP 13633)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007fe4b7811177 in _L_lock_1035 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007fe4b7811009 in __GI___pthread_mutex_lock (mutex=0x7fe4aa561ec0) at pthread_mutex_lock.c:85
#3  0x00007fe4aa2f342c in ?? () from /usr/lib/nvidia-331/libGL.so.1
#4  0x00007fe4aa2f4500 in ?? () from /usr/lib/nvidia-331/libGL.so.1
#5  0x00007fe4aa2f52ab in ?? () from /usr/lib/nvidia-331/libGL.so.1
#6  0x00007fe4a9549e80 in ?? () from /usr/lib/nvidia-331/tls/libnvidia-tls.so.331.38
#7  0x00007fe4b2afc670 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fe4b2abd1cc in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007fe4b2abd63b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007fe4b2abd7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007fe4b9b57a76 in QEventDispatcherGlib::processEvents (this=0x7fe4800008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007fe4b9b295ef in QEventLoop::processEvents (this=this@entry=0x7fe488fb3db0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007fe4b9b298e5 in QEventLoop::exec (this=this@entry=0x7fe488fb3db0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007fe4b9a2888f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x2478c70) at thread/qthread_unix.cpp:338
#16 0x00007fe4b780ef6e in start_thread (arg=0x7fe488fb4700) at pthread_create.c:311
#17 0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 9 (Thread 0x7fe47bfff700 (LWP 13638)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4b4c4c06b in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007fe4b4c4c0a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007fe4b780ef6e in start_thread (arg=0x7fe47bfff700) at pthread_create.c:311
#4  0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 8 (Thread 0x7fe47aace700 (LWP 13650)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007fe4b7811177 in _L_lock_1035 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007fe4b7811009 in __GI___pthread_mutex_lock (mutex=0x7fe4aa561ec0) at pthread_mutex_lock.c:85
#3  0x00007fe4aa2f342c in ?? () from /usr/lib/nvidia-331/libGL.so.1
#4  0x00007fe4aa2f4500 in ?? () from /usr/lib/nvidia-331/libGL.so.1
#5  0x00007fe4aa2f47a8 in ?? () from /usr/lib/nvidia-331/libGL.so.1
#6  0x00007fe4a9549e1b in ?? () from /usr/lib/nvidia-331/tls/libnvidia-tls.so.331.38
#7  0x00007fe4b2afc670 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fe4b2abd1cc in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007fe4b2abd63b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007fe4b2abd7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007fe4b9b57a76 in QEventDispatcherGlib::processEvents (this=0x7fe3ec0008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007fe4b9b295ef in QEventLoop::processEvents (this=this@entry=0x7fe47aacdd70, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007fe4b9b298e5 in QEventLoop::exec (this=this@entry=0x7fe47aacdd70, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007fe4b9a2888f in QThread::exec (this=this@entry=0x415f0b0) at thread/qthread.cpp:542
#15 0x00007fe4b9b0ad13 in QInotifyFileSystemWatcherEngine::run (this=0x415f0b0) at io/qfilesystemwatcher_inotify.cpp:265
#16 0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x415f0b0) at thread/qthread_unix.cpp:338
#17 0x00007fe4b780ef6e in start_thread (arg=0x7fe47aace700) at pthread_create.c:311
#18 0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7fe3f37fe700 (LWP 13705)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4af6241cd in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fe4af624209 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fe4b780ef6e in start_thread (arg=0x7fe3f37fe700) at pthread_create.c:311
#4  0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7fe3f3fff700 (LWP 13706)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4af364bbd in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fe4af653a76 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fe4b780ef6e in start_thread (arg=0x7fe3f3fff700) at pthread_create.c:311
#4  0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7fe3f2bfd700 (LWP 13707)):
#0  0x00007fe4b7811055 in __GI___pthread_mutex_lock (mutex=0x7fe3e4000a80) at pthread_mutex_lock.c:95
#1  0x00007fe4b2afd3a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe4b2abd12c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4b2abd63b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe4b2abd7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe4b9b57a76 in QEventDispatcherGlib::processEvents (this=0x7fe3e40008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fe4b9b295ef in QEventLoop::processEvents (this=this@entry=0x7fe3f2bfcdb0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fe4b9b298e5 in QEventLoop::exec (this=this@entry=0x7fe3f2bfcdb0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fe4b9a2888f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x4544b50) at thread/qthread_unix.cpp:338
#10 0x00007fe4b780ef6e in start_thread (arg=0x7fe3f2bfd700) at pthread_create.c:311
#11 0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fe3f1fbf700 (LWP 13837)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007fe4b7811177 in _L_lock_1035 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007fe4b7811009 in __GI___pthread_mutex_lock (mutex=0x7fe4aa561ec0) at pthread_mutex_lock.c:85
#3  0x00007fe4aa2f342c in ?? () from /usr/lib/nvidia-331/libGL.so.1
#4  0x00007fe4aa2f4500 in ?? () from /usr/lib/nvidia-331/libGL.so.1
#5  0x00007fe4aa2f52ab in ?? () from /usr/lib/nvidia-331/libGL.so.1
#6  0x00007fe4a9549e80 in ?? () from /usr/lib/nvidia-331/tls/libnvidia-tls.so.331.38
#7  0x00007fe4b2afc670 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fe4b2abd1cc in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007fe4b2abd63b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007fe4b2abd7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007fe4b9b57a76 in QEventDispatcherGlib::processEvents (this=0x7fe3980008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007fe4b9b295ef in QEventLoop::processEvents (this=this@entry=0x7fe3f1fbed70, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007fe4b9b298e5 in QEventLoop::exec (this=this@entry=0x7fe3f1fbed70, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007fe4b9a2888f in QThread::exec (this=this@entry=0x49e1320) at thread/qthread.cpp:542
#15 0x00007fe4b9b0ad13 in QInotifyFileSystemWatcherEngine::run (this=0x49e1320) at io/qfilesystemwatcher_inotify.cpp:265
#16 0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x49e1320) at thread/qthread_unix.cpp:338
#17 0x00007fe4b780ef6e in start_thread (arg=0x7fe3f1fbf700) at pthread_create.c:311
#18 0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fe3f0fbd700 (LWP 14251)):
[KCrash Handler]
#6  0x00007fe4b597cf91 in KDevelop::AbstractType::makeDynamic() () from /usr/lib/libkdevplatformlanguage.so.7
#7  0x00007fe4b597d081 in KDevelop::AbstractType::setModifiers(unsigned long long) () from /usr/lib/libkdevplatformlanguage.so.7
#8  0x00007fe489a99186 in TypeBuilder::createIntegralTypeForExpression (this=0x7fe3f0fbcad0, expression=<optimized out>) at ../../../../languages/cpp/cppduchain/typebuilder.cpp:469
#9  0x00007fe489a6a8fe in ContextBuilder::visitDeclarator (this=0x7fe3f0fbcad0, node=0x7fe3941f8978) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:937
#10 0x00007fe489a7d275 in DeclarationBuilder::visitDeclarator (this=0x7fe3f0fbcad0, node=0x7fe3941f8978) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:532
#11 0x00007fe489a6baf7 in ContextBuilder::visitInitDeclarator (this=this@entry=0x7fe3f0fbcad0, node=node@entry=0x7fe3941f8f50) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:912
#12 0x00007fe489a7911f in DeclarationBuilder::visitInitDeclarator (this=0x7fe3f0fbcad0, node=0x7fe3941f8f50) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:256
#13 0x00007fe489a9750c in TypeBuilder::visitSimpleDeclaration (this=this@entry=0x7fe3f0fbcad0, node=node@entry=0x7fe3941f8f90) at ../../../../languages/cpp/cppduchain/typebuilder.cpp:672
#14 0x00007fe489a7bac8 in DeclarationBuilder::visitSimpleDeclaration (this=0x7fe3f0fbcad0, node=0x7fe3941f8f90) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:422
#15 0x00007fe4897ca559 in visitNodes<StatementAST*> (nodes=<optimized out>, v=<optimized out>) at ../../../../languages/cpp/parser/visitor.h:139
#16 DefaultVisitor::visitCompoundStatement (this=this@entry=0x7fe3f0fbcb30, node=node@entry=0x7fe3941f8598) at ../../../../languages/cpp/parser/default_visitor.cpp:73
#17 0x00007fe489a6a7cc in ContextBuilder::visitCompoundStatement (this=0x7fe3f0fbcad0, node=0x7fe3941f8598) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:674
#18 0x00007fe489a6a6ef in ContextBuilder::visitFunctionDefinition (this=0x7fe3f0fbcad0, node=0x7fe3941fb348) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:592
#19 0x00007fe489a69314 in ContextBuilder::visitTemplateDeclaration (this=0x7fe3f0fbcad0, ast=0x7fe3941fb3a8) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:293
#20 0x00007fe4897cae39 in visitNodes<DeclarationAST*> (v=0x7fe3f0fbcb30, nodes=<optimized out>) at ../../../../languages/cpp/parser/visitor.h:139
#21 0x00007fe489a6cdc9 in KDevelop::AbstractContextBuilder<AST, NameAST>::supportBuild (this=0x7fe3f0fbcad0, node=0x7fe394d10060, context=<optimized out>) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#22 0x00007fe489a6c32a in ContextBuilder::buildContexts (this=0x7fe3f0fbcad0, file=..., node=0x7fe394d10060, includes=<optimized out>, updateContext=..., removeOldImports=removeOldImports@entry=false) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:422
#23 0x00007fe489a77c12 in DeclarationBuilder::buildDeclarations (this=this@entry=0x7fe3f0fbcad0, file=..., node=node@entry=0x7fe394d10060, includes=includes@entry=0x7fe3f0fbc830, updateContext=..., removeOldImports=removeOldImports@entry=false) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:96
#24 0x00007fe489f8b27a in CPPInternalParseJob::run (this=<optimized out>) at ../../../languages/cpp/cppparsejob.cpp:644
#25 0x00007fe4b0380cb2 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7fe3f0fbcd50, th=th@entry=0x3ddfe80, job=job@entry=0x47ba8d0) at ../../../threadweaver/Weaver/Job.cpp:106
#26 0x00007fe4b0380e6e in ThreadWeaver::Job::execute (this=0x47ba8d0, th=0x3ddfe80) at ../../../threadweaver/Weaver/Job.cpp:135
#27 0x00007fe4b038290b in ThreadWeaver::JobCollectionJobRunner::execute (this=0x1467010, t=0x3ddfe80) at ../../../threadweaver/Weaver/JobCollection.cpp:82
#28 0x00007fe4b03806bb in ThreadWeaver::Thread::run (this=0x3ddfe80) at ../../../threadweaver/Weaver/Thread.cpp:108
#29 0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x3ddfe80) at thread/qthread_unix.cpp:338
#30 0x00007fe4b780ef6e in start_thread (arg=0x7fe3f0fbd700) at pthread_create.c:311
#31 0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fe39fffd700 (LWP 14252)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4b9a2b406 in wait (time=18446744073709551615, this=0x15bf040) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x15bf1f8, mutex=0x14ec810, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fe4b037ee6c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x15bf1d0, th=0x7fe394002a20) at ../../../threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00007fe4b0381903 in ThreadWeaver::WorkingHardState::applyForWork (this=0x14ec870, th=0x7fe394002a20, previous=0x0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00007fe4b038061f in ThreadWeaver::Thread::run (this=0x7fe394002a20) at ../../../threadweaver/Weaver/Thread.cpp:98
#6  0x00007fe4b9a2af2f in QThreadPrivate::start (arg=0x7fe394002a20) at thread/qthread_unix.cpp:338
#7  0x00007fe4b780ef6e in start_thread (arg=0x7fe39fffd700) at pthread_create.c:311
#8  0x00007fe4b872c9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fe4bbcec7c0 (LWP 13622)):
#0  0x00007fe4b871e6bd in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe4a9549e41 in ?? () from /usr/lib/nvidia-331/tls/libnvidia-tls.so.331.38
#2  0x00007fe4b2afc670 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4b2abd1cc in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe4b2abd63b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe4b2abd7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fe4b9b57a55 in QEventDispatcherGlib::processEvents (this=0x1044170, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007fe4b8f699d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#8  0x00007fe4b9b295ef in QEventLoop::processEvents (this=this@entry=0x7fff2244af10, flags=...) at kernel/qeventloop.cpp:149
#9  0x00007fe4b9b298e5 in QEventLoop::exec (this=this@entry=0x7fff2244af10, flags=...) at kernel/qeventloop.cpp:204
#10 0x00007fe4b9b2ee5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#11 0x00007fe4b8ec634c in QApplication::exec () at kernel/qapplication.cpp:3828
#12 0x000000000040e6f9 in main (argc=<optimized out>, argv=<optimized out>) at ../../app/main.cpp:522
Comment 1 mastergeek.elliott 2014-02-16 06:23:00 UTC
Created attachment 85172 [details]
The file that consistently causes the crash when opened

It heavily uses C++11, and although it's relatively small, it's very complicated.
Comment 2 mastergeek.elliott 2014-02-16 06:28:09 UTC
Created attachment 85173 [details]
A file that is incredibly similar to the problem file, but doesn't cause a crash

They're so similar because I basically copied one of these files from the other and then modified it. They both use the same set of features from C++11 and are similar in design, so it confuses me why one causes a crash and not the other.
Comment 3 Jekyll Wu 2014-02-16 10:45:06 UTC

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