Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: -R-E- DXL: <Line:0> Stack Underflow
Topic Summary: Error when adding one more variable
Created On: 12-Aug-2005 08:22
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 12-Aug-2005 08:22
User is offline View Users Profile Print this message


Björn Kellermann

Posts: 4
Joined: 12-Aug-2005

If I add one more variable (int, bool, string) to my allready running DXL script I get the message:

-R-E- DXL: <Line:0> Stack Underflow
-I- DXL: <Line:55> execution halted

If I remove the variable, the script will run again.
My script has a length of about 225 lines (incl. comments) and no recursion.

Does anybody kow aout the problem?

CU

Björn

Report this to a Moderator Report this to a Moderator
 12-Aug-2005 09:19
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

Can you post the script? We might then stand a chance of getting to the root of your problem...

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


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 11-Jul-2006 14:46
User is offline View Users Profile Print this message


stefan ruehle

Posts: 3
Joined: 29-Nov-2005

Hi, i got the same problem. Just a bit different. If a do NOT add a array (no matter if at the beginning or at the end of the script) i get this stack underflow. That is so strange. Stefan

-------------------------
Stefan dot Ruehle at TRW dot com
TRW Automotive
Radolfzell/Germany
Report this to a Moderator Report this to a Moderator
 11-Jul-2006 14:50
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Look in help file for: pragma stack
Report this to a Moderator Report this to a Moderator
 11-Jul-2006 16:33
User is offline View Users Profile Print this message


stefan ruehle

Posts: 3
Joined: 29-Nov-2005

Now i found where the trouble is. I create a partition definition and want to dispose it afterwards. Without the disposal i have no error but with the disposal active i have to declare an empty array otherwise i get the "stack underflow". Looks like a memory-leak to me... Help is appreciated. Stefan

-------------------------
Stefan dot Ruehle at TRW dot com
TRW Automotive
Radolfzell/Germany
Report this to a Moderator Report this to a Moderator
 11-Jul-2006 16:40
User is offline View Users Profile Print this message


stefan ruehle

Posts: 3
Joined: 29-Nov-2005

Pragma stack doesn't help. It seems that the error is caused by "dispose PartitionDefinition". Without this command there is no problem. With it i have to define an empty array. How can this be?

-------------------------
Stefan dot Ruehle at TRW dot com
TRW Automotive
Radolfzell/Germany
Report this to a Moderator Report this to a Moderator
 6-Mar-2007 01:18
User is offline View Users Profile Print this message


Thomas Young

Posts: 20
Joined: 12-Apr-2005

An old thread topic but keeps returning. I have a DXL that simply dumps metrics from a specific module to a 2kb TSV file. When run from DXL Editor it works fine. When run from a DOORS shortcut using a command string like:
-D "#include <C:/path/metrics.dxl>"
it gets the infamous Stack Underflow at line 0 error, complete with a diagnostic log window and the also-infamous "unexpected internal error, suggest save, exit and restart".

In case it matters, the DXL does declare and initialize several 1-dimensional arrays. Any advice?
Thx
Tom
Report this to a Moderator Report this to a Moderator
 6-Mar-2007 11:26
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Enclose the entire script in braces and try again.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 6-Mar-2007 13:49
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

I also have had huge problems with Arrays. I was constantly getting errors and crashes when simply putting values into an array(was statically declared not dynamic) and trying to read them out. If I took the Array initialization and extraction code out and ran it separately it worked fine but inside the script it didn't work. I wasn't touching the Array prior to using it. I ended up just using a string[] array.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 6-Mar-2007 18:22
User is offline View Users Profile Print this message


Thomas Young

Posts: 20
Joined: 12-Apr-2005

Thanks Tony! Worked like a charm. Why didn't *I* think of enclosing the entire script in braces! For extra credit, can you explain why that solved this problem?

Tom
Report this to a Moderator Report this to a Moderator
 7-Mar-2007 17:28
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

When you run a script in client mode the interpreter automatically encloses the script in braces. This ensures thatthe script is running in it's own context. This explains why you can #include files that are already #included in the top context without any clashes. It also explains why you can overload variable names that exist globally.

However, when you run the same script in batch mode it doies not get wrapped in braces and you can get name clashes etc.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.