From kdevelop-devel Thu Feb 09 04:48:01 2006 From: "Steven T. Hatton" Date: Thu, 09 Feb 2006 04:48:01 +0000 To: kdevelop-devel Subject: Code completion (still) crashes new class dialog Message-Id: <200602082348.01534.hattons () globalsymmetry ! com> X-MARC-Message: https://marc.info/?l=kdevelop-devel&m=113946063906761 For the past few months I've been off doing even more esoteric things than learning C++ using SVN builds of Kdevelop. One of my projects involved manipulating a lot of data, so I decided to write some code to support it. That got me back to using Kdevelop. It may simply be a question of my not building correctly, but when I build the Qt4.1 PCS database and enable code completion, the new class creation tool crashes Kdevelop with the backtrace shown below. The crash happens as soon as I try to enter the name of a base class in the "Base class" field. Am I doing something wrong? Here's how I'm building. Note the db-4.1: #!/bin/bash ######################################### export SOURCE_HOME=/download/org/kdevelop/repository/root/kdevelop export BUILD_HOME=/download/org/kdevelop/repository/root/build . ~/bin/functions.sh # waitsound() goodsound() and badsound() export KDEDIR=/opt/kde3 export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH export LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LIBRARY_PATH export PATH=$KDEDIR/bin:$PATH export KDELIBS_DOCS=$KDEDIR/share/doc/HTML/en/kdelibs-apidocs export KDEV_OPTS=" --enable-debug=full\ --disable-pascal\ --disable-ada\ --disable-perl\ --disable-fortran\ --disable-haskell\ --disable-java\ --disable-php\ --disable-ruby\ --disable-sql\ --disable-antproject\ --disable-clearcase\ --disable-perforce\ --with-db-includedir=/usr/include/db41\ --with-db-libdir=/usr/lib\ --with-db-lib=db-4.1\ " pushd $SOURCE_HOME gcc --version echo "--------- CONFIGURATION ----------" echo -e "\$SOURCE_HOME=$SOURCE_HOME" echo -e "\$KDEDIR=$KDEDIR" echo -e "\$QTDIR=$QTDIR" echo -e "\$KDEV_OPTS=$KDEV_OPTS" echo -e "\$CXXFLAGS=$CXXFLAGS" echo -e "\$CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH//:/'\\''\n':}" echo "----------------------------------" function kdevelop-fail() { badsound && exit 1; } echo -e "To run svn update enter 'y'." && read KDEVELOP_UPDATE test "$KDEVELOP_UPDATE" != "y" || svn up || kdevelop-fail echo -e "To make Makefile.cvs enter 'y'." && read KDEVELOP_MAKECVS test "$KDEVELOP_MAKECVS" != "y" ||\ unsermake -f Makefile.cvs && waitsound || kdevelop-fail pushd $BUILD_HOME echo -e "To configure enter 'y'." && read KDEVELOP_CONFIGURE test "$KDEVELOP_CONFIGURE" != "y" ||\ $SOURCE_HOME/configure $KDEV_OPTS && waitsound || kdevelop-fail unsermake -k -j16 && waitsound || kdevelop-fail su -c'unsermake install' ###################################### gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --------- CONFIGURATION ---------- $SOURCE_HOME=/download/org/kdevelop/repository/root/kdevelop $KDEDIR=/opt/kde3 $QTDIR=/usr/lib/qt3 $KDEV_OPTS= --enable-debug=full --disable-pascal --disable-ada --disable-perl --disable-fortran --disable-haskell --disable-java --disable-php --disable-ruby --disable-sql --disable-antproject --disable-clearcase --disable-perforce --with-db-includedir=/usr/include/db41 --with-db-libdir=/usr/lib --with-db-lib=db-4.1 $CXXFLAGS= $CPLUS_INCLUDE_PATH='\'' ':/opt/kde3/include'\'' ':/home/hattons/opt/com/sun/jdk1.5.0_04/include'\'' ':/usr/X11/include'\'' ':/home/hattons/opt/org/osg/include'\'' ':/usr/local/include'\'' #################################### The backtrace: Using host libthread_db library "/lib/tls/libthread_db.so.1". `system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols. [Thread debugging using libthread_db enabled] [New Thread 1106213024 (LWP 30048)] [New Thread 1122876336 (LWP 30076)] [Thread debugging using libthread_db enabled] [New Thread 1106213024 (LWP 30048)] [New Thread 1122876336 (LWP 30076)] [Thread debugging using libthread_db enabled] [New Thread 1106213024 (LWP 30048)] [New Thread 1122876336 (LWP 30076)] [KCrash handler] #5 0x42810d19 in Catalog::query (this=0x8d11dc0, args=@0xbfc813bc) at /download/org/kdevelop/repository/root/kdevelop/lib/catalog/catalog.cpp:415 #6 0x427f1a8a in StoreConverter::PCSClassToCodeModel (this=0xbfc8155c, className=@0xbfc818b8) at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/storeconverter.cpp:40 #7 0x427c519e in CppNewClassDialog::parsePCSClass (this=0xbfc8260c, clName=@0xbfc818b8, inheritance=@0xbfc818b4) at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/cppnewclassdlg.cpp:1018 #8 0x427c7055 in CppNewClassDialog::parseClass (this=0xbfc8260c, clName=@0xbfc81a20, inheritance=@0xbfc81a1c) at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/cppnewclassdlg.cpp:862 #9 0x427c8a5e in CppNewClassDialog::currBaseNameChanged (this=0xbfc8260c, text=@0x894ffe8) at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/cppnewclassdlg.cpp:574 #10 0x427b7d23 in CppNewClassDialogBase::qt_invoke (this=0xbfc8260c, _id=60, _o=0xbfc81b14) at cppnewclassdlgbase.moc:228 #11 0x427be44f in CppNewClassDialog::qt_invoke (this=0xbfc8260c, _id=60, _o=0xbfc81b14) at cppnewclassdlg.moc:77 #12 0x415b59ac in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #13 0x415b6351 in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #14 0x41908a60 in QLineEdit::textChanged () from /usr/lib/qt3/lib/libqt-mt.so.3 #15 0x41681ff5 in QLineEditPrivate::finishChange () from /usr/lib/qt3/lib/libqt-mt.so.3 #16 0x416843ee in QLineEdit::insert () from /usr/lib/qt3/lib/libqt-mt.so.3 #17 0x41684f73 in QLineEdit::keyPressEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #18 0x40f78c44 in KLineEdit::keyPressEvent () from /opt/kde3/lib/libkdeui.so.4 #19 0x415ef3f9 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3 #20 0x416840f7 in QLineEdit::event () from /usr/lib/qt3/lib/libqt-mt.so.3 #21 0x41555d41 in QApplication::internalNotify () from /usr/lib/qt3/lib/libqt-mt.so.3 #22 0x41556bbf in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3 #23 0x411d08be in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4 #24 0x414ea0dc in QETWidget::translateKeyEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #25 0x414efa05 in QApplication::x11ProcessEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #26 0x41503bea in QEventLoop::processEvents () from /usr/lib/qt3/lib/libqt-mt.so.3 #27 0x4156cc53 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3 #28 0x415556bf in QApplication::enter_loop () from /usr/lib/qt3/lib/libqt-mt.so.3 #29 0x4173f4fe in QDialog::exec () from /usr/lib/qt3/lib/libqt-mt.so.3 #30 0x42757dcd in CppSupportPart::slotNewClass (this=0x88b3cc0) at /download/org/kdevelop/repository/root/kdevelop/languages/cpp/cppsupportpart.cpp:987 #31 0x4276680f in CppSupportPart::qt_invoke (this=0x88b3cc0, _id=22, _o=0xbfc828a8) at cppsupportpart.moc:223 #32 0x415b5a49 in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #33 0x415b5ef0 in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #34 0x40e6b239 in KAction::activated () from /opt/kde3/lib/libkdeui.so.4 #35 0x40ea5161 in KAction::slotActivated () from /opt/kde3/lib/libkdeui.so.4 #36 0x40ea50fd in KAction::slotButtonClicked () from /opt/kde3/lib/libkdeui.so.4 #37 0x40ec44b6 in KAction::qt_invoke () from /opt/kde3/lib/libkdeui.so.4 #38 0x415b5a49 in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #39 0x40eacf7f in KToolBarButton::buttonClicked () from /opt/kde3/lib/libkdeui.so.4 #40 0x40ead180 in KToolBarButton::mouseReleaseEvent () from /opt/kde3/lib/libkdeui.so.4 #41 0x415ef708 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3 #42 0x40f098e1 in KToolBarButton::event () from /opt/kde3/lib/libkdeui.so.4 #43 0x41555d41 in QApplication::internalNotify () from /usr/lib/qt3/lib/libqt-mt.so.3 #44 0x41556ea8 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3 #45 0x411d08be in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4 #46 0x414f0cd8 in QETWidget::translateMouseEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #47 0x414efafb in QApplication::x11ProcessEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #48 0x41503bea in QEventLoop::processEvents () from /usr/lib/qt3/lib/libqt-mt.so.3 #49 0x4156cc39 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3 #50 0x4156cb36 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3 #51 0x4155568f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3 #52 0x0804ec70 in main (argc=1, argv=0xbfc834b4) at /download/org/kdevelop/repository/root/kdevelop/src/main.cpp:145 _______________________________________________ KDevelop-devel mailing list KDevelop-devel@barney.cs.uni-potsdam.de http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel