[crash] CMake completion

Manuel Breugelmans mbr.nxi at gmail.com
Sun Nov 30 20:58:40 UTC 2008


Hi,

I got this null pointer dereference while playing around with cmake code 
completion.


Manuel

--

Program received signal SIGSEGV, Segmentation fault.
KDevelop::Declaration::abstractType (this=0x0) at 
/home/nix/KdeDev/kdevplatform/language/duchain/declaration.cpp:301
301       return d_func()->m_type.type();                                                                           
(gdb) bt                                                                                                            
#0  KDevelop::Declaration::abstractType (this=0x0) at 
/home/nix/KdeDev/kdevplatform/language/duchain/declaration.cpp:301
#1  0xafd779a1 in CMakeCodeCompletionModel::data (this=0x9df0698, 
index=@0xbffef530, role=0)                            
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/cmakecodecompletionmodel.cpp:92                                 
#2  0xb2c30ea8 in KateCompletionModel::data (this=0xaa64428, index=@0xbffefac0, 
role=0) at /usr/include/QtCore/qabstractitemmodel.h:373
#3  0xb702659b in QItemDelegate::paint (this=0xaa6f888, painter=0xbffefdf8, 
option=@0xbffef844, index=@0xbffefac0)                     
    at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:367                                                          
#4  0xb2c4f6b8 in ExpandingDelegate::paint (this=0xaa6f888, painter=0xbffefdf8, 
optionOld=@0xbffef9b4, index=@0xbffefac0)              
    at 
/usr/src/debug/kdelibs-4.1.80/kate/completion/expandingtree/expandingdelegate.cpp:104                                           
#5  0xb7011e33 in QTreeView::drawRow (this=0xaa64640, painter=0xbffefdf8, 
option=@0xbffefca4, index=@0x856a550) at itemviews/qtreeview.cpp:1602
#6  0xb2c50fa7 in ExpandingTree::drawRow (this=0xaa64640, painter=0xbffefdf8, 
option=@0xbffefca4, index=@0x856a550)                            
    at 
/usr/src/debug/kdelibs-4.1.80/kate/completion/expandingtree/expandingtree.cpp:34                                                        
#7  0xb7018d84 in QTreeView::drawTree (this=0xaa64640, painter=0xbffefdf8, 
region=@0xbfff0618) at itemviews/qtreeview.cpp:1365                 
#8  0xb701916b in QTreeView::paintEvent (this=0xaa64640, event=0xbfff05fc) at 
itemviews/qtreeview.cpp:1267                                     
#9  0xb6b66bdb in QWidget::event (this=0xaa64640, event=0xbfff05fc) at 
kernel/qwidget.cpp:7306                                                 
#10 0xb6e9e843 in QFrame::event (this=0xaa64640, e=0xbfff05fc) at 
widgets/qframe.cpp:651                                                       
#11 0xb6f3536f in QAbstractScrollArea::viewportEvent (this=0xaa64640, 
e=0xa4f16a8) at widgets/qabstractscrollarea.cpp:943                      
#12 0xb6fe017f in QAbstractItemView::viewportEvent (this=0xaa64640, 
event=0xbfff05fc) at itemviews/qabstractitemview.cpp:1429                  
#13 0xb7017eb4 in QTreeView::viewportEvent (this=0xaa64640, event=0xbfff05fc) 
at itemviews/qtreeview.cpp:1252                                  
#14 0xb6f37915 in QAbstractScrollAreaFilter::eventFilter (this=0xaa98830, 
o=0xaa64a68, e=0xbfff05fc) at widgets/qabstractscrollarea_p.h:96     
#15 0xb690c4ea in QCoreApplicationPrivate::sendThroughObjectEventFilters 
(this=0x80c6df0, receiver=0xaa64a68, event=0xbfff05fc)                
    at kernel/qcoreapplication.cpp:701                                                                                                         
#16 0xb6b0ec0a in QApplicationPrivate::notify_helper (this=0x80c6df0, 
receiver=0xaa64a68, e=0xbfff05fc) at kernel/qapplication.cpp:3800        
#17 0xb6b16b5a in QApplication::notify (this=0xbfff13f0, receiver=0xaa64a68, 
e=0xbfff05fc) at kernel/qapplication.cpp:3769                     
#18 0xb753900d in KApplication::notify (this=0xbfff13f0, receiver=0xaa64a68, 
event=0xbfff05fc)                                                 
    at /usr/src/debug/kdelibs-4.1.80/kdeui/kernel/kapplication.cpp:307                                                                         
#19 0xb690d311 in QCoreApplication::notifyInternal (this=0xbfff13f0, 
receiver=0xaa64a68, event=0xbfff05fc) at kernel/qcoreapplication.cpp:587
#20 0xb6b6f8ee in qt_sendSpontaneousEvent (receiver=0xaa64a68, 
event=0xa4f16a8) at 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#21 0xb6b655a0 in QWidgetPrivate::drawWidget (this=0xaa6bd28, pdev=0x9be15b4, 
rgn=@0xbfff079c, offset=@0xbfff0794, flags=<value optimized out>,
    sharedPainter=0xbd92788) at kernel/qwidget.cpp:4637
#22 0xb6b65d4d in QWidgetPrivate::paintSiblingsRecursive (this=0xaa6ba50, 
pdev=0x9be15b4, siblings=@0xbfff08f0, index=6, rgn=@0xbfff09bc,
    offset=@0xbfff09b4, flags=4, sharedPainter=0xbd92788) at 
kernel/qwidget.cpp:4736
#23 0xb6b65218 in QWidgetPrivate::drawWidget (this=0xaa6ba50, pdev=0x9be15b4, 
rgn=@0xbfff09bc, offset=@0xbfff09b4, flags=4, sharedPainter=0xbd92788)
    at kernel/qwidget.cpp:4678
#24 0xb6b65d4d in QWidgetPrivate::paintSiblingsRecursive (this=0xaa642a8, 
pdev=0x9be15b4, siblings=@0xbfff0b10, index=5, rgn=@0xbfff0c04,
    offset=@0x9be15e4, flags=4, sharedPainter=0xbd92788) at 
kernel/qwidget.cpp:4736
#25 0xb6b65218 in QWidgetPrivate::drawWidget (this=0xaa642a8, pdev=0x9be15b4, 
rgn=@0xbfff0c04, offset=@0x9be15e4, flags=4, sharedPainter=0xbd92788)
---Type <return> to continue, or q <return> to quit---
    at kernel/qwidget.cpp:4678
#26 0xb6cd4e5e in QWidgetBackingStore::cleanRegion (this=0x9be15d8, 
rgn=@0xbfff0c58, widget=0xaa64228, recursiveCopyToScreen=true)
    at painting/qbackingstore.cpp:1053
#27 0xb6cd5327 in qt_syncBackingStore (widget=0xaa64228) at 
painting/qbackingstore.cpp:313
#28 0xb6b66a06 in QWidget::event (this=0xaa64228, event=0xa85e620) at 
kernel/qwidget.cpp:7452
#29 0xb6e9e843 in QFrame::event (this=0xaa64228, e=0xa85e620) at 
widgets/qframe.cpp:651
#30 0xb6b0ec2c in QApplicationPrivate::notify_helper (this=0x80c6df0, 
receiver=0xaa64228, e=0xa85e620) at kernel/qapplication.cpp:3804
#31 0xb6b16b5a in QApplication::notify (this=0xbfff13f0, receiver=0xaa64228, 
e=0xa85e620) at kernel/qapplication.cpp:3769
#32 0xb753900d in KApplication::notify (this=0xbfff13f0, receiver=0xaa64228, 
event=0xa85e620)
    at /usr/src/debug/kdelibs-4.1.80/kdeui/kernel/kapplication.cpp:307
#33 0xb690d311 in QCoreApplication::notifyInternal (this=0xbfff13f0, 
receiver=0xaa64228, event=0xa85e620) at kernel/qcoreapplication.cpp:587
#34 0xb690df85 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
event_type=0, data=0x8054650) at kernel/qcoreapplication.h:209
#35 0xb690e17d in QCoreApplication::sendPostedEvents (receiver=0x0, 
event_type=0) at kernel/qcoreapplication.cpp:1098
#36 0xb6937e6f in postEventSourceDispatch (s=0x80c92e0) at 
kernel/qcoreapplication.h:214
#37 0xb5d8a2d9 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#38 0xb5d8d85b in ?? () from /usr/lib/libglib-2.0.so.0
#39 0xb5d8d9d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#40 0xb6937ab8 in QEventDispatcherGlib::processEvents (this=0x80c6d10, flags={i 
= -1073802648}) at kernel/qeventdispatcher_glib.cpp:319
#41 0xb6ba7c85 in QGuiEventDispatcherGlib::processEvents (this=0x80c6d10, 
flags={i = -1073802600}) at kernel/qguieventdispatcher_glib.cpp:198
#42 0xb690b9ea in QEventLoop::processEvents (this=0xbfff1310, flags={i = 
-1073802536}) at kernel/qeventloop.cpp:143
#43 0xb690bbaa in QEventLoop::exec (this=0xbfff1310, flags={i = -1073802472}) at 
kernel/qeventloop.cpp:194
#44 0xb690e245 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:852
#45 0xb6b0eaa7 in QApplication::exec () at kernel/qapplication.cpp:3332
#46 0x0804e641 in main (argc=1, argv=0xbfff1854) at 
/home/nix/KdeDev/kdevelop/src/main.cpp:195





More information about the KDevelop-devel mailing list