[Bug 75943] New: Crash during directory scan (loading project on startup or import existing project)

Michael Aichler micha at aichler.net
Mon Feb 23 21:43:06 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=75943      
           Summary: Crash during directory scan (loading project on startup
                    or import existing project)
           Product: kdevelop
           Version: 3.0.1
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel kdevelop org
        ReportedBy: micha aichler net


Version:           3.0.1 (using KDE KDE 3.2.0)
Installed from:    SuSE RPMs
Compiler:          gcc-3.3.1 
OS:          Linux

Hi,

Today I tried importing an existing PHP project into KDevelop. The application crashed while it was scanning the project files.
In the project directory there is a tmp directory for cached and compiled files from Smarty and Adodb:

tmp/
tmp/CVS
tmp/adodb
tmp/adodb/CVS
tmp/adodb/cache
tmp/adodb/cache/CVS
tmp/smarty
tmp/smarty/CVS
tmp/smarty/compile
tmp/smarty/compile/CVS
tmp/smarty/compile/%%-13
tmp/smarty/compile/%%-13/%%-133643295
tmp/smarty/compile/%%-95
tmp/smarty/compile/%%-95/%%-954924434
tmp/smarty/compile/%%197
tmp/smarty/compile/%%197/%%1976968838
tmp/smarty/compile/%%318
tmp/smarty/compile/%%318/%%318464488
tmp/smarty/compile/%%642
tmp/smarty/compile/%%642/%%642129647
tmp/smarty/compile/%%759
tmp/smarty/compile/%%759/%%759812923
tmp/smarty/cache
tmp/smarty/cache/CVS

The directories under tmp/smarty/compile/ are created with apaches user and group id and have limited permissions:

drwxr-x--x    3 wwwrun   www            80 2004-02-23 12:51 %%-13
drwxr-x--x    3 wwwrun   www            80 2004-02-23 12:59 %%197
drwxr-x--x    3 wwwrun   www            80 2004-02-23 12:51 %%318
drwxr-x--x    3 wwwrun   www            80 2004-02-23 13:16 %%642
drwxr-x--x    3 wwwrun   www            80 2004-02-23 13:15 %%759
drwxr-x--x    3 wwwrun   www            80 2004-02-23 12:59 %%-95
drwxr-xr-x    2 micha    cvs           128 2004-02-11 21:03 CVS

If I remove these directories then KDevelop is able to import the project and to load it on startup.
All tests gave me the same result: as soon as there is a directory that is not accessible with the rights of the user running KDevelop it will crash.

Here's the backtrace:

[New Thread 16384 (LWP 2775)]
0x418f3a86 in waitpid () from /lib/i686/libpthread.so.0
#0  0x418f3a86 in waitpid () from /lib/i686/libpthread.so.0
#1  0x40e0da7a in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x418f296c in __pthread_sighandler () from /lib/i686/libpthread.so.0
#3  <signal handler called>
#4  0x415005da in QGListIterator::QGListIterator(QGList const&) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#5  0x40924a44 in QPtrListIterator<QFileInfo>::QPtrListIterator(QPtrList<QFileInfo> const&) () from /opt/kde3/lib/libkio.so.4
#6  0x42263d5a in ScriptProjectPart::openProject(QString const&, QString const&) () from /opt/kde3/lib/kde3/libkdevscriptproject.so
#7  0x08074323 in ProjectManager::loadProjectPart() ()
#8  0x08072a25 in ProjectManager::loadProject(KURL const&) ()
#9  0x080726ed in ProjectManager::loadDefaultProject() ()
#10 0x08064752 in main ()




More information about the KDevelop-devel mailing list