Bug 76233 - C++ completion crashes kdevelop
Summary: C++ completion crashes kdevelop
Status: RESOLVED DUPLICATE of bug 74664
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-27 00:39 UTC by Grzegorz Jaskiewicz
Modified: 2004-02-27 01:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
bzipped valgrind log, (caution : 111MB after unpacking!) (68.15 KB, application/x-bzip2)
2004-02-27 01:48 UTC, Grzegorz Jaskiewicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Jaskiewicz 2004-02-27 00:39:58 UTC
Version:           3.0.1 CVS 2004-02-25 (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          debian unstable g++ 
OS:          Linux

Open some C++ project, go to file
let's say we have class p0 with method zupa.
type in:
p0.(ctrl+space) and kaboom :-)

I'll run valgrind over it in a minute with options:
valgrind --num-callers=14 --logfile=kmail-valgrind.log --error-limit=no kdevelop --nofork

and attach output

backtrace follows:

[New Thread 16384 (LWP 6435)]
[New Thread 32769 (LWP 6452)]
[New Thread 16386 (LWP 6453)]
0x419f7bfb in waitpid () from /lib/libpthread.so.0
#0  0x419f7bfb in waitpid () from /lib/libpthread.so.0
#1  0x41010fe0 in __JCR_LIST__ () from /opt/kde/lib/libkdecore.so.4
#2  0x00000014 in ?? ()
#3  0x40f4d920 in KCrash::defaultCrashHandler(int) (sig=11) at kcrash.cpp:246
#4  0x419f6815 in __pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x424f4d0f in GCatalog<Tag>::query(QValueList<QPair<QCString, QVariant> > const&) (this=0x9670790, args=@0xbfffebd0) at gcatalog.tcc:365
#7  0x424f3606 in CodeInformationRepository::query(QValueList<QPair<QCString, QVariant> > const&) (this=0x96e2da8, args=@0xbfffebd0)
    at codeinformationrepository.cpp:64
#8  0x424d7c32 in CppCodeCompletion::computeCompletionEntryList(QValueList<KTextEditor::CompletionEntry>&, QStringList const&, bool) (this=0x96b31b0, 
    entryList=@0xbfffee20, type=@0xbfffec30, isInstance=true)
    at cppcodecompletion.cpp:1466
#9  0x424d86d4 in CppCodeCompletion::computeCompletionEntryList(QValueList<KTextEditor::CompletionEntry>&, KSharedPtr<ClassModel>, bool) (this=0x96b31b0, 
    entryList=@0xbfffee20, klass={ptr = 0x99b54b8}, isInstance=true)
    at cppcodecompletion.cpp:1545
#10 0x424d7ad6 in CppCodeCompletion::computeCompletionEntryList(QValueList<KTextEditor::CompletionEntry>&, QStringList const&, bool) (this=0x96b31b0, 
    entryList=@0xbfffee20, type=@0xbffff040, isInstance=true)
    at cppcodecompletion.cpp:1458
#11 0x424d53cf in CppCodeCompletion::completeText() (this=0x96b31b0)
    at cppcodecompletion.cpp:932
#12 0x424ba9a3 in CppSupportPart::slotCompleteText() (this=0x8e4a898)
    at cppsupportpart.cpp:784
#13 0x424c0e17 in CppSupportPart::qt_invoke(int, QUObject*) (this=0x8e4a898, 
    _id=20, _o=0xbffff190) at cppsupportpart.moc:220
#14 0x413ae7e1 in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x8e4c6b8, clist=0x8341ea0, o=0xbffff190) at kernel/qobject.cpp:2359
#15 0x413ae681 in QObject::activate_signal(int) (this=0x8e4c6b8, signal=2)
    at kernel/qobject.cpp:2328
#16 0x40c5118a in KAction::activated() (this=0x8e4c6b8) at kaction.moc:157
#17 0x40c50b25 in KAction::slotActivated() (this=0x8e4c6b8) at kaction.cpp:1054
#18 0x40c5148b in KAction::qt_invoke(int, QUObject*) (this=0x8e4c6b8, _id=14, 
    _o=0xbffff290) at kaction.moc:181
#19 0x413ae7e1 in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x8347998, clist=0xa031cc0, o=0xbffff290) at kernel/qobject.cpp:2359
#20 0x413ae681 in QObject::activate_signal(int) (this=0x8347998, signal=2)
    at kernel/qobject.cpp:2328
#21 0x40f42ede in KAccelPrivate::menuItemActivated() (this=0x8347998)
    at kaccelprivate.moc:110
#22 0x40f4126c in KAccelPrivate::eventFilter(QObject*, QEvent*) (
    this=0x8347998, pEvent=0xbffff700) at kaccel.cpp:324
#23 0x413ac0a5 in QObject::activate_filters(QEvent*) (this=0x81418a8, 
    e=0xbffff700) at kernel/qobject.cpp:902
#24 0x413abf23 in QObject::event(QEvent*) (this=0x81418a8, e=0xbffff700)
    at kernel/qobject.cpp:735
#25 0x413e695d in QWidget::event(QEvent*) (this=0x81418a8, e=0xbffff700)
    at kernel/qwidget.cpp:4638
#26 0x414ae802 in QMainWindow::event(QEvent*) (this=0x81418a8, e=0xbffff700)
    at widgets/qmainwindow.cpp:1686
#27 0x405e49b8 in KMdiMainFrm::event(QEvent*) (this=0x81418a8, e=0xbffff700)
    at kmdimainfrm.cpp:1009
#28 0x4134bb73 in QApplication::internalNotify(QObject*, QEvent*) (
    this=0xbffffc30, receiver=0x81418a8, e=0xbffff700)
    at kernel/qapplication.cpp:2614
#29 0x4134b203 in QApplication::notify(QObject*, QEvent*) (this=0xbffffc30, 
    receiver=0x95d57a8, e=0xbffff700) at kernel/qapplication.cpp:2371
#30 0x40ec2c3c in KApplication::notify(QObject*, QEvent*) (this=0xbffffc30, 
    receiver=0x95d57a8, event=0xbffff700) at kapplication.cpp:506
#31 0x4016effe in QApplication::sendEvent(QObject*, QEvent*) (
    receiver=0x95d57a8, event=0xbffff700) at qapplication.h:491
#32 0x40f3feb9 in KAccelEventHandler::x11Event(_XEvent*) (this=0x8156870, 
    pEvent=0xbffffac0) at kaccel.cpp:114
#33 0x40ed33a0 in KAppX11HackWidget::publicx11Event(_XEvent*) (this=0x8156870, 
    e=0xbffffac0) at kapplication.cpp:1527
#34 0x40ec72fc in KApplication::x11EventFilter(_XEvent*) (this=0xbffffc30, 
    _event=0xbffffac0) at kapplication.cpp:1615
#35 0x412ce495 in qt_x11EventFilter (ev=0xbffffac0)
    at kernel/qapplication_x11.cpp:382
#36 0x412d7917 in QApplication::x11ProcessEvent(_XEvent*) (this=0xbffffc30, 
    event=0xbffffac0) at kernel/qapplication_x11.cpp:3254
#37 0x412f2cab in QEventLoop::processEvents(unsigned) (this=0x80ef4a0, flags=4)
    at kernel/qeventloop_x11.cpp:192
#38 0x413600d1 in QEventLoop::enterLoop() (this=0x80ef4a0)
    at kernel/qeventloop.cpp:198
#39 0x4135ffea in QEventLoop::exec() (this=0x80ef4a0)
    at kernel/qeventloop.cpp:145
#40 0x4134bcdf in QApplication::exec() (this=0xbffffc30)
    at kernel/qapplication.cpp:2737
#41 0x08066c1b in main (argc=1, argv=0xbffffda4) at main.cpp:128
Comment 1 Jens Dagerbo 2004-02-27 00:58:12 UTC
dupe again.

*** This bug has been marked as a duplicate of 74664 ***
Comment 2 Grzegorz Jaskiewicz 2004-02-27 01:48:27 UTC
Created attachment 4910 [details]
bzipped valgrind log, (caution : 111MB after unpacking!)

just runned it with valgrind though, my dbd version is 4.2
gj@ysl-dev:~$ ldd /opt/kde/lib/libkdevcatalog.so
	libdb-4.2.so => /usr/lib/libdb-4.2.so (0x40024000)
	libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x400fa000)
	libm.so.6 => /lib/libm.so.6 (0x401b4000)
	libc.so.6 => /lib/libc.so.6 (0x401d6000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40309000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000000
I guess configure script should pickup right one, cos this one is obvioulsy not
the one application was developed for.
Comment 3 Grzegorz Jaskiewicz 2004-02-27 01:54:23 UTC
sorry folks about long attachment, bzip2 -d file.bz2|grep -v pthread>kdevelop-valgrind.log should help ;)