[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 202151] New: kdevelop crashes in
From:       Jonathan Thomas <echidnaman () kubuntu ! org>
Date:       2009-07-31 22:52:57
Message-ID: bug-202151-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=202151

           Summary: kdevelop crashes in
                    KDevelop::FunctionTypeData::m_argumentsSize() when
                    using autocomplete in CMake
           Product: kdevelop
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: NEW
          Severity: crash
          Priority: NOR
         Component: code completion
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: echidnaman@kubuntu.org


Version:            (using KDE 4.2.98)
OS:                Linux
Installed from:    Ubuntu Packages

This was originally reported by a user at https://launchpad.net/bugs/407526
The setup is:
KDE 4.2.98
Qt 4.5.2
KDevelop 3.9.94

The original report was quite good so I'll let it speak for itself:
"When trying to use auto-complete in a CMake file kdevelop will crash if no
code completion options are available.

Steps to reproduce.

1. Create a CMake based project.
2. While editing the CMake file try to use code completion making sure no
matches will be found.
3. Hit the backspace button to delete what has been typed

When you get to the first character that was typed it will crash. This cannot
be reproduced reliably when a code completion option is available."


The backtrace is as follows:
(gdb) continue                                                    
Continuing.                                                       
[New Thread 0xaedffb90 (LWP 17882)]                               
[New Thread 0xab310b90 (LWP 17883)]                               

Program received signal SIGSEGV, Segmentation fault.
0x04ea4b88 in KDevelop::FunctionTypeData::m_argumentsSize (this=0x0)
    at ../../language/duchain/types/typesystemdata.h:157            
157     ../../language/duchain/types/typesystemdata.h: No such file or
directory.
        in ../../language/duchain/types/typesystemdata.h                        
Current language:  auto; currently c++                                          
(gdb) backtrace                                                                 
#0  0x04ea4b88 in KDevelop::FunctionTypeData::m_argumentsSize (this=0x0)        
    at ../../language/duchain/types/typesystemdata.h:157                        
#1  KDevelop::FunctionType::arguments (this=0x0) at
../../language/duchain/types/functiontype.cpp:120
#2  0x0307b9e4 in ?? () from /usr/lib/kde4/kdevcmakemanager.so                  
#3  0x025d4755 in QModelIndex::data (this=0xa3aacc0, index=..., role=0)         
    at /usr/include/qt4/QtCore/qabstractitemmodel.h:378                         
#4  KateCompletionModel::data (this=0xa3aacc0, index=..., role=0)               
    at ../../kate/completion/katecompletionmodel.cpp:226                        
#5  0x014840df in QModelIndex::data (this=0xa3b38f8, option=..., index=...,
role=0)                  
    at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:378   
#6  QItemDelegate::rect (this=0xa3b38f8, option=..., index=..., role=0) at
itemviews/qitemdelegate.cpp:1075
#7  0x01484729 in QItemDelegate::sizeHint (this=0xa3b38f8, option=...,
index=...)                          
    at itemviews/qitemdelegate.cpp:503                                          
#8  0x025f6a7a in ExpandingDelegate::sizeHint (this=0xa3b38f8, option=...,
index=...)                      
    at ../../kate/completion/expandingtree/expandingdelegate.cpp:125            
#9  0x01439ad1 in QAbstractItemView::sizeHintForIndex (this=0xa316830,
index=...)                          
    at itemviews/qabstractitemview.cpp:2700                                     
#10 0x025e08eb in KateCompletionTree::resizeColumns (this=0xa316830,
fromResizeEvent=false, firstShow=true, 
    forceResize=true) at ../../kate/completion/katecompletiontree.cpp:154       
#11 0x025cc22c in KateCompletionWidget::updateAndShow (this=0xa3a8890)          
    at ../../kate/completion/katecompletionwidget.cpp:413                       
#12 0x025ccd0f in KateCompletionWidget::modelContentChanged (this=0xa3a8890)    
    at ../../kate/completion/katecompletionwidget.cpp:176                       
#13 0x025cf232 in KateCompletionWidget::qt_metacall (this=0xa3a8890,
_c=QMetaObject::InvokeMetaMethod, _id=16, 
    _a=0xbfd6592c) at ./katecompletionwidget.moc:126                            
#14 0x00ce6383 in QMetaObject::activate (sender=0xa3aacc0,
from_signal_index=23, to_signal_index=23, argv=0x0) 
    at kernel/qobject.cpp:3113                                                  
#15 0x00ce6fe2 in QMetaObject::activate (sender=0xa3aacc0, m=0x27a7348,
local_signal_index=2, argv=0x0)        
    at kernel/qobject.cpp:3187                                                  
#16 0x025d10c7 in KateCompletionModel::contentGeometryChanged (this=0xa3aacc0)
at ./katecompletionmodel.moc:121
#17 0x025dc90b in KateCompletionModel::setCurrentCompletion (this=0xa3aacc0,
model=0x9cc37a8, completion=...)  
---Type <return> to continue, or q <return> to quit---                          
    at ../../kate/completion/katecompletionmodel.cpp:957                        
#18 0x025cbf7e in KateCompletionWidget::cursorPositionChanged (this=0xa3a8890)  
    at ../../kate/completion/katecompletionwidget.cpp:670                       
#19 0x025cf242 in KateCompletionWidget::qt_metacall (this=0xa3a8890,
_c=QMetaObject::InvokeMetaMethod, _id=17, 
    _a=0x9b5a5c0) at ./katecompletionwidget.moc:127                             
#20 0x00cdf02b in QMetaCallEvent::placeMetaCall (this=0xa44c478,
object=0xa3a8890) at kernel/qobject.cpp:477   
#21 0x00ce071e in QObject::event (this=0xa3a8890, e=0xa44c478) at
kernel/qobject.cpp:1111                      
#22 0x00f395a6 in QWidget::event (this=0xa3a8890, event=0xa44c478) at
kernel/qwidget.cpp:7946                  
#23 0x012e8e03 in QFrame::event (this=0xa3a8890, e=0xa44c478) at
widgets/qframe.cpp:559                        
#24 0x00ee4c74 in QApplicationPrivate::notify_helper (this=0x925ee50,
receiver=0xa3a8890, e=0xa44c478)         
    at kernel/qapplication.cpp:4056
#25 0x00eec2ea in QApplication::notify (this=0xbfd664e8, receiver=0xa3a8890,
e=0xa44c478)
    at kernel/qapplication.cpp:4021
#26 0x0063bada in KApplication::notify (this=0xbfd664e8, receiver=0xa3a8890,
event=0xa44c478)
    at ../../kdeui/kernel/kapplication.cpp:302
#27 0x00cd07eb in QCoreApplication::notifyInternal (this=0xbfd664e8,
receiver=0xa3a8890, event=0xa44c478)
    at kernel/qcoreapplication.cpp:610
#28 0x00cd13d2 in QCoreApplication::sendEvent (receiver=0x0, event_type=0,
data=0x91bf5b8)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#29 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x91bf5b8)
    at kernel/qcoreapplication.cpp:1247
#30 0x00cd159d in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0)
    at kernel/qcoreapplication.cpp:1140
#31 0x00cfb51f in QCoreApplication::sendPostedEvents (s=0x9261110)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#32 postEventSourceDispatch (s=0x9261110) at
kernel/qeventdispatcher_glib.cpp:210
#33 0x0777cc48 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0x077804f0 in ?? () from /usr/lib/libglib-2.0.so.0
#35 0x07780623 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0x00cfb14c in QEventDispatcherGlib::processEvents (this=0x91bf1a0,
flags=...)
    at kernel/qeventdispatcher_glib.cpp:327
---Type <return> to continue, or q <return> to quit---
#37 0x00f857e5 in QGuiEventDispatcherGlib::processEvents (this=0x91bf1a0,
flags=...)
    at kernel/qguieventdispatcher_glib.cpp:202
#38 0x00cced99 in QEventLoop::processEvents (this=0xbfd66404, flags=DWARF-2
expression error: DW_OP_reg operations must be used either alone or in
conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#39 0x00ccf1ea in QEventLoop::exec (this=0xbfd66404, flags=...) at
kernel/qeventloop.cpp:201
#40 0x00cd165f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#41 0x00ee4af7 in QApplication::exec () at kernel/qapplication.cpp:3525
#42 0x0804f2f3 in _start ()

-- 
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