Trying to track down a DMSITP141T problem.
I have a few C toyols (toy tools), mostly useless except for the challenge of
it.
One, cbrain (and esoteric programming language) is the focus today, but I can
reproduce a similar problem with this smaller C program.
This is using GCCLIB and GCCCMS from VMCE V1R1M0.
Something triggers badness, that can cause permanent problems with the MODULE.
First the smaller program and sample run. The problems depends on which CMS
routine is called.
/* Call CMS */
#include <stdio.h>
/* #include <cmssys.h> */
int main(int argc, char *argv[]) {
int rc;
rc = __cmscmd("LISTFILE PROFILE EXEC *", 1 /*CMS_COMMAND*/);
fprintf(stderr, "Got: %d\n", rc);
if (argc > 1) {
fprintf(stderr, "Trying: '%s'\n", argv[1]);
rc = __cmscmd(argv[1], 11 /*CMS_CONSOLE*/);
fprintf(stderr, "Got: %d\n", rc);
}
return rc;
}
This is a simple program, only takes a single argument, for demonstration.
gcc callcms (cms
Ready; T=0.49/0.77 16:19:55
load callcms
Ready; T=0.02/0.05 16:20:01
genmod callcms
Ready; T=0.01/0.01 16:20:05
q txtlib
TXTLIB = GCCLIB CMSLIB PLILIB FORTLIB TSOLIB
Ready; T=0.01/0.01 16:20:12
And a run. The first call to CMS is LISTFILE PROFILE EXEC, works fine,
multiple times in a row. But other commands are triggering DMSITP141T. I'll
use DIR
(and remove some of the output).
callcms dir
PROFILE EXEC A1
Got: 0
Trying: 'dir'
Filename Filetype Fm Format Recs Blocks Date Time Label
CALLCMS C A1 V 64 17 1 04/12/21 13:24 CMS191
CBRAIN C A1 V 138 241 13 04/14/21 3:48 CMS191
...
TRIALS TEXT A1 F 80 9 1 04/10/21 12:08 CMS191
FIRST WORK A1 F 80 2 1 03/23/21 9:23 CMS191
44 files, 3,786 blocks: 3,028,800 bytes.
DMSITP141T OPERATION EXCEPTION OCCURRED AT 980002 IN ROUTINE CALLCMS.
CMS
So that's a minimal example. What's next is more in depth C, but actually
worse in outcome. A genmod
module becomes corrupt and stays ccorrupt.
gcc cbrain (cms
Ready; T=13.16/16.68 16:25:56
load cbrain
Ready; T=0.02/0.08 16:25:57
genmod cbrain
Ready; T=0.01/0.02 16:26:01
cbrain pbhello
Hello cbrain niarbc olleH
q
Ready; T=0.01/0.02 16:26:11
cbrain pbhello
Hello cbrain niarbc olleH
q
Ready; T=0.01/0.02 16:26:21
Now, after some programs, in particular MECAFF routines, but there are others.
Immediately causes the CBRAIN MODULE to trip, every time. Across logins,
across shutdown and restart...
Ready; T=0.03/0.06 16:29:43
cbrain pbhello
DMSITP141T OPERATION EXCEPTION OCCURRED AT 020002 IN ROUTINE CBRAIN.
CMS
Need to reload and run another genmod to get back to a usuable MODULE.
Note: no recompile, just a load and genmod.
load cbrain
Ready; T=0.02/0.10 16:30:49
genmod cbrain
Ready; T=0.01/0.02 16:30:53
cbrain pbhello
Hello cbrain niarbc olleH
First, not sure what is causing the DMSITP141T, and worse I'm unclear how
running program can corrupt a different MODULE file on disk.