From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,1ef3b84ca62fad7b,start X-Google-Attributes: gid1094ba,public X-Google-Thread: fee84,1ef3b84ca62fad7b,start X-Google-Attributes: gidfee84,public From: Armin Leuprecht Subject: fortran error? Date: 1998/03/12 Message-ID: <3507A4A5.F8A7DDC2@matd.tu-graz.ac.at>#1/1 X-Deja-AN: 333269509 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: TU Graz Newsgroups: comp.lang.fortran,comp.unix.osf.osf1 Dynamic allocation using DEC Fortran is working in general. For some strange reason sometimes a programm like the following will crash with a segmentation fault while allocating the memory in line 3 of the subroutine. Though I couldn't reproduce the error with this little program (not even for large values, i.e. more than physical installed memory) I cannot locate another source of failure in my application. SUBROUTINE sub(n) INTEGER n REAL*4 a(n) END PROGRAM test INTEGER n n = 1234 CALL sub(n) END My application is of course more complex so that I can't post it as whole. The subroutine looks like this: SUBROUTINE name (n, a, x, b) INTEGER n REAL a(*), x(*), b(*) c *** local variables REAL p(n) REAL r(n) REAL s(n) REAL t(n) REAL z(n) ... in fact there are 10 such arrays dimensioned with n, and regardless of the order of variables, the program crashes while allocating memory for the sixth array. So it seems to depend on the amount of requested memory. We had no problem with that subroutine before the operating system upgrade from V2.1 to V3.2 My OS: OSF1 V3.2 148 alpha My Compiler: DEC Fortran for OSF/1 AXP Systems version T3.6 thanks for any advice Armin