PR# 13300 Showing Flat form of feature with VEEN error increases memory used to more than 2 GB

Problem Report Summary
Submitter: prestoat2000
Category: EiffelStudio
Priority: High
Date: 2007/07/12
Class: Bug
Severity: Critical
Number: 13300
Release: 6.0.69141
Confidential: No
Status: Closed
Responsible:
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.0.7) Gecko/20060915 Firefox/1.5.0.7
Synopsis: Showing Flat form of feature with VEEN error increases memory used to more than 2 GB

Description
Showing the Flat form of a feature with a VEEN error causes the memory
used by estudio to increase from less than 100 MB to more than 2 GB.
Memory usage seems to be in the stack, as shown by pmap:

80000000 2093056K rwx--    [ stack ]

This happens when stack size is unlimited.
Surprisingly, estudio continues to run after that but because of the
huge amount of memory used many applications are slow.

If I limit stacksize to 200 MB, I get a "format could not be generated
message" after part of the routine is displayed.  Then switching to a
different format and back to Flat format crashes estudio.

I have run into this bug several times while using rev 69141 for my
work during the last few weeks.

Also, please fix the typo "occured" (should be "occurred") in the
message

   Error(s) occured, which was due to a compilation failure.
To Reproduce
Do "limit stacksize unlimited" (using csh).
Compile with attached classes and .ecf file.
Start estudio and open project.
Uncomment line with call to `x.stoat', introducing a VEEN error.
Click on Compile.
Estudio reports VEEN error in `make'.
Pick `make' and drop it to show Flat form of {TEST}.make.
Estudio memory usage increases to more than 2 GB.  After a long pause,
  the Flat form of `make' is displayed, with the "error(s) occured"
  comment at the end.

Problem Report Interactions
From:misterieking    Date:2007/11/29    Status: Closed    Download   
The memory increase should now be fixed, thanks for the report.

From:prestoat2000    Date:2007/07/12    Download   
Attachments for problem report #13300

Attachment: test.e     Size:127
Attachment: test1.e     Size:96
Attachment: test.ecf     Size:930