tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: James Hammett <james () che ! utexas ! edu>
To: tru64-unix-managers
Subject: SUMMARY: Code Crashes on DEC, but not on anything else
Date: Wed, 31 Jan 2001 14:57:17 +0000	[thread overview]
Message-ID: <98095310214408.tru64-unix-managers.marc@archive.invalid> (raw)

Appearently the shell was not allocating enough memory to the 
process. There were 2 work arounds to get the code working:

1. Run csh, and execute 'unlimit'.

2. In bash (the default shell), execute 'ulimit -s 32768' (This was 
the hard limit 'ulimit -s -H')

After executing the above command the program was able to run fine.

Here's the original problem:

>I have a user who has written a simulation which deals with a fairly 
>large array.  When the array is 142^2 items long it runs fine, but 
>as soon as he increases the number to 143 or above the program 
>crashes.  The program runs fine on SGI, Linux, and Solaris.
>
>While fiddling with this problem, I was able to write a program to 
>travers an array 256^2 (65536) elements long without any problem.
>
>By expermentation I've figured out that the error is cause by some 
>code after a certain line number, unfortunetely when I try to use 
>ladebug to figure out the offending command it will not even run the 
>first line 'cout << "Test" << flush;', it gives an error "thread 
>received signal SEGV".
>
>Does anyone have ideas what might be the problem?
>

thanks,
James
-- 
----------------------------------------------------------------------------
James Hammett
ACITS (Academic Computing)                                         CPE 4.468
Chemical Engineering Unix Support                                   471-9701
----------------------------------------------------------------------------
        An injustice anywhere is a threat to justice everywhere - MLK jr.
----------------------------------------------------------------------------

                 reply	other threads:[~2001-01-31 14:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox