GRRRRRR, who at sourceforge thought it would be a good idea to put a trash
can icon next to the edit one on the tracker...and not prompt for the
delete or undo function that I can find! Sorry about deleting this.
Anyway, this is an invalid bug. The control stack full condition occurs if
you happen to name the program test.rex. When the test() call is made, the
program is located as an external function and is invoked recursively. I
should add, this would have been easier to reproduce and more obvious had
you added the program as an attachement with the original name rather than
just cut-and-paste the source lines into the description.
Rick
---------- Forwarded message ----------
From: Rick McGuire <[email protected]>
Date: Thu, Jul 3, 2014 at 11:09 AM
Subject: [oorexx:bugs] #1270 Unexpected recursion leading to error 11,
"Control stack full"
To: "[oorexx:bugs]" <[email protected]>
I will examine this once an example that actually shows the error is
available. But from what I can see, you've somehow added a package to
itself, creating a circular reference.
---
** [bugs:#1270] Unexpected recursion leading to error 11, "Control stack
full"**
**Status:** open
**Group:** None
**Created:** Thu Jul 03, 2014 01:46 PM UTC by Rony G. Flatscher
**Last Updated:** Thu Jul 03, 2014 03:03 PM UTC
**Owner:** nobody
With ooRexx 4.2.0 the following Rexx program causes an unexpected recursion
that leads to error 11: Control stack full:
rexxCode1="::routine pp public; return '['arg(1)']'"
rp1=.routine~new("rexxcode1", rexxcode1)
rp1~call
rexxCode2= "parse source fn
;" -
"say pp(fn)
;" -
"say pp(fn) 'test():' pp(test()) -- a line comment
;" -
"::routine test public
;" -
" return 'from routine test() at' .DateTime~new
;" ;
-- rp2=.routine~new("rexxcode2", rexxcode2, rp1~package)
rp2=.routine~new("rexxcode2", rexxcode2)
rp2~package~addPackage(rp1~package)
rp2~call
Please note: rexxCode2 has no .endofline, but uses semi-colons for ending
statements. Right before the routine directive a line comment is given,
which causes everything else to be treated like a comment.
It is therefore unexpected that this program enters into a recursion until
the control stack is full.
---
Sent from sourceforge.net because you indicated interest in <
https://sourceforge.net/p/oorexx/bugs/1270/>
To unsubscribe from further messages, please visit <
https://sourceforge.net/auth/subscriptions/>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel