KDevelop crashes on code completion

Steven T. Hatton hattons at globalsymmetry.com
Thu Aug 25 19:41:05 UTC 2005


On Thursday 25 August 2005 13:21, Andreas Pakulat wrote:
> On 25.Aug 2005 - 08:11:01, Steven T. Hatton wrote:
> > I hate to go on here, talking to myself, but I would like to find a
> > resolution to this problem.  If anybody else is having these lockup
> > problems please speak up.
>
> I do see a  memory leak here, if I activate code completion in kdevelop.
> kdevelop eats memory, having 200Megs about 30 seconds after it started
> to look for something in the code completion db.
>
> Using svn from Tuesday. This is on debian unstable, with kdelibs4 from
> experimental - the 3.4.1 version. Not using gcc-4.0 but gcc-3.3.
>
> Andreas

Things were going well until I tried to create a subclass of QTextDocument in 
the class creation dialog.  As soon as I started typing the class name in the 
base class field:

Loaded symbols for /opt/kde3/lib/libkatepartinterfaces.so.0
0x41dbebd0 in _int_malloc () from /lib/tls/libc.so.6
(gdb) where
#0  0x41dbebd0 in _int_malloc () from /lib/tls/libc.so.6
#1  0x41dbfcbd in _int_realloc () from /lib/tls/libc.so.6
#2  0x41dc0ba1 in realloc () from /lib/tls/libc.so.6
#3  0x428016bc in __os_urealloc () from /usr/lib/tls/libdb-4.1.so
#4  0x427c31d7 in __db_retcopy () from /usr/lib/tls/libdb-4.1.so
#5  0x427c32e9 in __db_ret () from /usr/lib/tls/libdb-4.1.so
#6  0x427b1768 in __db_c_get () from /usr/lib/tls/libdb-4.1.so
#7  0x427b944e in __db_join () from /usr/lib/tls/libdb-4.1.so
#8  0x4273dd14 in Catalog::query (this=0x8939a08, args=@0xbfff9f50)
    
at /download/org/kdevelop/repository/root/kdevelop/lib/catalog/catalog.cpp:4
35
#9  0x426df22d in CodeInformationRepository::query (this=0x1223e9e8, 
    args=@0xbfff9f50)
    
at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/codeinforma
tionrepository.cpp:65
#10 0x426dfa23 in CodeInformationRepository::getTagsInScope (this=0x90f5370, 
    scope=@0xbfffa030)
    
at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/codeinforma
tionrepository.cpp:118
#11 0x42720200 in StoreConverter::parseClass (this=0xbfffa2b8, 
    classTag=@0x91d7118)
    
at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/storeconver
ter.cpp:73
#12 0x42720a9e in StoreConverter::PCSClassToCodeModel (this=0xbfffa2b8, 
    className=@0xbfffa6c0)
    
at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/storeconver
ter.cpp:56
#13 0x426f8bb8 in CppNewClassDialog::parsePCSClass (this=0xbfffb780, clName=
      {static null = {static null = <same as static member of an already seen 
ty
pe>, d = 0x80570c0, static shared_null = 0x80570c0}, d = 0x8f712b0, static 
share
d_null = 0x80570c0}, inheritance=
      {static null = {static null = <same as static member of an already seen 
ty
pe>, d = 0x80570c0, static shared_null = 0x80570c0}, d = 0x8f55c60, static 
share
d_null = 0x80570c0})
    
at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/cppnewclass
dlg.cpp:1018
#14 0x426fb48d in CppNewClassDialog::parseClass (this=0xbfffb780, clName=
      {static null = {static null = <same as static member of an already seen 
type>, d = 0x80570c0, static shared_null = 0x80570c0}, d = 0x91709b8, static 
share
d_null = 0x80570c0}, inheritance=
      {static null = {static null = <same as static member of an already seen 
ty
pe>, d = 0x80570c0, static shared_null = 0x80570c0}, d = 0x8f55c60, static 
share
d_null = 0x80570c0})
    
at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/cppnewclass
dlg.cpp:862
#15 0x426fbb16 in CppNewClassDialog::currBaseNameChanged (this=0xbfffb780, 
    text=@0x92720d8)
    
at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/cppnewclass
dlg.cpp:574
#16 0x426eacb6 in CppNewClassDialogBase::qt_invoke (this=0xbfffb780, _id=60, 
    _o=0xbfffa900) at cppnewclassdlgbase.moc:228
#17 0x426eb703 in CppNewClassDialog::qt_invoke (this=0xbfffb780, _id=60

-- 
Regards,
Steven




More information about the KDevelop-devel mailing list