Bug 208967 - Crash on Create Class wizard
Summary: Crash on Create Class wizard
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2009-09-30 11:28 UTC by Dan Leinir Turthra Jensen
Modified: 2018-10-21 04:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Leinir Turthra Jensen 2009-09-30 11:28:10 UTC
Version:           unknown (using 4.3.1 (KDE 4.3.1) "release 165", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.29-0.1-default

Segfault on Create Class (when right-clicking on target and using it there, happens on Finish). Backtrace as follows:

#0  0x00007ffff1760dca in google::dense_hashtable<std::pair<unsigned long const, int>, unsigned long, __gnu_cxx::hash<unsigned long>, google::dense_hash_map<unsigned long, int, __gnu_cxx::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<int> >::SelectKey, std::equal_to<unsigned long>, std::allocator<int> >::find_position (this=Cannot access memory at address 0x7fffff7fefa8                                                                                
) at /home/leinir/kdesvn/kdevplatform/util/google/sparsehash/densehashtable.h:665                                                                                                                                                           
#1  0x00007ffff17614c9 in google::dense_hashtable<std::pair<unsigned long const, int>, unsigned long, __gnu_cxx::hash<unsigned long>, google::dense_hash_map<unsigned long, int, __gnu_cxx::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<int> >::SelectKey, std::equal_to<unsigned long>, std::allocator<int> >::find (this=0x16bcc50, key=@0x7fffff7ff0f0) at /home/leinir/kdesvn/kdevplatform/util/google/sparsehash/densehashtable.h:693                        
#2  0x00007ffff1761562 in google::dense_hash_map<unsigned long, int, __gnu_cxx::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<int> >::find (this=0x16bcc50, key=@0x7fffff7ff0f0)                                        
    at /home/leinir/kdesvn/kdevplatform/util/google/dense_hash_map:190                                                                                                                                                                      
#3  0x00007ffff175fc5e in KDevelop::DUChainLock::currentThreadHasReadLock (this=0x1705ed8) at /home/leinir/kdesvn/kdevplatform/language/duchain/duchainlock.cpp:266                                                                         
#4  0x00007ffff17ade90 in KDevelop::PersistentSymbolTable::getFilteredDeclarations (this=0x7ffff1afed60, id=..., visibility=...) at /home/leinir/kdesvn/kdevplatform/language/duchain/persistentsymboltable.cpp:347                         
#5  0x00007ffff1787a23 in KDevelop::DeclarationId::getDeclaration (this=0x7fffdd30f6d0, top=0x7fffdc50fc90) at /home/leinir/kdesvn/kdevplatform/language/duchain/declarationid.cpp:134                                                      
#6  0x00007ffff17339be in KDevelop::TopDUContext::usedDeclarationForIndex (this=0x7fffdc50fc90, declarationIndex=0) at /home/leinir/kdesvn/kdevplatform/language/duchain/topducontext.cpp:1471                                              
#7  0x00007ffff175c5f4 in KDevelop::Use::usedDeclaration (this=0x7fffff800d80, topContext=0x7fffdc50fc90) at /home/leinir/kdesvn/kdevplatform/language/duchain/use.cpp:29                                                                   
#8  0x00007fffe3565a64 in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:994                                                                       
#9  0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024                                                                      
#10 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024                                                                      
#11 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024                                                                      
#12 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024                                                                      
#13 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024                                                                      
#14 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024                     

...

#17393 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024
#17394 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024
#17395 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024
#17396 0x00007fffe3565d5c in followUses (doc=0x502b0c0, r=..., name=..., lists=..., add=true) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1024
#17397 0x00007fffe3566406 in CMakeManager::addFileToTarget (this=0x1fdafc0, it=0x269f4d0, target=0x47933b0) at /home/leinir/kdesvn/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1125
#17398 0x00007fffd05884b5 in SimpleRefactoring::createNewClass (this=0x7fffd07c9310, item=0x47933b0) at /home/leinir/kdesvn/kdevelop/languages/cpp/codegen/simplerefactoring.cpp:247
#17399 0x00007fffd05885bc in SimpleRefactoring::executeNewClassAction (this=0x7fffd07c9310) at /home/leinir/kdesvn/kdevelop/languages/cpp/codegen/simplerefactoring.cpp:165         
#17400 0x00007fffd051c840 in SimpleRefactoring::qt_metacall (this=0x7fffd07c9310, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffff70c0) at /home/leinir/kdesvn/build/kdevelop/languages/cpp/moc_simplerefactoring.cpp:73
#17401 0x00007ffff4cb57cd in QMetaObject::activate (sender=0x2551b00, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x3) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3117
#17402 0x00007ffff3d84b17 in QAction::triggered (this=0x16bcc50, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#17403 0x00007ffff3d85db0 in QAction::activate (this=0x2551b00, event=<value optimized out>) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qaction.cpp:1160
#17404 0x00007ffff4158b7c in QMenuPrivate::activateCausedStack (this=0x47397e0, causedStack=..., action=0x2551b00, action_e=QAction::Trigger, self=true) at /home/leinir/kdesvn/qt-copy/src/gui/widgets/qmenu.cpp:967
#17405 0x00007ffff415e93b in QMenuPrivate::activateAction (this=0x47397e0, action=0x2551b00, action_e=4294941440, self=true) at /home/leinir/kdesvn/qt-copy/src/gui/widgets/qmenu.cpp:1060                           
#17406 0x00007ffff55017ef in KMenu::mouseReleaseEvent (this=0x7fffffff9b00, e=0x7fffffff7d60) at /home/leinir/kdesvn/kdelibs/kdeui/widgets/kmenu.cpp:456
#17407 0x00007ffff3dd7860 in QWidget::event (this=0x7fffffff9b00, event=0x7fffffff7d60) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qwidget.cpp:7521
#17408 0x00007ffff415ffbb in QMenu::event (this=0x7fffffff9b00, e=0x7fffffff7d60) at /home/leinir/kdesvn/qt-copy/src/gui/widgets/qmenu.cpp:2353       
#17409 0x00007ffff3d89f8d in QApplicationPrivate::notify_helper (this=0x14a8f10, receiver=0x7fffffff9b00, e=0x7fffffff7d60) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:4057
#17410 0x00007ffff3d9314b in QApplication::notify (this=<value optimized out>, receiver=0x7fffffff9b00, e=0x7fffffff7d60) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3759  
#17411 0x00007ffff541b7d5 in KApplication::notify (this=0x7fffffffc9d0, receiver=0x7fffffff9b00, event=0x7fffffff7d60) at /home/leinir/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:302
#17412 0x00007ffff4ca32bc in QCoreApplication::notifyInternal (this=0x7fffffffc9d0, receiver=0x7fffffff9b00, event=0x7fffffff7d60) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:606
#17413 0x00007ffff3d923f8 in QCoreApplication::sendSpontaneousEvent (receiver=0x7fffffff9b00, event=0x7fffffff7d60, alienWidget=0x0, nativeWidget=0x7fffffff9b00, buttonDown=<value optimized out>, lastMouseReceiver=...)
    at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:216                                                                                                                                 
#17414 QApplicationPrivate::sendMouseEvent (receiver=0x7fffffff9b00, event=0x7fffffff7d60, alienWidget=0x0, nativeWidget=0x7fffffff9b00, buttonDown=<value optimized out>, lastMouseReceiver=...)                         
    at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:2925                                                                                                                                                   
#17415 0x00007ffff3ded4cb in QETWidget::translateMouseEvent (this=0x7fffffff9b00, event=<value optimized out>) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication_x11.cpp:4382
#17416 0x00007ffff3debe45 in QApplication::x11ProcessEvent (this=0x7fffffffc9d0, event=0x7fffffff9750) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication_x11.cpp:3566        
#17417 0x00007ffff3e112f4 in x11EventSourceDispatch (s=0x14ac6d0, callback=0, user_data=0x0) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:146           
#17418 0x00007fffed04a0fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0                                                                                              
#17419 0x00007fffed04d8cd in ?? () from /usr/lib64/libglib-2.0.so.0
#17420 0x00007fffed04da8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#17421 0x00007ffff4cc88ef in QEventDispatcherGlib::processEvents (this=0x615050, flags=<value optimized out>) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:324
#17422 0x00007ffff3e10baf in QGuiEventDispatcherGlib::processEvents (this=0x16bcc50, flags=<value optimized out>) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#17423 0x00007ffff4ca1c52 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:149                             
#17424 0x00007ffff4ca1de5 in QEventLoop::exec (this=0x7fffffff9a80, flags=...) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:196                                             
#17425 0x00007ffff415fe37 in QMenu::exec (this=<value optimized out>, p=..., action=0x0) at /home/leinir/kdesvn/qt-copy/src/gui/widgets/qmenu.cpp:1993                                          
#17426 0x00007fffe2ea5832 in ProjectTreeView::popupContextMenu (this=0x26a6f70, pos=...) at /home/leinir/kdesvn/kdevplatform/plugins/projectmanagerview/projecttreeview.cpp:203                 
#17427 0x00007fffe2ea5a42 in ProjectTreeView::qt_metacall (this=0x26a6f70, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fffffff9e00) at /home/leinir/kdesvn/build/kdevplatform/plugins/projectmanagerview/projecttreeview.moc:75
#17428 0x00007ffff4cb57cd in QMetaObject::activate (sender=0x26a6f70, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x3) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3117
#17429 0x00007ffff3dc7632 in QWidget::customContextMenuRequested (this=0x16bcc50, _t1=<value optimized out>) at .moc/release-shared/moc_qwidget.cpp:350
#17430 0x00007ffff3dd7ce1 in QWidget::event (this=0x26a6f70, event=0x7fffffffab40) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qwidget.cpp:7683      
#17431 0x00007ffff4120cfb in QFrame::event (this=0x26a6f70, e=0x7fffffffab40) at /home/leinir/kdesvn/qt-copy/src/gui/widgets/qframe.cpp:559            
#17432 0x00007ffff4237e4d in QAbstractItemView::viewportEvent (this=0x26a6f70, event=0x7fffffffab40) at /home/leinir/kdesvn/qt-copy/src/gui/itemviews/qabstractitemview.cpp:1471
#17433 0x00007ffff426dc83 in QTreeView::viewportEvent (this=0x26a6f70, event=0x7fffffffab40) at /home/leinir/kdesvn/qt-copy/src/gui/itemviews/qtreeview.cpp:1264
#17434 0x00007ffff4ca25d8 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x26a8380, event=0x7fffffffab40) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:726
#17435 0x00007ffff3d89f5c in QApplicationPrivate::notify_helper (this=0x14a8f10, receiver=0x26a8380, e=0x7fffffffab40) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:4053                                           
#17436 0x00007ffff3d937fe in QApplication::notify (this=<value optimized out>, receiver=0x26a8380, e=0x7fffffffab40) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3846                                             
#17437 0x00007ffff541b7d5 in KApplication::notify (this=0x7fffffffc9d0, receiver=0x26a8380, event=0x7fffffffab40) at /home/leinir/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:302                                                   
#17438 0x00007ffff4ca32bc in QCoreApplication::notifyInternal (this=0x7fffffffc9d0, receiver=0x26a8380, event=0x7fffffffab40) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:606                             
#17439 0x00007ffff3ded96d in QETWidget::translateMouseEvent (this=0x15c5e70, event=<value optimized out>) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication_x11.cpp:4454
#17440 0x00007ffff3debe45 in QApplication::x11ProcessEvent (this=0x7fffffffc9d0, event=0x7fffffffc560) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qapplication_x11.cpp:3566   
#17441 0x00007ffff3e112f4 in x11EventSourceDispatch (s=0x14ac6d0, callback=0, user_data=0x0) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:146      
#17442 0x00007fffed04a0fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#17443 0x00007fffed04d8cd in ?? () from /usr/lib64/libglib-2.0.so.0                     
#17444 0x00007fffed04da8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#17445 0x00007ffff4cc88ef in QEventDispatcherGlib::processEvents (this=0x615050, flags=<value optimized out>) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:324
#17446 0x00007ffff3e10baf in QGuiEventDispatcherGlib::processEvents (this=0x16bcc50, flags=<value optimized out>) at /home/leinir/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#17447 0x00007ffff4ca1c52 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:149                             
#17448 0x00007ffff4ca1de5 in QEventLoop::exec (this=0x7fffffffc890, flags=...) at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:196                                             
#17449 0x00007ffff4ca3e6c in QCoreApplication::exec () at /home/leinir/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:888                                                               
#17450 0x0000000000407759 in main (argc=1, argv=0x7fffffffdb28) at /home/leinir/kdesvn/kdevelop/app/main.cpp:181
Comment 1 Andreas Pakulat 2009-11-15 23:44:16 UTC
This needs more information, in particular exact reproduction steps. From the backtrace it looks a bit as if there's either an infinite recursion or a binary compatiblity issue. Is this reproducable?
Comment 2 Dan Leinir Turthra Jensen 2009-11-16 10:28:05 UTC
Exact way of reproducing this crash:

1. Check out Gluon from here: http://gitorious.net/gluon
2. Open main CMakeLists.txt in the root of the checkout
3. Open the files src/gameproject/gameproject.h and cpp
4. Delete lines 79 to 163 (the implemented functions mentioned in the report)
5. Copy the definitions of those three functions from the header into the cpp file where the three functions were just removed from (adjust indentation)
6. Place cursor immediately before the l in the second loadFromFile and write GameProject::
7. Watch KDevelop crash ;)

i have just installed kdevelop systemwide, meaning it now sits nicely up against an entirely different qt and kdelibs combination than it did before (where it was against trunk), and as such binary incompatibility would seem unlikely.
Comment 3 Andreas Pakulat 2009-11-16 11:59:07 UTC
Works fine for me here. This is the loadFromFile with QUrl parameter right?
Comment 4 Dan Leinir Turthra Jensen 2009-11-16 12:43:23 UTC
It is indeed. That is really quite strange. i have the crash with two different versions of kdelibs, kdebase and qt.
Comment 5 Andrew Crouthamel 2018-09-20 03:19:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-10-21 04:26:23 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!