Bug 184857 - Importing pascal code causes crashes
Summary: Importing pascal code causes crashes
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-18 22:25 UTC by tha_toz
Modified: 2012-02-29 17:33 UTC (History)
3 users (show)

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 tha_toz 2009-02-18 22:25:34 UTC
Version:           2.1.4 (using 4.1.4 (KDE 4.1.4), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.27-11-generic

I'm currently running on Ubuntu 8.10 and have tried using Umbrello in a GNOME session as well as KDE session.  

Below is the code I used to test this:

---------------------------------

unit NewObj;

interface

uses
	Objects;

type
	PNewObj = ^TNewObj
	TNewObj = object (TObject)
	end;

implementation

end.

---------------------------------

This code will import but as soon as you add a method or property to the object Umbrello crashes with "signal 6 (SIGABRT)" and spits the following to the console (if started from there):

tosborne@iniquity:~$ umbrello 
ASSERT: "i < uint(size())" in file /usr/include/qt4/QtCore/qstring.h, line 648
KCrash: Application 'umbrello' crashing...
sock_file=/home/tosborne/.kde/socket-iniquity/kdeinit4__0
Comment 1 Dario Andres 2009-09-28 02:21:29 UTC
- Is this still happening on KDE4.3 ? Thanks
Comment 2 Ralf Habacker 2011-11-30 08:19:32 UTC
I assume that the above code fragment is pascal - I tried to import this code on windows with msvc using a recent svn build. 

I cannot reproduce this crash
Comment 3 Oliver Kellogg 2012-02-29 17:33:40 UTC
(In reply to comment #0)
> [...]
> This code will import but as soon as you add a method or property to the object
> Umbrello crashes with "signal 6 (SIGABRT)" and spits the following to the
> console (if started from there):

I tried this using current trunk (which is very close to the version 2.8.1 which will appear shortly as part of KDE 4.8.1):

* Pasted your code to a file NewObj.pas
* Started umbrello and selected Code -> Active Language -> Pascal
* Selected the Code Importing Wizard and imported the file

The result is an empty package "NewObj" in the Logical View.
I dragged this package to a class diagram, and added a new class with an attribute inside the package. All of this went fine.