cmake duchain crash
Manuel Breugelmans
mbr.nxi at gmail.com
Thu Jul 31 00:50:59 UTC 2008
Hi,
Kdevelop crashes with an assert when editing CMakeLists.
Manuel
---
kdevelop(9094) KDevDocumentView::contentChanged:
kdevelop(9094)/kdevplatform (language)
KDevelop::BackgroundParserPrivate::parseDocumentsInternal: No job created for
url KUrl("file:///home/nix/KdeDev/kdevplatform/shell/tests/CMakeLists.txt")
kdevelop(9094) KDevDocumentView::contentChanged:
kdevelop(9094)/kdevplatform (language)
KDevelop::BackgroundParserPrivate::parseDocumentsInternal: No job created for
url KUrl("file:///home/nix/KdeDev/kdevplatform/shell/tests/CMakeLists.txt")
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5eb28e0 (LWP 9094)]
0xb631ff33 in KDevelop::TopDUContext::indexForUsedDeclaration (this=0x0,
declaration=0xd4babc0,
create=false) at
/home/nix/KdeDev/kdevplatform/language/duchain/topducontext.cpp:1200
1200 ENSURE_CAN_READ
(gdb) thread apply all bt full
Thread 4 (Thread 0xb146fb90 (LWP 9112)):
#0 0xffffe430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb72fec15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
No symbol table info available.
#2 0xb7377742 in QWaitCondition::wait (this=0x81edf10, mutex=0x81f49a8,
time=4294967295)
at thread/qwaitcondition_unix.cpp:88
returnValue = <value optimized out>
#3 0xb6fbc638 in
ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned
(this=0x81edef8,
th=0x83ed8d0) at
/usr/src/debug/kdelibs-4.0.99/threadweaver/Weaver/WeaverImpl.cpp:365
l = {{mtx = 0x81f49a9, val = 136268201}}
#4 0xb6fbf3bc in ThreadWeaver::WorkingHardState::waitForAvailableJob
(this=0x81f7630, th=0x83ed8d0)
at
/usr/src/debug/kdelibs-4.0.99/threadweaver/Weaver/WorkingHardState.cpp:80
No locals.
#5 0xb6fbb22b in ThreadWeaver::WeaverImpl::waitForAvailableJob
(this=0x81edef8, th=0x83ed8d0)
at /usr/src/debug/kdelibs-4.0.99/threadweaver/Weaver/WeaverImpl.cpp:356
No locals.
#6 0xb6fbf4ba in ThreadWeaver::WorkingHardState::applyForWork
(this=0x81f7630, th=0x83ed8d0)
at
/usr/src/debug/kdelibs-4.0.99/threadweaver/Weaver/WorkingHardState.cpp:71
next = (class ThreadWeaver::Job *) 0x0
#7 0xb6fbcbb3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x81edef8,
th=0x83ed8d0,
previous=0x8235420) at
/usr/src/debug/kdelibs-4.0.99/threadweaver/Weaver/WeaverImpl.cpp:351
No locals.
#8 0xb6fbd4ae in ThreadWeaver::ThreadRunHelper::run (this=0xb146f340,
parent=0x81edef8, th=0x83ed8d0)
at /usr/src/debug/kdelibs-4.0.99/threadweaver/Weaver/Thread.cpp:87
tmp = (class ThreadWeaver::Job *) 0xfffffe00
job = <value optimized out>
#9 0xb6fbdaeb in ThreadWeaver::Thread::run (this=0x83ed8d0)
at /usr/src/debug/kdelibs-4.0.99/threadweaver/Weaver/Thread.cpp:142
helper = {<QObject> = {_vptr.QObject = 0xb6fc5868, static
staticMetaObject = {d = {
superdata = 0x0, stringdata = 0xb74d6da0 "QObject", data = 0xb74d6e20,
extradata = 0x0}},
d_ptr = 0x86ece40, static staticQtMetaObject = {d = {superdata = 0x0,
stringdata = 0xb74dfe60 "Qt",
data = 0xb74e1b00, extradata = 0x0}}}, static staticMetaObject = {d =
{superdata = 0xb74e83f8,
stringdata = 0xb6fc4040 "ThreadWeaver::ThreadRunHelper", data =
0xb6fc4160, extradata = 0x0}},
m_job = 0x0}
#10 0xb73769b7 in QThreadPrivate::start (arg=0x83ed8d0) at
thread/qthread_unix.cpp:190
data = (QThreadData *) 0x872c4f0
__cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1219571724,
-1320748144, 0,
-1320750152, 1406321521, -1327082115}, __mask_was_saved = 0}}, __pad =
{0xb146f470, 0x0, 0x0,
0x0}}
not_first_call = <value optimized out>
#11 0xb72fb175 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#12 0xb6484dce in clone () from /lib/libc.so.6
No symbol table info available.
Thread 3 (Thread 0xb1ebcb90 (LWP 9100)):
#0 0xffffe430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb647def1 in select () from /lib/libc.so.6
No symbol table info available.
#2 0xb7434557 in QProcessManager::run (this=0x80d6e98) at
io/qprocess_unix.cpp:307
readset = {fds_bits = {262144, 0 <repeats 31 times>}}
nselect = <value optimized out>
c = 0 '\0'
#3 0xb73769b7 in QThreadPrivate::start (arg=0x80d6e98) at
thread/qthread_unix.cpp:190
data = (QThreadData *) 0x80d7150
__cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1219571724,
-1309946992, 0,
-1309949000, 162710384, -1327082115}, __mask_was_saved = 0}}, __pad =
{0xb1ebc470, 0x0, 0x0,
0x0}}
not_first_call = <value optimized out>
#4 0xb72fb175 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5 0xb6484dce in clone () from /lib/libc.so.6
No symbol table info available.
Thread 2 (Thread 0xb26bdb90 (LWP 9099)):
#0 0xffffe430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb647def1 in select () from /lib/libc.so.6
No symbol table info available.
#2 0xb7477980 in QEventDispatcherUNIX::select (this=0x85bb138, nfds=42,
readfds=0x85bb234,
writefds=0x85bb448, exceptfds=0x85bb65c, timeout=0x0) at
kernel/qeventdispatcher_unix.cpp:608
No locals.
#3 0xb74783af in QEventDispatcherUNIXPrivate::doSelect (this=0x85bb148,
flags={i = -1301556584},
timeout=0x0) at kernel/qeventdispatcher_unix.cpp:172
highest = 140227124
q = (class QEventDispatcherUNIX * const) 0x85bb138
nsel = -1208766476
nevents = <value optimized out>
t = {0xb749a743 "Read", 0xb74d8b5d "Write", 0xb74d8b63 "Exception"}
#4 0xb7479391 in QEventDispatcherUNIX::processEvents (this=0x85bb138, flags={i
= -1301556536})
at kernel/qeventdispatcher_unix.cpp:895
tm = <value optimized out>
wait_tm = {tv_sec = 0, tv_usec = 0}
d = (QEventDispatcherUNIXPrivate * const) 0x85bb148
nevents = <value optimized out>
canWait = true
#5 0xb744f2ca in QEventLoop::processEvents (this=0xb26bd330, flags={i =
-1301556472})
at kernel/qeventloop.cpp:149
d = (QEventLoopPrivate * const) 0x85cb430
#6 0xb744f48a in QEventLoop::exec (this=0xb26bd330, flags={i = -1301556424})
at kernel/qeventloop.cpp:196
d = (QEventLoopPrivate * const) 0x85cb430
#7 0xb7373be3 in QThread::exec (this=0x85bf690) at thread/qthread.cpp:433
d = <value optimized out>
eventLoop = {<QObject> = {_vptr.QObject = 0xb74ec888, static
staticMetaObject = {d = {
superdata = 0x0, stringdata = 0xb74d6da0 "QObject", data = 0xb74d6e20,
extradata = 0x0}},
d_ptr = 0x85cb430, static staticQtMetaObject = {d = {superdata = 0x0,
stringdata = 0xb74dfe60 "Qt",
data = 0xb74e1b00, extradata = 0x0}}}, static staticMetaObject = {d =
{superdata = 0xb74e83f8,
stringdata = 0xb74e5d20 "QEventLoop", data = 0xb74e5d40, extradata =
0x0}}}
returnCode = <value optimized out>
#8 0xb637fd4d in KDevelop::CodeCompletionWorker::run (this=0x85bf690)
at
/home/nix/KdeDev/kdevplatform/language/codecompletion/codecompletionworker.cpp:87
No locals.
#9 0xb73769b7 in QThreadPrivate::start (arg=0x85bf690) at
thread/qthread_unix.cpp:190
data = (QThreadData *) 0x85ca470
__cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1219571724,
-1301554288, 0,
-1301556296, 160613239, -1327082115}, __mask_was_saved = 0}}, __pad =
{0xb26bd470, 0x0,
0xb72f5000, 0x15080}}
not_first_call = <value optimized out>
#10 0xb72fb175 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#11 0xb6484dce in clone () from /lib/libc.so.6
No symbol table info available.
Thread 1 (Thread 0xb5eb28e0 (LWP 9094)):
#0 0xb631ff33 in KDevelop::TopDUContext::indexForUsedDeclaration (this=0x0,
declaration=0xd4babc0,
create=false) at
/home/nix/KdeDev/kdevplatform/language/duchain/topducontext.cpp:1200
id = {indirect = {m_identifier = {index = 33}, m_additionalIdentity =
222958856}, direct = {
m_topContext = 223050752, m_declarationIndex = 223050760}, m_direct = 64,
m_specialization = 2}
index = <value optimized out>
#1 0xb6320260 in KDevelop::allSmartUses (context=0x0, declaration=0xd4babc0)
at /home/nix/KdeDev/kdevplatform/language/duchain/topducontext.cpp:1226
declarationIndex = <value optimized out>
#2 0xb633059b in KDevelop::Declaration::smartUses (this=0xd4babc0)
at /home/nix/KdeDev/kdevplatform/language/duchain/declaration.cpp:637
_container_ = {c = {{p = {static shared_null = {ref = {_q_value =
66597}, alloc = 0, begin = 0,
end = 0, sharable = 1, array = {0x0}}, d = 0xbf8397a0}, d =
0xbf8397a0}}, brk = -1081895096,
i = {i = 0xb63402cf}, e = {i = 0x83760c8}}
tempUses = {q_hash = {{d = 0xb74ed360, e = 0xb74ed360}}}
useContexts = {a = 223142584, s = -1220592443, ptr = 0xbf8393c8, {
array = "u&\035\b\004\000\000\000�P:�\030\001\000\000.QB�xqO���N�Xt:
\rC\000\000\000(\224\203�5\177:�Xt:
\rC\000N\000$AB�$AB���\034\b(\000\000\000\004\000\000\000.QB�\224�N�pqO��\235I\r at qO�\004\224\203�\030\000\000\000\006\000\000\000\000\224\203����\f\200��\f\000\001\000\0000\000\000\000n`B�@qO�\230JL\r�\004Y\b\000\000\000\000�\223\203�\000\000\000\000\002",
'\0' <repeats 11 times>,
"$AB�\001\000\000\000<\000\000\000`JL\000\000\000\000\000C\000\000\000\000\001\000\000��N��\235I\r@"...,
q_for_alignment_1 = 17315997301, q_for_alignment_2 =
8.555239389903847e-314}}
#3 0xb3bebf5e in ContextBrowserPlugin::changeHighlight (this=0x82c4040,
view=0xd3d8b20,
decl=0xd4babc0, highlight=false, mouseHighlight=false)
at
/home/nix/KdeDev/kdevplatform/plugins/contextbrowser/contextbrowser.cpp:233
lock = {m_lock = 0x83760c8, m_locked = true, m_timeout = 0}
range = <value optimized out>
uses = {{p = {static shared_null = {ref = {_q_value = 66597}, alloc =
0, begin = 0, end = 0,
sharable = 1, array = {0x0}}, d = 0xb74ed394}, d = 0xb74ed394}}
__PRETTY_FUNCTION__ = "void
ContextBrowserPlugin::changeHighlight(KTextEditor::View*,
KDevelop::Declaration*, bool, bool)"
#4 0xb3bed645 in ContextBrowserPlugin::updateViews (this=0x82c4040)
at
/home/nix/KdeDev/kdevplatform/plugins/contextbrowser/contextbrowser.cpp:319
c = {line = 10, column = 0}
foundSpecialObject = false
pickedLanguage = (class KDevelop::ILanguage *) 0x0
topContext = (class KDevelop::TopDUContext *) 0x8757e18
foundDeclaration = (class KDevelop::Declaration *) 0xd4ceaf0
mouseHighlight = <value optimized out>
iface = (class KTextEditor::SmartInterface *) 0xd3d8244
lock = {m_lock = 0x83760c8, m_locked = true, m_timeout = 100}
view = (class KTextEditor::View *) 0xd3d8b20
_container_ = {c = {q_hash = {{d = 0xd4b87f0, e = 0xd4b87f0}}}, brk =
0, i = {i = {
i = 0xd4c2180}}, e = {i = {i = 0xd4b87f0}}}
__PRETTY_FUNCTION__ = "void ContextBrowserPlugin::updateViews()"
#5 0xb3bef58b in ContextBrowserPlugin::qt_metacall (this=0x82c4040,
_c=QMetaObject::InvokeMetaMethod,
_id=9, _a=0xbf839b78)
at
/home/nix/KdeDev/kdevplatform/build/plugins/contextbrowser/contextbrowser.moc:100
No locals.
#6 0xb74623fa in QMetaObject::activate (sender=0x82c17b0,
from_signal_index=4, to_signal_index=4,
argv=0x0) at kernel/qobject.cpp:3007
method = 16
currentSender = {sender = 0x82c17b0, signal = 4, ref = 1}
previousSender = (QObjectPrivate::Sender * const) 0x0
i = 0
connectionList = (const QList<QObjectPrivate::Connection> &)
@0x82c5ac0: {{p = {
static shared_null = {ref = {_q_value = 66597}, alloc = 0, begin = 0,
end = 0, sharable = 1,
array = {0x0}}, d = 0x835dd00}, d = 0x835dd00}}
count = 1
signal = 4
empty_argv = {0x0}
locker = {{mtx = 0x8054664, val = 134563428}}
currentThreadData = (QThreadData *) 0x8054630
connectionLists = (QObjectConnectionListVector *) 0x82c4270
#7 0xb7462972 in QMetaObject::activate (sender=0x82c17b0, m=0xb74ec9e4,
local_signal_index=0, argv=0x0)
at kernel/qobject.cpp:3080
signal_index = 223062976
#8 0xb74979a7 in QTimer::timeout (this=0x82c17b0) at .moc/release-
shared/moc_qtimer.cpp:126
No locals.
#9 0xb7469abe in QTimer::timerEvent (this=0x82c17b0, e=0xbf83a01c) at
kernel/qtimer.cpp:263
No locals.
#10 0xb745ed1f in QObject::event (this=0x82c17b0, e=0xbf83a01c) at
kernel/qobject.cpp:1105
No locals.
#11 0xb6736ecc in QApplicationPrivate::notify_helper (this=0x80d6120,
receiver=0x82c17b0, e=0xbf83a01c)
at kernel/qapplication.cpp:3772
consumed = <value optimized out>
#12 0xb673d31e in QApplication::notify (this=0xbf83a3f4, receiver=0x82c17b0,
e=0xbf83a01c)
at kernel/qapplication.cpp:3366
res = true
#13 0xb7826c5d in KApplication::notify (this=0xbf83a3f4, receiver=0x82c17b0,
event=0xbf83a01c)
at /usr/src/debug/kdelibs-4.0.99/kdeui/kernel/kapplication.cpp:311
No locals.
#14 0xb7450b51 in QCoreApplication::notifyInternal (this=0xbf83a3f4,
receiver=0x82c17b0,
event=0xbf83a01c) at kernel/qcoreapplication.cpp:583
result = false
cbdata = {0x82c17b0, 0xbf83a01c, 0xbf839f9b}
d = (class QObjectPrivate *) 0x82c41d8
threadData = (QThreadData *) 0x8054630
deleteWatch = 0
oldDeleteWatch = (int *) 0x0
returnValue = <value optimized out>
#15 0xb7479181 in QTimerInfoList::activateTimers (this=0x80d6944) at
kernel/qcoreapplication.h:215
e = {<QEvent> = {_vptr.QEvent = 0xb74eb838, d = 0x0, t = 1, posted =
0, spont = 0,
m_accept = 1, reserved = 257}, id = 7179}
firstTime = <value optimized out>
n_act = 1
saveFirstTimerInfo = (QTimerInfo *) 0x0
saveCurrentTimerInfo = (QTimerInfo *) 0x0
#16 0xb74793fb in QEventDispatcherUNIX::processEvents (this=0x80d5fb8, flags={i
= -1081892584})
at kernel/qeventdispatcher_unix.cpp:899
tm = <value optimized out>
wait_tm = {tv_sec = 0, tv_usec = 0}
d = <value optimized out>
nevents = 1
canWait = true
#17 0xb67c10a2 in QEventDispatcherX11::processEvents (this=0x80d5fb8, flags={i
= -1081892136})
at kernel/qeventdispatcher_x11.cpp:154
d = (QEventDispatcherX11Private * const) 0x80d62b0
marker = 455655
nevents = 1
#18 0xb744f2ca in QEventLoop::processEvents (this=0xbf83a340, flags={i =
-1081892072})
at kernel/qeventloop.cpp:149
d = (QEventLoopPrivate * const) 0x898c340
#19 0xb744f48a in QEventLoop::exec (this=0xbf83a340, flags={i = -1081892024})
at kernel/qeventloop.cpp:196
d = (QEventLoopPrivate * const) 0x898c340
#20 0xb745166d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
threadData = <value optimized out>
eventLoop = {<QObject> = {_vptr.QObject = 0xb74ec888, static
staticMetaObject = {d = {
superdata = 0x0, stringdata = 0xb74d6da0 "QObject", data = 0xb74d6e20,
extradata = 0x0}},
d_ptr = 0x898c340, static staticQtMetaObject = {d = {superdata = 0x0,
stringdata = 0xb74dfe60 "Qt",
data = 0xb74e1b00, extradata = 0x0}}}, static staticMetaObject = {d =
{superdata = 0xb74e83f8,
stringdata = 0xb74e5d20 "QEventLoop", data = 0xb74e5d40, extradata =
0x0}}}
returnCode = <value optimized out>
#21 0xb6736d47 in QApplication::exec () at kernel/qapplication.cpp:3304
No locals.
#22 0x0804e4dc in main (argc=1, argv=0xbf83a854) at
/home/nix/KdeDev/kdevelop/src/main.cpp:209
aboutData = {d = 0x80ccc60}
options = {d = 0x80d5d78}
args = (KCmdLineArgs *) 0x80d5f50
app = {<QApplication> = {<QCoreApplication> = {<QObject> =
{_vptr.QObject = 0xb799b3c8,
static staticMetaObject = {d = {superdata = 0x0, stringdata =
0xb74d6da0 "QObject",
data = 0xb74d6e20, extradata = 0x0}}, d_ptr = 0x80d6120, static
staticQtMetaObject = {d = {
superdata = 0x0, stringdata = 0xb74dfe60 "Qt", data = 0xb74e1b00,
extradata = 0x0}}},
static staticMetaObject = {d = {superdata = 0xb74e83f8,
stringdata = 0xb74e5da0 "QCoreApplication", data = 0xb74e5e40,
extradata = 0x0}},
static self = 0xbf83a3f4}, static staticMetaObject = {d = {superdata =
0xb74ec8c4,
stringdata = 0xb6ca67c0 "QApplication", data = 0xb6ca69a0, extradata =
0x0}}},
static staticMetaObject = {d = {superdata = 0xb6d50f28, stringdata =
0xb7978b40 "KApplication",
data = 0xb7978ce0, extradata = 0x0}}, static loadedByKdeinit = false,
static KApp = 0xbf83a3f4,
d = 0x8134270}
splash = (class SplashScreen *) 0x0
splashFile = {static null = {<No data fields>}, static shared_null =
{ref = {_q_value = 52154},
alloc = 0, size = 0, data = 0x8052302, clean = 0, simpletext = 0,
righttoleft = 0, asciiCache = 0,
capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref =
{_q_value = 1618},
alloc = 0, size = 0, data = 0xb74ed42e, clean = 0, simpletext = 0,
righttoleft = 0, asciiCache = 0,
capacity = 0, reserved = 0, array = {0}}, d = 0x80522f0, static
codecForCStrings = 0x0}
openProject = 176
projectName = {static null = {<No data fields>}, static shared_null =
{ref = {
_q_value = 52154}, alloc = 0, size = 0, data = 0x8052302, clean = 0,
simpletext = 0,
righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}},
static shared_empty = {
ref = {_q_value = 1618}, alloc = 0, size = 0, data = 0xb74ed42e, clean =
0, simpletext = 0,
righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}},
d = 0xb74ed41c,
static codecForCStrings = 0x0}
description = "The KDevelop Integrated Development Environment"
More information about the KDevelop-devel
mailing list