jsoftware / jsource

J engine source mirror
Other
657 stars 90 forks source link

JE crash in (128!:1) for J9.5.1 and J9.6.0-beta5 #195

Closed jip closed 2 months ago

jip commented 5 months ago

An Invert Upper-Triangular R foreign (128!:1) crashes for some upper-triangular matrix of moderate size (is attached as zip):

user@host:~/j9.6> LANG=C ./jconsole.sh
   readtable=: 3 : '>0 ". each cutopen toJ 1!:1 < jpath y'
   A=. readtable '~temp/crash_A.dat'
   $ A
600 600
   datatype A
floating
   (-: <:/&i./@$`(0&,:)}) A  NB. verify A is upper triangular
1
   iA1=. %. A  NB. invert A as a dense matrix: ok
   iA2=. 128!:1 A  NB. invert A as an upper triangular matrix: crashes
JE has crashed, likely due to an internal bug.  Please report the code which caused the crash, as well as the following printout, to the J forum.
0000000000403132: ?:0:  ?
00007ff0c2fe0dbf: ?:0:  ?
00007ff0be9a4e72: ?:0:  ?
00007ff0be922063: ?:0:  ?
00007ff0be9218bc: ?:0:  ?
00007ff0be926bf9: ?:0:  ?
00007ff0be90ec28: ?:0:  ?
00007ff0be90e9f5: ?:0:  ?
000000000040306f: ?:0:  ?
00007ff0c2fcb24c: ?:0:  ?
00000000004024dd: ?:0:  ?
ffffffffffffffff: ?:0:  ?
-----------------------------------------------------------------------------
./jconsole.sh: line 6: 18545 Aborted                 (core dumped) bin/jconsole "$@"

for both:

   JVERSION
Engine: j9.6.0-beta5/j64/linux
Build: commercial/2024-04-11T16:59:56/clang-11-0-0/SLEEF=1
Library: 9.6.5
Platform: Linux 64
Installer: j9.6 install
InstallPath: /home/user/j9.6.0-beta5_j64
Contact: www.jsoftware.com

   JVERSION
Engine: j9.5.1/j64/linux
Build: commercial/2023-12-20T04:06:17/clang-11-0-0/SLEEF=1
Library: 9.5.5
Platform: Linux 64
Installer: j9.5 install
InstallPath: /home/user/j9.5.1_j64
Contact: www.jsoftware.com

crash_A.zip

jip commented 4 months ago

Seems to be fixed in j9.6.0-beta7.