This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc on Linux
- From: jianyun lu <lujy at seesaw dot wustl dot edu>
- To: bug-gcc at prep dot ai dot mit dot edu
- Date: Mon, 6 May 2002 15:04:13 -0500 (CDT)
- Subject: gcc on Linux
Dear Colleagues:
I have written a program that employed a lot of array
allocation and deallocation routines such as
vector.c/free_vector.c
matrix.c/free_matrix.c
from Numerical Recipes in C.
The program has been compiled and run fine on either
an SGI (with a IRIX 6.x OS) or a SUN (with a Solaris OS)
workstation. It has been compiled without any error message
or warning on a new Dell Pentium4 Server with dual processors
and running a Linux OS (RedHat). But the program would run
into a stall when one of the allocation and deallocation
routines (based on malloc) was called. Even more puzzling
is the fact that it did not stall when the routine was
called first but later.
I used the following command line arguments to do the
compilation:
cc -o exe_filename main.c xxx1.c xxx2.c .... -lm
I am wondering if I use gcc incorrectly or there is
a bug in gcc.
Thank you very much for your early reply.
Jianyun Lu