`DATE('U')` Unable to re-allocate 2726592993 bytes.
Closed this issue · 5 comments
I'm running all the tests in the /test folder and noticed one kept failing, testing the following rexx on a fresh tk5u3 I can recreate the issue:
my script (in HERC01.EXEC(TEST)
):
SAY DATE('W')
SAY DATE('U')
When i run this script with rx test
I get the following:
Thursday
2 *-* SAY DATE('U')
realloc: Unable to re-allocate 2726592993 bytes. Memory allocated is 196608
2 *-* SAY DATE('U')
Error 61 running TEST, line 2: Memory reallocation failed.
The problem has been re-produced. An invalid re-alloc in the error routine has been performed, which triggered an error in the error handling process.
The problem has been cured and will be provided in the next fix-level release
I just built the new version and now get a seperate issue (this is on TK5, MVS/CE and TK4-):
Saturday
2 *-* SAY DATE('U')
Error 40.47 running HERC01.TEST.CNTL(TEST), line 2: invalid or missing output f
ormat "
After testing it looks like none of these work:
else {
if (brxoptions[1]=='A') Lscpy(datestr, "XEUROPEAN");
else if (brxoptions[1]=='B') Lscpy(datestr, "XGERMAN");
else if (brxoptions[1]=='C') Lscpy(datestr, "XUSA");
else if (brxoptions[1]=='E') Lscpy(datestr, "EUROPEAN");
else if (brxoptions[1]=='G') Lscpy(datestr, "GERMAN");
else if (brxoptions[1]=='U') Lscpy(datestr, "USA");
else Lscpy(datestr, "XEUROPEAN");
}
From:
Line 280 in 520947c
DATE('A')
:
1 *-* DATE('A')
Error 40.47 running HERC01.TEST.CNTL(TEST), line 1: invalid or missing output f
ormat "
And the rest:
Error: Invalid command name syntax
1 *-* DATE('B')
+++ RC(-3) +++
Error: Invalid command name syntax
2 *-* DATE('E')
+++ RC(-3) +++
Error: Invalid command name syntax
3 *-* DATE('C')
+++ RC(-3) +++
4 *-* DATE('G')
Error 40.47 running HERC01.TEST.CNTL(TEST), line 4: invalid or missing output f
ormat "
I just built the new version and now get a seperate issue (this is on TK5, MVS/CE and TK4-):
Saturday 2 *-* SAY DATE('U') Error 40.47 running HERC01.TEST.CNTL(TEST), line 2: invalid or missing output f ormat "
"U" is ambiguous it could be USA or UNIX. USA requires 3 characters. I changed it to 1, UNIX needs two characters. The change is committed, please let me know if it works for you.