From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075318306370.tru64-unix-managers.marc@archive.invalid> From: Andrew Gillies Date: Thu, 02 Mar 1995 21:14:56 +0000 To: tru64-unix-managers Subject: malloc/calloc problem on OSF1 v3.0? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075318306370 Hi A few months back I installed OSF1 v3.0 on a DEC alpha 3000/500S (complete installation from OSF1 v1.3A). Everything seems to be running fine, however, one of the C programs often used here, (compiled with cc) produces a segmentation fault at the line: tau = (double *) malloc(lm*sizeof(double)); lm is too small to be hitting a memory limit (& still shouldn't cause a segmentation fault at this line). The DEC has 380Mb. The program calls calloc and malloc many times, and there seems no reason why this particular line should cause a problem (this program uses only the standard C and math libraries)? The program works fine on an identical DEC that is still running OSF1 v1.3A, and runs fine on the SUN sparcs. If I compile it with the "-non_shared" option on the OSF1 v1.3A machine, then copy it to the DEC running OSF1 v3.0 - it works fine then also (but not without the -non_shared). We have a few "off the shelf" DECs pre-installed with OSF1 v3.0, and it fails to work on them as well. Is this a known problem with OSF1 v3.0 and are there any fixes? Any help, or pointers would be most appreciated. Thanks, Andrew -------------------- System Administration e-mail operator@cns.ed.ac.uk Centre for Neural Systems (CNS) anaru@cns.ed.ac.uk Centre for Cognitive Science 2 Buccleuch Place, phone 031 650 4422 Edinburgh EH8 9LW fax 031 650 6626