Bug#2288: Including h-File into project

Oliver Pertz Pertz at uni-duisburg.de
Fri Nov 12 14:37:12 UTC 1999


Package: kdevelop
Version: 4.1-19991111-A
Severity: grave

Bugreport ID : 15:24,12.11.99

Originator	: Oliver Pertz
E-Mail		: Pertz at uni-duisburg.de

Subject : Including h-File into project

Error Class	: software bug
Error Location	: project management
Priority	: medium
Bug Description ---------------------------

The following header file ALWAYS causes kdevelop to hang when
scanning the project file. If it is included into the project the following
happens:
The file is displayed, the project is being scanned and at a certain
percent rate (dependent on the position of the file in the project) the 
progress bar stops and kdevelop hangs. kdevelop does not react to 
the x-Button on the window to close but closes on a SIGTERM then.
It uses full CPU when hanging but does not allocate any additional 
memory.

I am not sure, but I used the same h-File in kdevelop 1.0beta3 
without problems, but I still used my own Makefiles. Now it is a C++-
terminal application.

// Gnu header left out here
#ifndef MATHE_H
#define MATHE_H

#include <string>
#include "CMatrix.h"

namespace CMatOp {
        CMatrix *add (const CMatrix &, const CMatrix &) ;
        CMatrix *subtract (const CMatrix &, const CMatrix &) ;
        CMatrix *multiply (const CMatrix &, const CMatrix &) ;
        CMatrix power (const CMatrix &, int) ;
        CMatrix unity (int) ;
        CMatrix *copy (const CMatrix &) ;
        CMatrix transpose (const CMatrix &) ;
        CMatrix diag (complexbase, int) ;
        CMatrix diagVec (const CMatrix &) ;
        CMatrix subCMatrix (const CMatrix, int, int) ;
        CMatrix subCVector(const CMatrix, int) ;
        CMatrix solve (const CMatrix &, const CMatrix &) ;
        CMatrix *scalMul (const CMatrix &,complexbase) ;
        complexbase scalarProduct (const CMatrix &, const CMatrix &) ;
        CMatrix crossProduct (const CMatrix &, const CMatrix &) ;
        bool compare (const CMatrix &, const CMatrix &,doublebase) ;
}

doublebase powMinus1 (int) ;
complexbase CpowMinus1(int) ;
doublebase abs (complexbase) ;
doublebase carg (complexbase) ;
int sgn (doublebase) ;
bool existFile (string) ;
doublebase faculty (int)  ;

inline int pow2 (int exponent)
{
        int result = 1 ;
        for (int i = 1 ; i < exponent ; ++i, result *=2 ) ;
        return result ;
}

inline complexbase tanh (complexbase arg)
{
        return sinh (arg) / cosh (arg) ;
}

inline doublebase powMinus1 (int exponent)
{
        int expon = exponent % 2 ;
        return ((expon == 0)  ? 1.0 : -1.0 )  ;
}

#endif

 

How to repeat the error -------------------

Create a new C Terminal application and include this h-File into the 
project. (h-File is called Math.h)

Bugfix or Workaround ----------------------

No.

System Information ------------------------

KDevelop version	: 4.1-19991111-A
KDE version		: 1.1.2
QT version		: 1.44
OS/Distribution		: SuSE Linux 6.2 Kernel 2.2.13
Compiler		: gcc 2.95.1

misc :
Happens on 1.0beta4.1 as well




More information about the KDevelop-devel mailing list