Under what circumstances could ⎕DR intermittently fail?
While it's been running fine for years, our system which reads binary data from a file recently from time to time has been crashing with a DOMAIN ERROR at ⎕DR.
The application code in question reads data from a native file and looks something like this:
[0] r ← convert data
[1] r ← 0 0 0 0 0
[2] r[1] ← 323 ⎕DR data[1 2 3 4]
[3] r[2] ← 323 ⎕DR data[5 6 7 8]
[4] r[3] ← 645 ⎕DR data[9 10 11 12 13 14 15 16]
[5] r[4] ← 645 ⎕DR data[17 18 19 20 21 22 23 24]
[6] r[5] ← 645 ⎕DR data[25 26 27 28 29 30 31 32]
It is at one of the 645 ⎕DR lines where the program has been crashing, the following is what caused it to crash this last time:
645 ⎕DR ⎕AV[157 43 52 44 1 1 215 96]
On the other hand, the following works:
645 ⎕DR ⎕AV[1 1 1 1 2 71 134 232]
We use Dyalog APL version 10.