gcc on Linux
jianyun lu
lujy@seesaw.wustl.edu
Mon May 6 15:38:00 GMT 2002
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
More information about the Gcc-bugs
mailing list