[Bug 56726] Crash creating new class or file

Steven T. Hatton hattons at globalsymmetry.com
Wed Apr 2 18:08:05 UTC 2003


On Wednesday 02 April 2003 07:56 am, jalal wrote:
> Steven T.Hatton wrote:
> > I don't know if anyone has tested this, but it's pretty much a
> > show-stopper for me.  Trying to work within the KDevelop framework
> > without the ability to auto generate the basic source and header files
> > that fit is too much of a challenge for a person at my stage of learning.
> > I'll have to drop back to 2.5.1 until this is fixed.  I'm will to be a
> > crash dummy for some things, but this is more than I can handle.  I'm
> > really not trying to pester anybody by this addition, I'm just raising a
> > flag regarding the severity of this bug from the beta tester's POV.
> >
> > I'd be more than happy to learn that the problem is on my end, and not in
> > the code base. If the class wizard works for someone else, please let me
> > know so I can trouble shoot it from this end.
>
> I can't get this to crash here.

I'm using the latest CVS as of this morning.  Are you working with a recent 
build? 

I'm using QT 3.1.2 form my own build, and I'm running my own build of KDE 
3.1.1 which came from running konstruct.  I built Gideon against a CVS HEAD 
of KDE.  I'm currently rebuilding the kdelibs from the 3.1.1 tarball because 
I'm getting the wonderful "checking if UIC has KDE plugins available..." 
error.  

If you're wondering why I have 3 kde3 builds, and two QT builds, it's because 
there seems to be a problem with the SuSE QT 3.1.2 rpm which breaks my fonts. 
And, well, that means the SuSE KDE 3.1.1 won't support my builds because I'm 
using a different QT than they provided.  I already had the KDE from CVS, so 
I built Gideon against that.  For a while that had been working. But now...

I just started Gideon, created a C++ KDE Application Framework project, 
clicked the new class icon, put in the name of the class, and submitted the 
form.  It crashed immediately with this backtrace:

[New Thread 1024 (LWP 12278)]
[New Thread 2049 (LWP 31675)]
[New Thread 1026 (LWP 31676)]
0x417d7899 in wait4 () from /lib/libc.so.6
#0  0x417d7899 in wait4 () from /lib/libc.so.6
#1  0x41852cd0 in __DTOR_END__ () from /lib/libc.so.6
#2  0x41630983 in waitpid () from /lib/libpthread.so.0
#3  0x40c0f007 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3-cvs/lib/libkdecore.so.4
#4  0x4162ea7a in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x412884ad in QString::QString(QString const&) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#7  0x404902b7 in operator+ (s1=@0xbfffd2c0, s2=0x8a656e0 "h\202ëA")
    at /usr/lib/qt3/include/qstring.h:936
#8  0x405122eb in FileTemplate::fullPathForName(KDevPlugin*, QString const&, 
FileTemplate::Policy) (part=0x8a4f690, name=@0xbfffd4c0, p=Default)
    at ../../../kdevelop/lib/util/filetemplate.cpp:99
#9  0x40511b11 in FileTemplate::read(KDevPlugin*, QString const&, 
FileTemplate::Policy) (part=0x8a4f690, name=@0xbfffd4c0, p=Default)
    at ../../../kdevelop/lib/util/filetemplate.cpp:42
#10 0x41d678de in CppNewClassDialog::ClassGenerator::gen_implementation() (
    this=0xbfffd5a0)
    at ../../../kdevelop/parts/cppsupport/cppnewclassdlg.cpp:1241
#11 0x41d64ea1 in CppNewClassDialog::ClassGenerator::generate() (
    this=0xbfffd5a0)
    at ../../../kdevelop/parts/cppsupport/cppnewclassdlg.cpp:1019
#12 0x41d6057b in CppNewClassDialog::accept() (this=0xbfffdea0)
    at ../../../kdevelop/parts/cppsupport/cppnewclassdlg.cpp:294
#13 0x4131179c in QDialog::qt_invoke(int, QUObject*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#14 0x41de3e2f in CppNewClassDialogBase::qt_invoke(int, QUObject*) (
    this=0xbfffdea0, _id=47, _o=0xbfffd700) at cppnewclassdlgbase.moc:255
#15 0x41d6b6ae in CppNewClassDialog::qt_invoke(int, QUObject*) (
    this=0xbfffdea0, _id=47, _o=0xbfffd700) at cppnewclassdlg.moc:77
#16 0x40fb07ab in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#17 0x40fb0607 in QObject::activate_signal(int) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#18 0x412f3119 in QButton::clicked() () from /usr/local/qt/lib/libqt-mt.so.3
#19 0x410428fc in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#20 0x40fea293 in QWidget::event(QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#21 0x40f49362 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#22 0x40f48b3c in QApplication::notify(QObject*, QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#23 0x40b7ac4f in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3-cvs/lib/libkdecore.so.4
#24 0x40ee867f in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#25 0x40ee5ec4 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#26 0x40efc10d in QEventLoop::processEvents(unsigned) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#27 0x40f5f1fb in QEventLoop::enterLoop() ()
   from /usr/local/qt/lib/libqt-mt.so.3
#28 0x40f49650 in QApplication::enter_loop() ()
   from /usr/local/qt/lib/libqt-mt.so.3
#29 0x411338e7 in QDialog::exec() () from /usr/local/qt/lib/libqt-mt.so.3
#30 0x41d56dcb in CppSupportPart::slotNewClass() (this=0x8a4f690)
    at ../../../kdevelop/parts/cppsupport/cppsupportpart.cpp:616
#31 0x41d59199 in CppSupportPart::qt_invoke(int, QUObject*) (this=0x8a4f690, 
    _id=13, _o=0xbfffe140) at cppsupportpart.moc:185
#32 0x40fb07ab in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#33 0x40fb0607 in QObject::activate_signal(int) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#34 0x40990de6 in KAction::activated() () from /opt/kde3-cvs/lib/libkdeui.so.4
#35 0x409903dc in KAction::slotActivated() ()
   from /opt/kde3-cvs/lib/libkdeui.so.4
#36 0x40990fa0 in KAction::qt_invoke(int, QUObject*) ()
   from /opt/kde3-cvs/lib/libkdeui.so.4
#37 0x40fb0719 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#38 0x40fb0607 in QObject::activate_signal(int) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#39 0x412f3119 in QButton::clicked() () from /usr/local/qt/lib/libqt-mt.so.3
#40 0x410428fc in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#41 0x40fea293 in QWidget::event(QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#42 0x40f49362 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#43 0x40f48b3c in QApplication::notify(QObject*, QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#44 0x40b7ac4f in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3-cvs/lib/libkdecore.so.4
#45 0x40ee867f in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#46 0x40ee5ec4 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#47 0x40efc10d in QEventLoop::processEvents(unsigned) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#48 0x40f5f1fb in QEventLoop::enterLoop() ()
   from /usr/local/qt/lib/libqt-mt.so.3
#49 0x40f5f0a4 in QEventLoop::exec() () from /usr/local/qt/lib/libqt-mt.so.3
#50 0x40f495f0 in QApplication::exec() () from /usr/local/qt/lib/libqt-mt.so.3
#51 0x08069970 in main (argc=1, argv=0xbfffeb94)
    at ../../kdevelop/src/main.cpp:85
#52 0x417524a2 in __libc_start_main () from /lib/libc.so.6


> cheers
> jalal





More information about the KDevelop-devel mailing list