Bug 56726 - Crash creating new class or file
Summary: Crash creating new class or file
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: file create (show other bugs)
Version: 3.0.0a4
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-01 22:24 UTC by Steven T. Hatton
Modified: 2003-07-13 15:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven T. Hatton 2003-04-01 22:24:07 UTC
Version:           3.0.0a4 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2 
OS:          Linux

Plugins are whatever the default is.

I had a crash attempting to create a file in a project.  I didn't catch that backtrace.  I restarted Gideon and attempted to create the same file using the Class wizard.  When I submitted the form, Gideon crashed.

Here's the dump:

[New Thread 1024 (LWP 10987)]
[New Thread 2049 (LWP 11037)]
[New Thread 1026 (LWP 11038)]
0x417cc899 in wait4 () from /lib/libc.so.6
#0  0x417cc899 in wait4 () from /lib/libc.so.6
#1  0x41847cd0 in __DTOR_END__ () from /lib/libc.so.6
#2  0x41625983 in waitpid () from /lib/libpthread.so.0
#3  0x40c0f007 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3-cvs/lib/libkdecore.so.4
#4  0x41623a7a in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x4127d4ad in QString::QString(QString const&) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#7  0x404902b7 in operator+ (s1=@0xbfffcf70,
    s2=0x863cc38 "h2
Comment 1 Steven T. Hatton 2003-04-02 13:31:42 UTC
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. 
Comment 2 Caleb Tennis 2003-04-02 18:08:10 UTC
Does the following patch help? (on /lib/util/filetemplate.cpp) 
 
Index: filetemplate.cpp 
=================================================================== 
RCS file: /home/kde/kdevelop/lib/util/filetemplate.cpp,v 
retrieving revision 1.10 
diff -u -3 -p -r1.10 filetemplate.cpp 
--- filetemplate.cpp    25 Feb 2003 10:46:31 -0000      1.10 
+++ filetemplate.cpp    2 Apr 2003 16:05:59 -0000 
@@ -96,7 +96,7 @@ QString FileTemplate::fullPathForName(KD 
     if (p!=Default) return name; 
 
     // first try project-specific 
-    QString fileName = (part->project()->projectDirectory() + "/templates/" + name); 
+    QString fileName(part->project()->projectDirectory() + QString("/templates/") + name); 
     if (QFile::exists(fileName)) return fileName; 
 
     // next try global 
 
Comment 3 Alexander Dymo 2003-07-08 22:57:16 UTC
This seems to be an installation error or project creation error. Try to reinstall kdevelop. 
Taking into account that Caleb's patch is applied to cvs I'm closing this bug.