Now fixed for the next release. Thank you for finding and reporting this error.
128!:5 y for complex y with n atoms overwrites n bytes beyond the end of the result. Therefore (128!:5) 0j1+1e6 [EMAIL PROTECTED] 0 will almost certainly crash. ----- Original Message ----- From: Devon McCormick <[EMAIL PROTECTED]> Date: Saturday, October 18, 2008 11:14 Subject: [Jprogramming] J crashes checking for NaN To: J-programming forum <[email protected]> > Members of the Forum - > > Can anyone re-produce this crash? > > NB. Define a complex variable: > mms=. j./~i:2j99 > > NB. (128!:5) checks for NaN - works OK for first 1006 items: > (128!:5)1006{.,mms > > NB. But crashes J when invoked on 1007 items: > (128!:5)1007{.,mms > > The problem seems to be with the size of the argument, i.e. > > (128!:5) 1006{.1000}.,mms > > works, but > > (128!:5) 1007{.1000}.,mms > > causes the crash. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
