I've managed to build an array that's crashing my code. I suspected it contained NaNs but my attempt to check it crashes J:

   $(128!:5) _1}."1 badarray   NB. OK if exclude last column,
3 334
   _1{"1 badarray              NB. Not that there's anything special about it.
_1j_1 _1j_1 _1j_1
   $(128!:5) badarray          NB. But this kicks me out of J after giving the result.
3 335

You can get the array thusly:

   badarray=: 3!:2 ] 1!:1 <'C:\Temp\BADARRAY.txt'

(assuming you download this attachment to "C:\Temp") _

This appears to be a bug in the interpreter which should be fixed in newer (7.01 and above) versions. There is nothing special about the array attached here - the bug can be re-produced most simply by the following expression:

   128!:5 ] 1007 $ 0j1

The key attributes are that the array consist of complex numbers and has more than 1006 elements.

DevonMcCormick/BadArray (last edited 2009-12-05 05:27:59 by DevonMcCormick)