[Uml-devel] [Bug 129772] New: crash memory exhausted code import c++

Stephen Berryman berrymansj at optusnet.com.au
Sun Jun 25 04:45:05 UTC 2006


------- 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=129772         
           Summary: crash memory exhausted code import c++
           Product: umbrello
           Version: unspecified
          Platform: Fedora RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel.kde.org
        ReportedBy: berrymansj optusnet com au


Version:            (using KDE KDE 3.5.2)
Installed from:    Fedora RPMs

When importing the following class header, all memory is used up and the application eventually killed. The problem seems to be with the self referencing typedef.

Version 1.5.3 seems to get a segv on nearly every import so I can't test this particular problem on it. version 1.5.2 and previous version do have this problem

#ifndef _NAMEDCLASS_H
#define _NAMEDCLASS_H


class NamedClass 
{
public:
	typedef NamedClass* (*Constructor)();

	NamedClass(){};

	static NamedClass* make(const string& aClassName);

protected:

	static const char* registerClass
	(
		const char* pClassName, 
		Constructor constructor
	);

};




More information about the umbrello-devel mailing list