Hi Manuel,<br>Thanks for reporting, I am aware there are quite some crashes on the cmake duchain support and I am actually trying to sort them out these days, even if i am not sure where do they come from :/<br><br>Bye!<br>
Aleix<br><br><div class="gmail_quote">On Sun, Nov 30, 2008 at 9:58 PM, Manuel Breugelmans <span dir="ltr"><<a href="mailto:mbr.nxi@gmail.com">mbr.nxi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I got this null pointer dereference while playing around with cmake code<br>
completion.<br>
<br>
<br>
Manuel<br>
<br>
--<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
KDevelop::Declaration::abstractType (this=0x0) at<br>
/home/nix/KdeDev/kdevplatform/language/duchain/declaration.cpp:301<br>
301       return d_func()->m_type.type();<br>
(gdb) bt<br>
#0  KDevelop::Declaration::abstractType (this=0x0) at<br>
/home/nix/KdeDev/kdevplatform/language/duchain/declaration.cpp:301<br>
#1  0xafd779a1 in CMakeCodeCompletionModel::data (this=0x9df0698,<br>
index=@0xbffef530, role=0)<br>
    at<br>
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/cmakecodecompletionmodel.cpp:92<br>
#2  0xb2c30ea8 in KateCompletionModel::data (this=0xaa64428, index=@0xbffefac0,<br>
role=0) at /usr/include/QtCore/qabstractitemmodel.h:373<br>
#3  0xb702659b in QItemDelegate::paint (this=0xaa6f888, painter=0xbffefdf8,<br>
option=@0xbffef844, index=@0xbffefac0)<br>
    at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:367<br>
#4  0xb2c4f6b8 in ExpandingDelegate::paint (this=0xaa6f888, painter=0xbffefdf8,<br>
optionOld=@0xbffef9b4, index=@0xbffefac0)<br>
    at<br>
/usr/src/debug/kdelibs-4.1.80/kate/completion/expandingtree/expandingdelegate.cpp:104<br>
#5  0xb7011e33 in QTreeView::drawRow (this=0xaa64640, painter=0xbffefdf8,<br>
option=@0xbffefca4, index=@0x856a550) at itemviews/qtreeview.cpp:1602<br>
#6  0xb2c50fa7 in ExpandingTree::drawRow (this=0xaa64640, painter=0xbffefdf8,<br>
option=@0xbffefca4, index=@0x856a550)<br>
    at<br>
/usr/src/debug/kdelibs-4.1.80/kate/completion/expandingtree/expandingtree.cpp:34<br>
#7  0xb7018d84 in QTreeView::drawTree (this=0xaa64640, painter=0xbffefdf8,<br>
region=@0xbfff0618) at itemviews/qtreeview.cpp:1365<br>
#8  0xb701916b in QTreeView::paintEvent (this=0xaa64640, event=0xbfff05fc) at<br>
itemviews/qtreeview.cpp:1267<br>
#9  0xb6b66bdb in QWidget::event (this=0xaa64640, event=0xbfff05fc) at<br>
kernel/qwidget.cpp:7306<br>
#10 0xb6e9e843 in QFrame::event (this=0xaa64640, e=0xbfff05fc) at<br>
widgets/qframe.cpp:651<br>
#11 0xb6f3536f in QAbstractScrollArea::viewportEvent (this=0xaa64640,<br>
e=0xa4f16a8) at widgets/qabstractscrollarea.cpp:943<br>
#12 0xb6fe017f in QAbstractItemView::viewportEvent (this=0xaa64640,<br>
event=0xbfff05fc) at itemviews/qabstractitemview.cpp:1429<br>
#13 0xb7017eb4 in QTreeView::viewportEvent (this=0xaa64640, event=0xbfff05fc)<br>
at itemviews/qtreeview.cpp:1252<br>
#14 0xb6f37915 in QAbstractScrollAreaFilter::eventFilter (this=0xaa98830,<br>
o=0xaa64a68, e=0xbfff05fc) at widgets/qabstractscrollarea_p.h:96<br>
#15 0xb690c4ea in QCoreApplicationPrivate::sendThroughObjectEventFilters<br>
(this=0x80c6df0, receiver=0xaa64a68, event=0xbfff05fc)<br>
    at kernel/qcoreapplication.cpp:701<br>
#16 0xb6b0ec0a in QApplicationPrivate::notify_helper (this=0x80c6df0,<br>
receiver=0xaa64a68, e=0xbfff05fc) at kernel/qapplication.cpp:3800<br>
#17 0xb6b16b5a in QApplication::notify (this=0xbfff13f0, receiver=0xaa64a68,<br>
e=0xbfff05fc) at kernel/qapplication.cpp:3769<br>
#18 0xb753900d in KApplication::notify (this=0xbfff13f0, receiver=0xaa64a68,<br>
event=0xbfff05fc)<br>
    at /usr/src/debug/kdelibs-4.1.80/kdeui/kernel/kapplication.cpp:307<br>
#19 0xb690d311 in QCoreApplication::notifyInternal (this=0xbfff13f0,<br>
receiver=0xaa64a68, event=0xbfff05fc) at kernel/qcoreapplication.cpp:587<br>
#20 0xb6b6f8ee in qt_sendSpontaneousEvent (receiver=0xaa64a68,<br>
event=0xa4f16a8) at<br>
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212<br>
#21 0xb6b655a0 in QWidgetPrivate::drawWidget (this=0xaa6bd28, pdev=0x9be15b4,<br>
rgn=@0xbfff079c, offset=@0xbfff0794, flags=<value optimized out>,<br>
    sharedPainter=0xbd92788) at kernel/qwidget.cpp:4637<br>
#22 0xb6b65d4d in QWidgetPrivate::paintSiblingsRecursive (this=0xaa6ba50,<br>
pdev=0x9be15b4, siblings=@0xbfff08f0, index=6, rgn=@0xbfff09bc,<br>
    offset=@0xbfff09b4, flags=4, sharedPainter=0xbd92788) at<br>
kernel/qwidget.cpp:4736<br>
#23 0xb6b65218 in QWidgetPrivate::drawWidget (this=0xaa6ba50, pdev=0x9be15b4,<br>
rgn=@0xbfff09bc, offset=@0xbfff09b4, flags=4, sharedPainter=0xbd92788)<br>
    at kernel/qwidget.cpp:4678<br>
#24 0xb6b65d4d in QWidgetPrivate::paintSiblingsRecursive (this=0xaa642a8,<br>
pdev=0x9be15b4, siblings=@0xbfff0b10, index=5, rgn=@0xbfff0c04,<br>
    offset=@0x9be15e4, flags=4, sharedPainter=0xbd92788) at<br>
kernel/qwidget.cpp:4736<br>
#25 0xb6b65218 in QWidgetPrivate::drawWidget (this=0xaa642a8, pdev=0x9be15b4,<br>
rgn=@0xbfff0c04, offset=@0x9be15e4, flags=4, sharedPainter=0xbd92788)<br>
---Type <return> to continue, or q <return> to quit---<br>
    at kernel/qwidget.cpp:4678<br>
#26 0xb6cd4e5e in QWidgetBackingStore::cleanRegion (this=0x9be15d8,<br>
rgn=@0xbfff0c58, widget=0xaa64228, recursiveCopyToScreen=true)<br>
    at painting/qbackingstore.cpp:1053<br>
#27 0xb6cd5327 in qt_syncBackingStore (widget=0xaa64228) at<br>
painting/qbackingstore.cpp:313<br>
#28 0xb6b66a06 in QWidget::event (this=0xaa64228, event=0xa85e620) at<br>
kernel/qwidget.cpp:7452<br>
#29 0xb6e9e843 in QFrame::event (this=0xaa64228, e=0xa85e620) at<br>
widgets/qframe.cpp:651<br>
#30 0xb6b0ec2c in QApplicationPrivate::notify_helper (this=0x80c6df0,<br>
receiver=0xaa64228, e=0xa85e620) at kernel/qapplication.cpp:3804<br>
#31 0xb6b16b5a in QApplication::notify (this=0xbfff13f0, receiver=0xaa64228,<br>
e=0xa85e620) at kernel/qapplication.cpp:3769<br>
#32 0xb753900d in KApplication::notify (this=0xbfff13f0, receiver=0xaa64228,<br>
event=0xa85e620)<br>
    at /usr/src/debug/kdelibs-4.1.80/kdeui/kernel/kapplication.cpp:307<br>
#33 0xb690d311 in QCoreApplication::notifyInternal (this=0xbfff13f0,<br>
receiver=0xaa64228, event=0xa85e620) at kernel/qcoreapplication.cpp:587<br>
#34 0xb690df85 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0,<br>
event_type=0, data=0x8054650) at kernel/qcoreapplication.h:209<br>
#35 0xb690e17d in QCoreApplication::sendPostedEvents (receiver=0x0,<br>
event_type=0) at kernel/qcoreapplication.cpp:1098<br>
#36 0xb6937e6f in postEventSourceDispatch (s=0x80c92e0) at<br>
kernel/qcoreapplication.h:214<br>
#37 0xb5d8a2d9 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0<br>
#38 0xb5d8d85b in ?? () from /usr/lib/libglib-2.0.so.0<br>
#39 0xb5d8d9d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0<br>
#40 0xb6937ab8 in QEventDispatcherGlib::processEvents (this=0x80c6d10, flags={i<br>
= -1073802648}) at kernel/qeventdispatcher_glib.cpp:319<br>
#41 0xb6ba7c85 in QGuiEventDispatcherGlib::processEvents (this=0x80c6d10,<br>
flags={i = -1073802600}) at kernel/qguieventdispatcher_glib.cpp:198<br>
#42 0xb690b9ea in QEventLoop::processEvents (this=0xbfff1310, flags={i =<br>
-1073802536}) at kernel/qeventloop.cpp:143<br>
#43 0xb690bbaa in QEventLoop::exec (this=0xbfff1310, flags={i = -1073802472}) at<br>
kernel/qeventloop.cpp:194<br>
#44 0xb690e245 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:852<br>
#45 0xb6b0eaa7 in QApplication::exec () at kernel/qapplication.cpp:3332<br>
#46 0x0804e641 in main (argc=1, argv=0xbfff1854) at<br>
/home/nix/KdeDev/kdevelop/src/main.cpp:195<br>
<br>
<br>
_______________________________________________<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</blockquote></div><br>