Operating System - OpenVMS
1754300 Members
2803 Online
108813 Solutions
New Discussion юеВ

Error Subscript 1 range error impossible to solve (Alpha VMS 6.2)

 
SOLVED
Go to solution
Stephane Boneff
Advisor

Re: Error Subscript 1 range error impossible to solve (Alpha VMS 6.2)

Volker,

It's exact :
DBG> EXA 10002C+8
CAL_BIL_COW\I: 0000000A

and
DBG> EXA 10002C+2C
CAL_BIL_COW\COWP: 00000004

Volker Halle
Honored Contributor

Re: Error Subscript 1 range error impossible to solve (Alpha VMS 6.2)

Stephane,

how about

DBG> EXA 10002C+30 ! should be AUTRE_COWP

In general one needs to either check the source code, if any subscript of any array could have exceeded the allocation size of the array. Or one needs to analyze the machine code (ideally the complete instruction stream from the .DMP file itself !) to find out, if there are any execution passes leading to L$5 with the correct values of the registers as seen in the dump. Until now, I have not found such a code path, but I'm checking against the machine code listing and not against the actual machine code inside the .DMP file !

Volker.


Dennis Handly
Acclaimed Contributor

Re: Error Subscript 1 range error impossible to solve (Alpha VMS 6.2)

>Volker: Or one needs to analyze the machine code

If range checking was implemented without much concern for performance, you wouldn't need to look at the machine code. The error message should tell you the name of the variable, index, bounds, file and line number.
I believe the +check= option on HP-UX does this.