From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28580 invoked from network); 10 Mar 1999 12:00:11 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 10 Mar 1999 12:00:11 -0000 Received: from blinky.bfr.co.il (hjstein@morannon.bfr.co.il [192.116.142.129]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id GAA11365 for ; Wed, 10 Mar 1999 06:53:23 -0500 Received: (from hjstein@localhost) by blinky.bfr.co.il (8.8.5/8.6.9) id NAA03415; Wed, 10 Mar 1999 13:53:19 +0200 To: axp-list@redhat.com Subject: Re: Fortran: Large static arrays = unal trap + core References: CC: hjstein@bfr.co.il From: hjstein@bfr.co.il (Harvey J. Stein) Date: 10 Mar 1999 13:53:19 +0200 In-Reply-To: Matt Nelson's message of "Tue, 9 Mar 1999 08:10:20 -0800 (PST)" Message-ID: X-Mailer: Gnus v5.6.4/Emacs 19.34 Matt Nelson writes: > everybody around here uses Fortran (egcs/g77). i have some users that > need very large arrays, i.e., several hundreds of megabytes. here's how > they set it up (don't ask... there is an evolutionary reason for this > convoluted way to do it...): > > - declare some dummy arrays: real dummy1(60000000) (three of em) > - save an I*8 pointer to the array: pointer=%loc(dummy1(1)) > - pass the pointer to subroutines that do the meat of the work via > %val(pointer) > > here's the problem. sometimes the code works fine, and other times it > core dumps immediately when executed, triggering an unaligned trap message > in /var/log/messages. > > system: LX164, 512M + 512M swap, Red Hat 5.2 + 2.2.1 kernel > > does anybody have any idea what's going on? The unaligned traps are a little weird, but can it be that the other processes are sucking up enough memory that the program is running out of memory? I've found core dumping immediately to often indicate using too much memory. -- Harvey J. Stein BFM Financial Research hjstein@bfr.co.il