malloc/calloc problem on OSF1 v3.0?

From: Andrew Gillies <anaru_at_cns.ed.ac.uk>
Date: Thu, 2 Mar 1995 21:14:56 GMT

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_at_cns.ed.ac.uk
  Centre for Neural Systems (CNS) anaru_at_cns.ed.ac.uk
  Centre for Cognitive Science
  2 Buccleuch Place, phone 031 650 4422
  Edinburgh EH8 9LW fax 031 650 6626
Received on Thu Mar 02 1995 - 16:18:47 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT