Wierd core dump on sparc-1
Gillmer J. Derge
derge at paris.crd.ge.com
Fri Jan 25 07:36:59 AEST 1991
In article <1991Jan23.232300.3698 at lavaca.uh.edu> jet at karazm.math.uh.edu
("J. Eric Townsend") writes:
>I've got a rather simple little C program that dumps core at
>the first "{" of main() (according to gdb and saber).
>Any hints as to what could be causing this?
I've seen this happen as a result of declaring a large, global
array. In my case it was a 30 by 30 by 100 by 40 array of char, and I
fixed it by allocating the memory at run time. An explanation, I can
not give, but this may work as a solution.
Gill Derge
derge at crd.ge.com
More information about the Comp.lang.c
mailing list