Bug 325278 - Crashes with 'auto' keyword in C++11
Summary: Crashes with 'auto' keyword in C++11
Status: RESOLVED DUPLICATE of bug 318972
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.5.1
Platform: Debian unstable Linux
: NOR crash
Target Milestone: 4.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-25 05:33 UTC by Wei-Cheng Pan
Modified: 2014-05-09 20:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
reproduces with this project (7.41 KB, application/x-xz)
2013-10-03 02:47 UTC, Wei-Cheng Pan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wei-Cheng Pan 2013-09-25 05:33:51 UTC
Some 'auto' usage will crashes Kdevelop immediately.

e.g.:

auto c = std::cin.get();

Reproducible: Always

Steps to Reproduce:
1. Create a new project
2. Add code:
auto c = std::cin.get();
Actual Results:  
Kdevelop crashes.

Expected Results:  
Kdevelop should not crash, the type of c should be int.
Comment 1 Yu-Shin Huang 2013-09-25 05:50:42 UTC
I can re-produce it again by above steps, also using kdevelop version 4.5.1 but in KDE 4.11.1 (Arch Linux)
Comment 2 Kevin Funk 2013-10-02 22:35:50 UTC
Cannot reproduce. If *you* can still reproduce, please attach a valid backtrace.

See http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 3 AceLan Kao 2013-10-03 01:59:43 UTC
% sudo apt-get install kdelibs5-dbg kdevelop-dbg
% gdb kdevelop
GNU gdb (GDB) 7.6-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/kdevelop...Reading symbols from /usr/lib/debug/usr/bin/kdevelop...done.
done.
gdb$ run
Starting program: /usr/bin/kdevelop 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
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/ubuntu/.kde/share/apps/kdevelop/sessions/{5baa0806-b8f0-4d12-933f-7cb39a50f251}/lock
WARNING: deleting stale lockfile /home/ubuntu/.cache/kdevduchain/{5baa0806-b8f0-4d12-933f-7cb39a50f251}/0/lock
kdevelop(21296)/kdevplatform (language) KDevelop::ItemRepositoryRegistry::open: version-hint not found, seems to be an old version 
kdevelop(21296)/kdevplatform (language) KDevelop::ItemRepositoryRegistry::open: "The data-repository at /home/ubuntu/.cache/kdevduchain/{5baa0806-b8f0-4d12-933f-7cb39a50f251}/0 has to be cleared." 
[New Thread 0x7fffd9d15700 (LWP 21355)]
[New Thread 0x7fffd8842700 (LWP 21356)]
[New Thread 0x7fffc65a7700 (LWP 21358)]
[New Thread 0x7fffc514d700 (LWP 21359)]
[New Thread 0x7fffc494c700 (LWP 21360)]
[New Thread 0x7fffb7fff700 (LWP 21365)]
[New Thread 0x7fff362bf700 (LWP 21366)]
qrc:/main.qml:23:1: QML Loader: 屬æ§ "source" åµ測å°çµÂÃ¥ÂÂè¿´åÂÂ
qrc:/main.qml:23:1: QML Loader: 屬æ§ "source" åµ測å°çµÂÃ¥ÂÂè¿´åÂÂ
[New Thread 0x7fff2fdf2700 (LWP 21408)]
[New Thread 0x7fff2f5f1700 (LWP 21409)]
[Thread 0x7fff2fdf2700 (LWP 21408) exited]
[Thread 0x7fff2f5f1700 (LWP 21409) exited]
"/org/freedesktop/UDisks2/drives/TOSHIBA_MK3261GSY_Z0AJT0M2T" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/TOSHIBA_MK3261GSY_Z0AJT0M2T" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/TOSHIBA_MK3261GSY_Z0AJT0M2T" : property "Device" does not exist 
kdevelop(21296)/kdevplatform (shell) KDevelop::SessionControllerPrivate::performRecovery: Starting recovery from  "/home/ubuntu/.kde/share/apps/kdevelop/sessions/{5baa0806-b8f0-4d12-933f-7cb39a50f251}/recovery/current" 
bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu 
bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu 
[New Thread 0x7fff2f5f1700 (LWP 21423)]
[New Thread 0x7fff2fdf2700 (LWP 21424)]
[New Thread 0x7fff2e793700 (LWP 21425)]
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1600194
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
[New Thread 0x7fff2d915700 (LWP 21557)]
QFileSystemWatcher: failed to add paths: /home/ubuntu/workspace/kde/basket/build/CMakeCache.txt
[New Thread 0x7fff2d114700 (LWP 21558)]
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
[New Thread 0x7fff2c913700 (LWP 21702)]
QFileSystemWatcher: failed to add paths: /CMakeCache.txt
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x16001bc
[New Thread 0x7ffedfffd700 (LWP 21776)]
[New Thread 0x7ffedf7fc700 (LWP 21777)]
kdevelop(21296)/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(21296)/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?? 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffedfffd700 (LWP 21776)]
-----------------------------------------------------------------------------------------------------------------------[regs]
  RAX: 0x0000000000000000  RBX: 0x0000000000000000  RBP: 0x0000000000000000  RSP: 0x00007FFEDFFFC060  o d I t s z a p c 
  RDI: 0x0000000000000000  RSI: 0x0000000000000000  RDX: 0x00007FFED4DF1990  RCX: 0x00007FFEDFFFC0C0  RIP: 0x00007FFFF1C32F91                                               
  R8 : 0x00007FFED567B2E0  R9 : 0x00007FFFF1F07480  R10: 0x0000000000000000  R11: 0x00000000000000E0  R12: 0x00007FFEDFFFC0F0                                               
  R13: 0x00007FFEDFFFC0E0  R14: 0x00007FFED4E210B0  R15: 0x00007FFEDFFFC0B0                                                                                                 
  CS: 0033  DS: 0000  ES: 0000  FS: 0000  GS: 0000  SS: 002B
-----------------------------------------------------------------------------------------------------------------------[code]
=> 0x7ffff1c32f91 <_ZN8KDevelop12AbstractType11makeDynamicEv+1>:        mov    rax,QWORD PTR [rdi+0x10]
   0x7ffff1c32f95 <_ZN8KDevelop12AbstractType11makeDynamicEv+5>:        mov    rbx,rdi
   0x7ffff1c32f98 <_ZN8KDevelop12AbstractType11makeDynamicEv+8>:        test   BYTE PTR [rax+0x18],0x1
   0x7ffff1c32f9c <_ZN8KDevelop12AbstractType11makeDynamicEv+12>:       je     0x7ffff1c32fa0 <_ZN8KDevelop12AbstractType11makeDynamicEv+16>
   0x7ffff1c32f9e <_ZN8KDevelop12AbstractType11makeDynamicEv+14>:       pop    rbx
   0x7ffff1c32f9f <_ZN8KDevelop12AbstractType11makeDynamicEv+15>:       ret    
   0x7ffff1c32fa0 <_ZN8KDevelop12AbstractType11makeDynamicEv+16>:       mov    rax,QWORD PTR [rdi]
   0x7ffff1c32fa3 <_ZN8KDevelop12AbstractType11makeDynamicEv+19>:       call   QWORD PTR [rax+0x20]
-----------------------------------------------------------------------------------------------------------------------------
0x00007ffff1c32f91 in KDevelop::AbstractType::makeDynamic() () from /usr/lib/libkdevplatformlanguage.so.7
gdb$ bt
#0  0x00007ffff1c32f91 in KDevelop::AbstractType::makeDynamic() () from /usr/lib/libkdevplatformlanguage.so.7
#1  0x00007ffff1c33081 in KDevelop::AbstractType::setModifiers(unsigned long long) () from /usr/lib/libkdevplatformlanguage.so.7
#2  0x00007fffc5431186 in TypeBuilder::createIntegralTypeForExpression (this=0x7ffedfffcad0, expression=<optimized out>) at ../../../../languages/cpp/cppduchain/typebuilder.cpp:469
#3  0x00007fffc54028fe in ContextBuilder::visitDeclarator (this=0x7ffedfffcad0, node=0x7ffed6474838) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:937
#4  0x00007fffc5415275 in DeclarationBuilder::visitDeclarator (this=0x7ffedfffcad0, node=0x7ffed6474838) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:532
#5  0x00007fffc5403af7 in ContextBuilder::visitInitDeclarator (this=this@entry=0x7ffedfffcad0, node=node@entry=0x7ffed6474c08) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:912
#6  0x00007fffc541111f in DeclarationBuilder::visitInitDeclarator (this=0x7ffedfffcad0, node=0x7ffed6474c08) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:256
#7  0x00007fffc542f50c in TypeBuilder::visitSimpleDeclaration (this=this@entry=0x7ffedfffcad0, node=node@entry=0x7ffed6474c48) at ../../../../languages/cpp/cppduchain/typebuilder.cpp:672
#8  0x00007fffc5413ac8 in DeclarationBuilder::visitSimpleDeclaration (this=0x7ffedfffcad0, node=0x7ffed6474c48) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:422
#9  0x00007fffc5162559 in visitNodes<StatementAST*> (nodes=<optimized out>, v=<optimized out>) at ../../../../languages/cpp/parser/visitor.h:139
#10 DefaultVisitor::visitCompoundStatement (this=this@entry=0x7ffedfffcb30, node=node@entry=0x7ffed64743d0) at ../../../../languages/cpp/parser/default_visitor.cpp:73
#11 0x00007fffc54027cc in ContextBuilder::visitCompoundStatement (this=0x7ffedfffcad0, node=0x7ffed64743d0) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:674
#12 0x00007fffc54026ef in ContextBuilder::visitFunctionDefinition (this=0x7ffedfffcad0, node=0x7ffed6474d80) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:592
#13 0x00007fffc5162e39 in visitNodes<DeclarationAST*> (v=0x7ffedfffcb30, nodes=<optimized out>) at ../../../../languages/cpp/parser/visitor.h:139
#14 0x00007fffc5404dc9 in KDevelop::AbstractContextBuilder<AST, NameAST>::supportBuild (this=0x7ffedfffcad0, node=0x7ffed6473c50, context=<optimized out>) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#15 0x00007fffc540432a in ContextBuilder::buildContexts (this=0x7ffedfffcad0, file=..., node=0x7ffed6473c50, includes=<optimized out>, updateContext=..., removeOldImports=removeOldImports@entry=0x0) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:422
#16 0x00007fffc540fc12 in DeclarationBuilder::buildDeclarations (this=this@entry=0x7ffedfffcad0, file=..., node=node@entry=0x7ffed6473c50, includes=includes@entry=0x7ffedfffc830, updateContext=..., removeOldImports=removeOldImports@entry=0x0) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:96
#17 0x00007fffc592327a in CPPInternalParseJob::run (this=<optimized out>) at ../../../languages/cpp/cppparsejob.cpp:644
#18 0x00007fffec633cb2 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7ffedfffcd50, th=th@entry=0x3e97520, job=job@entry=0x453bf00) at ../../../threadweaver/Weaver/Job.cpp:106
#19 0x00007fffec633e6e in ThreadWeaver::Job::execute (this=0x453bf00, th=0x3e97520) at ../../../threadweaver/Weaver/Job.cpp:135
#20 0x00007fffec63590b in ThreadWeaver::JobCollectionJobRunner::execute (this=0x3c93d30, t=0x3e97520) at ../../../threadweaver/Weaver/JobCollection.cpp:82
#21 0x00007fffec6336bb in ThreadWeaver::Thread::run (this=0x3e97520) at ../../../threadweaver/Weaver/Thread.cpp:108
#22 0x00007ffff5ce0f2f in QThreadPrivate::start (arg=0x3e97520) at thread/qthread_unix.cpp:338
#23 0x00007ffff3ac5f6e in start_thread (arg=0x7ffedfffd700) at pthread_create.c:311
#24 0x00007ffff49e2ecd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Comment 4 AceLan Kao 2013-10-03 02:06:27 UTC
I use kubuntu saucy(13.10)

% kdevelop --version
Qt: 4.8.4
KDE Development Platform: 4.11.2
KDevelop: 4.5.1
Comment 5 Wei-Cheng Pan 2013-10-03 02:40:47 UTC
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7f899a665780 (LWP 4516))]

Thread 11 (Thread 0x7f897206d700 (LWP 4521)):
#0  0x00007f8997063843 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f8998436001 in QProcessManager::run (this=0x7f89987bf540 <processManager()::processManager>) at io/qprocess_unix.cpp:247
#2  0x00007f8998356fef in QThreadPrivate::start (arg=0x7f89987bf540 <processManager()::processManager>) at thread/qthread_unix.cpp:349
#3  0x00007f899615de0e in start_thread (arg=0x7f897206d700) at pthread_create.c:311
#4  0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 10 (Thread 0x7f896b858700 (LWP 4523)):
#0  0x00007f899705f24d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f89911d8194 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f89911d829c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f89984864d6 in QEventDispatcherGlib::processEvents (this=0x7f89640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f8998457f9f in QEventLoop::processEvents (this=this@entry=0x7f896b857df0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8998458295 in QEventLoop::exec (this=this@entry=0x7f896b857df0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f899835491f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#7  0x00007f8998356fef in QThreadPrivate::start (arg=0x3261db0) at thread/qthread_unix.cpp:349
#8  0x00007f899615de0e in start_thread (arg=0x7f896b858700) at pthread_create.c:311
#9  0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 9 (Thread 0x7f896b057700 (LWP 4524)):
#0  0x00007f899705f24d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f89911d8194 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f89911d829c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f89984864d6 in QEventDispatcherGlib::processEvents (this=0x7f895c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f8998457f9f in QEventLoop::processEvents (this=this@entry=0x7f896b056df0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8998458295 in QEventLoop::exec (this=this@entry=0x7f896b056df0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f899835491f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#7  0x00007f8998356fef in QThreadPrivate::start (arg=0x2f9dda0) at thread/qthread_unix.cpp:349
#8  0x00007f899615de0e in start_thread (arg=0x7f896b057700) at pthread_create.c:311
#9  0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 8 (Thread 0x7f896a856700 (LWP 4529)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f8993371a4b in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f8993371a89 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f899615de0e in start_thread (arg=0x7f896a856700) at pthread_create.c:311
#4  0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7f8968905700 (LWP 4530)):
#0  0x00007f899705f24d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f89911d8194 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f89911d829c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f89984864d6 in QEventDispatcherGlib::processEvents (this=0x7f89600008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f8998457f9f in QEventLoop::processEvents (this=this@entry=0x7f8968904db0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8998458295 in QEventLoop::exec (this=this@entry=0x7f8968904db0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f899835491f in QThread::exec (this=this@entry=0x3f59a70) at thread/qthread.cpp:537
#7  0x00007f89984396c3 in QInotifyFileSystemWatcherEngine::run (this=0x3f59a70) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f8998356fef in QThreadPrivate::start (arg=0x3f59a70) at thread/qthread_unix.cpp:349
#9  0x00007f899615de0e in start_thread (arg=0x7f8968905700) at pthread_create.c:311
#10 0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7f88d9b4f700 (LWP 4635)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f898e00aae2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f898e00ab19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f899615de0e in start_thread (arg=0x7f88d9b4f700) at pthread_create.c:311
#4  0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7f88da350700 (LWP 4641)):
#0  0x00007f899705f24d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f89911d8194 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f89911d829c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f89984864d6 in QEventDispatcherGlib::processEvents (this=0x7f88cc0015c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f8998457f9f in QEventLoop::processEvents (this=this@entry=0x7f88da34fdf0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8998458295 in QEventLoop::exec (this=this@entry=0x7f88da34fdf0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f899835491f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#7  0x00007f8998356fef in QThreadPrivate::start (arg=0x42a8230) at thread/qthread_unix.cpp:349
#8  0x00007f899615de0e in start_thread (arg=0x7f88da350700) at pthread_create.c:311
#9  0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7f88d3fff700 (LWP 4746)):
#0  0x00007f899705f24d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f89911d8194 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f89911d829c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f89984864b5 in QEventDispatcherGlib::processEvents (this=0x7f88d4002a00, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f8998457f9f in QEventLoop::processEvents (this=this@entry=0x7f88d3ffedb0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8998458295 in QEventLoop::exec (this=this@entry=0x7f88d3ffedb0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f899835491f in QThread::exec (this=this@entry=0x496a0e0) at thread/qthread.cpp:537
#7  0x00007f89984396c3 in QInotifyFileSystemWatcherEngine::run (this=0x496a0e0) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f8998356fef in QThreadPrivate::start (arg=0x496a0e0) at thread/qthread_unix.cpp:349
#9  0x00007f899615de0e in start_thread (arg=0x7f88d3fff700) at pthread_create.c:311
#10 0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f88d2ffd700 (LWP 4841)):
[KCrash Handler]
#6  0x00007f89940af4a1 in KDevelop::AbstractType::makeDynamic() () from /usr/lib/libkdevplatformlanguage.so.7
#7  0x00007f89940af591 in KDevelop::AbstractType::setModifiers(unsigned long long) () from /usr/lib/libkdevplatformlanguage.so.7
#8  0x00007f896bb430e6 in TypeBuilder::createIntegralTypeForExpression (this=0x7f88d2ffcac0, expression=<optimized out>) at ../../../../languages/cpp/cppduchain/typebuilder.cpp:469
#9  0x00007f896bb1485e in ContextBuilder::visitDeclarator (this=0x7f88d2ffcac0, node=0x7f888036a428) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:937
#10 0x00007f896bb271d5 in DeclarationBuilder::visitDeclarator (this=0x7f88d2ffcac0, node=0x7f888036a428) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:532
#11 0x00007f896bb15a57 in ContextBuilder::visitInitDeclarator (this=this@entry=0x7f88d2ffcac0, node=node@entry=0x7f888036a7f8) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:912
#12 0x00007f896bb2307f in DeclarationBuilder::visitInitDeclarator (this=0x7f88d2ffcac0, node=0x7f888036a7f8) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:256
#13 0x00007f896bb4146c in TypeBuilder::visitSimpleDeclaration (this=this@entry=0x7f88d2ffcac0, node=node@entry=0x7f888036a838) at ../../../../languages/cpp/cppduchain/typebuilder.cpp:672
#14 0x00007f896bb25a28 in DeclarationBuilder::visitSimpleDeclaration (this=0x7f88d2ffcac0, node=0x7f888036a838) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:422
#15 0x00007f896b86f699 in visitNodes<StatementAST*> (nodes=<optimized out>, v=<optimized out>) at ../../../../languages/cpp/parser/visitor.h:139
#16 DefaultVisitor::visitCompoundStatement (this=this@entry=0x7f88d2ffcb20, node=node@entry=0x7f888036a3b0) at ../../../../languages/cpp/parser/default_visitor.cpp:73
#17 0x00007f896bb1472c in ContextBuilder::visitCompoundStatement (this=0x7f88d2ffcac0, node=0x7f888036a3b0) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:674
#18 0x00007f896bb1464f in ContextBuilder::visitFunctionDefinition (this=0x7f88d2ffcac0, node=0x7f888036ad60) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:592
#19 0x00007f896b86ff79 in visitNodes<DeclarationAST*> (v=0x7f88d2ffcb20, nodes=<optimized out>) at ../../../../languages/cpp/parser/visitor.h:139
#20 0x00007f896bb16d29 in KDevelop::AbstractContextBuilder<AST, NameAST>::supportBuild (this=0x7f88d2ffcac0, node=0x7f8880369c30, context=<optimized out>) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#21 0x00007f896bb1628a in ContextBuilder::buildContexts (this=0x7f88d2ffcac0, file=..., node=0x7f8880369c30, includes=<optimized out>, updateContext=..., removeOldImports=removeOldImports@entry=false) at ../../../../languages/cpp/cppduchain/contextbuilder.cpp:422
#22 0x00007f896bb21b72 in DeclarationBuilder::buildDeclarations (this=this@entry=0x7f88d2ffcac0, file=..., node=node@entry=0x7f8880369c30, includes=includes@entry=0x7f88d2ffc820, updateContext=..., removeOldImports=removeOldImports@entry=false) at ../../../../languages/cpp/cppduchain/declarationbuilder.cpp:96
#23 0x00007f89701943ea in CPPInternalParseJob::run (this=<optimized out>) at ../../../languages/cpp/cppparsejob.cpp:644
#24 0x00007f898eca3602 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f88d2ffcd40, th=th@entry=0x40b0990, job=job@entry=0x49d5cb0) at ../../../threadweaver/Weaver/Job.cpp:106
#25 0x00007f898eca37be in ThreadWeaver::Job::execute (this=0x49d5cb0, th=0x40b0990) at ../../../threadweaver/Weaver/Job.cpp:135
#26 0x00007f898eca525b in ThreadWeaver::JobCollectionJobRunner::execute (this=0x412c3c0, t=0x40b0990) at ../../../threadweaver/Weaver/JobCollection.cpp:82
#27 0x00007f898eca2e37 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f88d2ffcdf0, parent=0x1594180, th=th@entry=0x40b0990) at ../../../threadweaver/Weaver/Thread.cpp:95
#28 0x00007f898eca2f30 in ThreadWeaver::Thread::run (this=0x40b0990) at ../../../threadweaver/Weaver/Thread.cpp:142
#29 0x00007f8998356fef in QThreadPrivate::start (arg=0x40b0990) at thread/qthread_unix.cpp:349
#30 0x00007f899615de0e in start_thread (arg=0x7f88d2ffd700) at pthread_create.c:311
#31 0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f88d27fc700 (LWP 4842)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f89983574d6 in wait (time=18446744073709551615, this=0x1596710) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x15941a8, mutex=0x15942e0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f898eca165c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1594180, th=0x7f8880002e50) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f898eca425b in ThreadWeaver::WorkingHardState::applyForWork (this=0x15960f0, th=0x7f8880002e50) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f898eca2e89 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f88d27fbdf0, parent=0x1594180, th=th@entry=0x7f8880002e50) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f898eca2f30 in ThreadWeaver::Thread::run (this=0x7f8880002e50) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f8998356fef in QThreadPrivate::start (arg=0x7f8880002e50) at thread/qthread_unix.cpp:349
#8  0x00007f899615de0e in start_thread (arg=0x7f88d27fc700) at pthread_create.c:311
#9  0x00007f899706a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f899a665780 (LWP 4516)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f89983574d6 in wait (time=18446744073709551615, this=0x12255b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1225380, mutex=mutex@entry=0x1225358, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f8998356bbe in QThread::wait (this=this@entry=0x7f89987bf540 <processManager()::processManager>, time=time@entry=18446744073709551615) at thread/qthread_unix.cpp:720
#4  0x00007f8998435b2d in QProcessManager::~QProcessManager (this=0x7f89987bf540 <processManager()::processManager>, __in_chrg=<optimized out>) at io/qprocess_unix.cpp:214
#5  0x00007f8996fbbaa1 in __run_exit_handlers (status=1, listp=0x7f89973285c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#6  0x00007f8996fbbb25 in __GI_exit (status=<optimized out>) at exit.c:99
#7  0x00007f8997860078 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:773
#8  0x00007f8998a008b0 in KApplication::xioErrhandler (this=0x7fff0f8fa950, dpy=0x1236ac0) at ../../kdeui/kernel/kapplication.cpp:419
#9  0x00007f8992259d7e in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#10 0x00007f899225776d in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#11 0x00007f899224985b in XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#12 0x00007f899789730c in x11EventSourceCheck (s=0x1225210) at kernel/qguieventdispatcher_glib.cpp:85
#13 0x00007f89911d7c11 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f89911d812b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f89911d829c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f89984864b5 in QEventDispatcherGlib::processEvents (this=0x11699d0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#17 0x00007f8997897896 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#18 0x00007f8998457f9f in QEventLoop::processEvents (this=this@entry=0x7fff0f8fa7c0, flags=...) at kernel/qeventloop.cpp:149
#19 0x00007f8998458295 in QEventLoop::exec (this=this@entry=0x7fff0f8fa7c0, flags=...) at kernel/qeventloop.cpp:204
#20 0x00007f899845d8db in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#21 0x00007f89977f7f1c in QApplication::exec () at kernel/qapplication.cpp:3828
#22 0x000000000040e6f9 in main (argc=<optimized out>, argv=<optimized out>) at ../../app/main.cpp:522
Comment 6 Wei-Cheng Pan 2013-10-03 02:42:19 UTC
My machine is Debian Sid, amd64

$ kdevelop --version
Qt: 4.8.6
KDE Development Platform: 4.10.5
KDevelop: 4.5.1
Comment 7 Wei-Cheng Pan 2013-10-03 02:47:18 UTC
Created attachment 82631 [details]
reproduces with this project
Comment 8 Christoph Feck 2014-05-09 20:05:03 UTC

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