[crash][regression] cmake project load

Manuel Breugelmans mbr.nxi at gmail.com
Mon Jan 5 15:39:41 UTC 2009


Hi,

KDevelop aborts with an index out of range assert in QList, this used to work 
about a week. To reproduce this load the toy project at 
kdevelop/plugins/xtest/examples/qtest_cmake/kde4_single_case.



yyy "MATCHES" false                                                                                                                                          
yyy "AND" true                                                                                                                                               
yyy "QT_GLIB_LIBRARY" false                                                                                                                                  
yyy "MATCHES" false                                                                                                                                          
yyy "MATCHES" false                                                                                                                                          
yyy "STREQUAL" false                                                                                                                                         
ASSERT failure in QList<T>::operator[]: "index out of range", file 
/usr/include/QtCore/qlist.h, line 391                                                     

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xae28ab90 (LWP 19607)]
0xffffe430 in __kernel_vsyscall ()          
(gdb) bt                                    
#0  0xffffe430 in __kernel_vsyscall ()      
#1  0xb63e6900 in raise () from /lib/libc.so.6
#2  0xb63e8238 in abort () from /lib/libc.so.6
#3  0xb6fab9b5 in qt_message_output (msgType=QtFatalMsg, 
    buf=0xae28658c "ASSERT failure in QList<T>::operator[]: \"index out of 
range\", file /usr/include/QtCore/qlist.h, line 391") at 
global/qglobal.cpp:2102
#4  0xb6faba92 in qFatal (msg=0xb70f5048 "ASSERT failure in %s: \"%s\", file 
%s, line %d") at global/qglobal.cpp:2303                                      
#5  0xb6fabaec in qt_assert_x (where=0xafbd5150 "QList<T>::operator[]", 
what=0xafbd513d "index out of range",                                              
    file=0xafbd5121 "/usr/include/QtCore/qlist.h", line=391) at 
global/qglobal.cpp:1880                                                                    
#6  0xafbc1b2f in CMakeProjectVisitor::visit (this=0xae289e60, pack=0x8ac4660) 
at /usr/include/QtCore/qlist.h:391                                          
#7  0xafb9ccb8 in FindPackageAst::accept (this=0x8ac4660, visitor=0xae289e60) 
at /home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeast.h:353    
#8  0xafbbdd2b in CMakeProjectVisitor::walk (this=0xae289e60, fc=@0xc9e7f88, 
line=4)                                                                       
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1902                                                                
#9  0xafbc4d34 in CMakeProjectVisitor::visit (this=0xae289e60, 
ifast=0xc9e7f80)                                                                            
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1107                                                                
#10 0xafb9ce18 in IfAst::accept (this=0xc9e7f80, visitor=0xae289e60) at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeast.h:450             
#11 0xafbbdd2b in CMakeProjectVisitor::walk (this=0xae289e60, fc=@0xae288d88, 
line=0)                                                                      
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1902                                                                
#12 0xafbc2de0 in CMakeProjectVisitor::visit (this=0xae289e60, pack=0xc8aec48)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:553
#13 0xafb9ccb8 in FindPackageAst::accept (this=0xc8aec48, visitor=0xae289e60) 
at /home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeast.h:353
#14 0xafbbdd2b in CMakeProjectVisitor::walk (this=0xae289e60, fc=@0xb150cc0, 
line=17)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1902
#15 0xafbc4d34 in CMakeProjectVisitor::visit (this=0xae289e60, 
ifast=0xb150cb8)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1107
#16 0xafb9ce18 in IfAst::accept (this=0xb150cb8, visitor=0xae289e60) at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeast.h:450
#17 0xafbbdd2b in CMakeProjectVisitor::walk (this=0xae289e60, fc=@0xae2893c8, 
line=6)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1902
#18 0xafbc2de0 in CMakeProjectVisitor::visit (this=0xae289e60, pack=0xb7c8b98)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:553
#19 0xafb9ccb8 in FindPackageAst::accept (this=0xb7c8b98, visitor=0xae289e60) 
at /home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeast.h:353
#20 0xafbbdd2b in CMakeProjectVisitor::walk (this=0xae289e60, fc=@0x8c2f480, 
line=37)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1902
#21 0xafbc4d34 in CMakeProjectVisitor::visit (this=0xae289e60, 
ifast=0x8c2f478)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1107
#22 0xafb9ce18 in IfAst::accept (this=0x8c2f478, visitor=0xae289e60) at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeast.h:450
#23 0xafbbdd2b in CMakeProjectVisitor::walk (this=0xae289e60, fc=@0xae289a08, 
line=29)
---Type <return> to continue, or q <return> to quit---
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1902
#24 0xafbc2de0 in CMakeProjectVisitor::visit (this=0xae289e60, pack=0x95c1ba8)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:553
#25 0xafb9ccb8 in FindPackageAst::accept (this=0x95c1ba8, visitor=0xae289e60) 
at /home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeast.h:353
#26 0xafbbdd2b in CMakeProjectVisitor::walk (this=0xae289e60, fc=@0xae28a1f0, 
line=0)
    at 
/home/nix/KdeDev/kdevelop/plugins/managers/cmake/parser/cmakeprojectvisitor.cpp:1902
#27 0xafbf221b in CMakeProjectManager::parse (this=0x88ed890, item=0xc1b14d0) 
at /home/nix/KdeDev/kdevelop/plugins/managers/cmake/cmakemanager.cpp:482
#28 0xb610da30 in KDevelop::ImportProjectJobPrivate::import (this=0xccace20, 
folder=0xc1b14d0)
    at /home/nix/KdeDev/kdevplatform/project/importprojectjob.cpp:47
#29 0xb610d524 in QtConcurrent::VoidStoredMemberFunctionPointerCall1<void, 
KDevelop::ImportProjectJobPrivate, KDevelop::ProjectFolderItem*, 
KDevelop::ProjectFolderItem*>::runFunctor (this=0x9d60260) at 
/usr/include/QtCore/qtconcurrentstoredfunctioncall.h:422
#30 0xb610d84e in QtConcurrent::RunFunctionTask<void>::run (this=0x9d60260) at 
/usr/include/QtCore/qtconcurrentrunbase.h:119
#31 0xb6fa99b0 in QThreadPoolThread::run (this=0xd2a4880) at 
concurrent/qthreadpool.cpp:101
#32 0xb6fb393e in QThreadPrivate::start (arg=0xd2a4880) at 
thread/qthread_unix.cpp:185
#33 0xb6f53175 in start_thread () from /lib/libpthread.so.0
#34 0xb6489dce in clone () from /lib/libc.so.6





More information about the KDevelop-devel mailing list