[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 265120] New: Crash when editing include statements
From: Rick Wagner <rjwgnr27 () gmail ! com>
Date: 2011-02-01 18:58:02
Message-ID: bug-265120-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=265120
Summary: Crash when editing include statements
Product: kdevelop
Version: 4.2.60
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: code completion
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: rjwgnr27@gmail.com
Version: 4.2.60 (using KDE 4.5.5)
OS: Linux
I am updating include statements from old i.e. "<qstring.h>" to preferred
"<QtCore/QString>". Kdevelop randomly crashes on changing the includes.
Sometimes I can change one or two, then will crash while changing a third, or
will crash immediately on in editing. Not always the same line, but always when
the file name is partially complete.
Reproducible: Didn't try
Steps to Reproduce:
1. Open existing file.
2. Select the include file between the angle brackets.
3. Start typing over the file name.
4. Sometimes will get a crash. May be able to change one or two before the
crash.
Actual Results:
Crash. No DrKonqi, but GBD reports SIGSEV
Expected Results:
Able to change includes with no crash.
OS: Linux (x86_64) release 2.6.35.10-74.fc14.x86_64
Compiler: gcc
Built from git sources, pulled as of Feb 01, 2011
GDB backtrace attached. Could not reproduce under valgrind.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd9240700 (LWP 24950)]
0x0000003b9f277e97 in malloc_consolidate () from /lib64/libc.so.6
(gdb) bt
#0 0x0000003b9f277e97 in malloc_consolidate () from /lib64/libc.so.6
#1 0x0000003b9f2798d8 in _int_malloc () from /lib64/libc.so.6
#2 0x0000003b9f27c922 in malloc () from /lib64/libc.so.6
#3 0x0000003b9f24097b in realpath@@GLIBC_2.3 () from /lib64/libc.so.6
#4 0x00000032f4b2ef75 in realpath (path=...) at /usr/include/bits/stdlib.h:49
#5 QFSFileEnginePrivate::canonicalized (path=...) at io/qfsfileengine.cpp:172
#6 0x00000032f4b35e85 in QFSFileEngine::fileName (this=<value optimized out>,
file=
QAbstractFileEngine::CanonicalName) at io/qfsfileengine_unix.cpp:1073
#7 0x00000032f4af307b in QFileInfoPrivate::getFileName (this=0x7fffc80a5240,
name=
QAbstractFileEngine::CanonicalName) at io/qfileinfo.cpp:54
#8 0x00000032f4af3fc7 in QFileInfo::canonicalFilePath (this=<value optimized
out>) at io/qfileinfo.cpp:478
#9 0x0000003149ab407d in KConfigIniBackend::setFilePath (this=0x7fffc81b6db0,
file=<value optimized out>)
at /usr/src/debug/kdelibs-4.5.5/kdecore/config/kconfigini.cpp:541
#10 0x0000003149ab3a80 in KConfigBackend::create (componentData=<value
optimized out>, file=...,
sys=<value optimized out>) at
/usr/src/debug/kdelibs-4.5.5/kdecore/config/kconfigbackend.cpp:89
#11 0x0000003149aa187f in KConfigPrivate::parseGlobalFiles (this=<value
optimized out>)
at /usr/src/debug/kdelibs-4.5.5/kdecore/config/kconfig.cpp:490
#12 0x0000003149aa20c4 in KConfig::reparseConfiguration (this=<value optimized
out>)
at /usr/src/debug/kdelibs-4.5.5/kdecore/config/kconfig.cpp:458
#13 0x00007ffff7b1c201 in KDevelop::Project::projectConfiguration
(this=0x230e030)
at /srv/devel/src/kde4/src/kdevplatform/shell/project.cpp:457
#14 0x00007fffe9b2c66b in CMake::currentBuildDir (project=<value optimized
out>)
at
/srv/devel/src/kde4/src/kdevelop/projectmanagers/cmake/cmakeutils.cpp:123
#15 0x00007fffe96abdca in fetchBuildDir (project=<value optimized out>,
dirs=...)
at
/srv/devel/src/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:102
#16 (anonymous namespace)::resolveSystemDirs (project=<value optimized out>,
dirs=...)
at
/srv/devel/src/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:123
#17 0x00007fffe96ac306 in CMakeManager::includeDirectories (this=<value
optimized out>, item=0x23413c0)
at
/srv/devel/src/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:610
#18 0x00007fffcd24ea1c in IncludePathComputer::computeForeground
(this=0x7fffd923e550)
at
/srv/devel/src/kde4/src/kdevelop/languages/cpp/includepathcomputer.cpp:91
#19 0x00007fffcd25cdef in CppUtils::findIncludePaths (source=<value optimized
out>,
problems=<value optimized out>) at
/srv/devel/src/kde4/src/kdevelop/languages/cpp/cpputils.cpp:311
#20 0x00007fffcd25f3ce in CppUtils::allFilesInIncludePath (source=...,
local=false, addPath=...,
addIncludePaths=<value optimized out>, onlyAddedIncludePaths=false,
prependAddedPathToName=false,
allowSourceFiles=false) at
/srv/devel/src/kde4/src/kdevelop/languages/cpp/cpputils.cpp:327
#21 0x00007fffcd27ed7b in Cpp::CodeCompletionContext::doIncludeCompletion
(this=0x7fffc8002b80)
at
/srv/devel/src/kde4/src/kdevelop/languages/cpp/codecompletion/context.cpp:968
#22 0x00007fffcd289c29 in Cpp::CodeCompletionContext::CodeCompletionContext
(this=0x7fffc8002b80,
context=<value optimized out>, text=<value optimized out>,
followingText=...,
position=<value optimized out>, depth=0, knownArgumentExpressions=...,
line=-1)
at
/srv/devel/src/kde4/src/kdevelop/languages/cpp/codecompletion/context.cpp:262
#23 0x00007fffcd275721 in Cpp::CodeCompletionWorker::createCompletionContext
(this=<value optimized out>,
context=<value optimized out>, contextText=..., followingText=...,
position=<value optimized out>)
at
/srv/devel/src/kde4/src/kdevelop/languages/cpp/codecompletion/worker.cpp:57
#24 0x00007ffff6ab9b5d in KDevelop::CodeCompletionWorker::computeCompletions
(this=0x2667430, context=...,
position=..., followingText=..., contextRange=<value optimized out>,
contextText=...)
at
/srv/devel/src/kde4/src/kdevplatform/language/codecompletion/codecompletionworker.cpp:152
#25 0x00007fffcd2754cf in Cpp::CodeCompletionWorker::computeCompletions
(this=0x2667430, context=...,
position=..., followingText=..., _contextRange=<value optimized out>,
_contextText=<value optimized out>)
at
/srv/devel/src/kde4/src/kdevelop/languages/cpp/codecompletion/worker.cpp:93
#26 0x00007ffff6ab95e5 in KDevelop::CodeCompletionWorker::computeCompletions
(this=0x2667430, context=...,
position=..., view=<value optimized out>)
at
/srv/devel/src/kde4/src/kdevplatform/language/codecompletion/codecompletionworker.cpp:128
#27 0x00007ffff6ab9a74 in KDevelop::CodeCompletionWorker::qt_metacall
(this=0x2667430,
_c=<value optimized out>, _id=<value optimized out>, _a=0x3c00780)
at
/srv/devel/src/kde4/build/kdevplatform/language/codecompletionworker.moc:84
#28 0x00000032f4b6fb4a in QObject::event (this=0x2667430, e=<value optimized
out>)
at kernel/qobject.cpp:1211
---Type <return> to continue, or q <return> to quit---
#29 0x00000030793b78c4 in QApplicationPrivate::notify_helper (this=0x63af50,
receiver=0x2667430, e=
0x4cf0720) at kernel/qapplication.cpp:4445
#30 0x00000030793bc3da in QApplication::notify (this=<value optimized out>,
receiver=0x2667430, e=
0x4cf0720) at kernel/qapplication.cpp:4324
#31 0x000000307a620596 in KApplication::notify (this=0x7fffffffbed0,
receiver=0x2667430, event=0x4cf0720)
at /usr/src/debug/kdelibs-4.5.5/kdeui/kernel/kapplication.cpp:310
#32 0x0000000000404d09 in KDevelopApplication::notify (this=0x7fffffffbed0,
receiver=0x2667430, event=
0x4cf0720) at /srv/devel/src/kde4/src/kdevelop/app/main.cpp:90
#33 0x00000032f4b5b7ac in QCoreApplication::notifyInternal
(this=0x7fffffffbed0, receiver=0x2667430, event=
0x4cf0720) at kernel/qcoreapplication.cpp:732
#34 0x00000032f4b5ef95 in sendEvent (receiver=0x0, event_type=0,
data=0x2668370)
at kernel/qcoreapplication.h:215
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x2668370)
at kernel/qcoreapplication.cpp:1373
#36 0x00000032f4b86723 in sendPostedEvents (s=0x7fffc8015b40) at
kernel/qcoreapplication.h:220
#37 postEventSourceDispatch (s=0x7fffc8015b40) at
kernel/qeventdispatcher_glib.cpp:277
#38 0x0000003ba1641e33 in g_main_dispatch (context=0x7fffc8196e70) at
gmain.c:2149
#39 g_main_context_dispatch (context=0x7fffc8196e70) at gmain.c:2702
#40 0x0000003ba1642610 in g_main_context_iterate (context=0x7fffc8196e70,
block=1, dispatch=1,
self=<value optimized out>) at gmain.c:2780
#41 0x0000003ba16428ad in g_main_context_iteration (context=0x7fffc8196e70,
may_block=1) at gmain.c:2843
#42 0x00000032f4b868bf in QEventDispatcherGlib::processEvents
(this=0x7fffc80008c0,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#43 0x00000032f4b5ab42 in QEventLoop::processEvents (this=<value optimized
out>, flags=...)
at kernel/qeventloop.cpp:149
#44 0x00000032f4b5ad8c in QEventLoop::exec (this=0x7fffd923fd40, flags=...) at
kernel/qeventloop.cpp:201
#45 0x00000032f4a6fed4 in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:490
#46 0x00000032f4a726ee in QThreadPrivate::start (arg=0x2659de0) at
thread/qthread_unix.cpp:285
#47 0x0000003b9fe06d5b in start_thread () from /lib64/libpthread.so.0
#48 0x0000003b9f2e4a7d in clone () from /lib64/libc.so.6
(gdb) t
[Current thread is 8 (Thread 0x7fffd9240700 (LWP 24950))]
(gdb) threads
Undefined command: "threads". Try "help".
(gdb) info threads
14 Thread 0x7fffc5ffb700 (LWP 24994) 0x0000003b9fe0b8c4 in
pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
13 Thread 0x7fffc67fc700 (LWP 24987) 0x0000003b9fe0b8c4 in
pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
12 Thread 0x7fffc6ffd700 (LWP 24986) 0x0000003b9fe0b8c4 in
pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
11 Thread 0x7fffc77fe700 (LWP 24985) 0x0000003b9fe0bc2e in
pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
10 Thread 0x7fffc7fff700 (LWP 24984) 0x0000003b9fe0b8c4 in
pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
9 Thread 0x7fffd9a41700 (LWP 24951) 0x0000003b9f2db083 in poll () from
/lib64/libc.so.6
* 8 Thread 0x7fffd9240700 (LWP 24950) 0x0000003b9f277e97 in malloc_consolidate
() from /lib64/libc.so.6
5 Thread 0x7fffdb78d700 (LWP 24941) 0x0000003b9fe0b8c4 in
pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
4 Thread 0x7fffe1f2e700 (LWP 24864) 0x0000003b9f2dceb3 in select () from
/lib64/libc.so.6
3 Thread 0x7fffe272f700 (LWP 24863) 0x0000003b9fe0bc2e in
pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
2 Thread 0x7fffeab7c700 (LWP 24860) 0x0000003b9fe0bc2e in
pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
1 Thread 0x7ffff66e2840 (LWP 24854) 0x0000003b9f27c93a in malloc () from
/lib64/libc.so.6
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic