FOLLOW-UP FOR WEIRD BUG ON EXIT
Brian Mak
brian at orange.ucsb.edu
Wed Aug 1 17:00:22 AEST 1990
thank you for those who replied to me personally. I found the bug.
My original program is something like that:
main()
{
.
.
.
.
printf("%d%d%lf\n", x, y, z);
.
.
}
Later I took out the variable "z" from the program; i.e. the print statement
becomes:
printf("%d%d%lf\n", x, y);
then I got the weird bug which results in segmentation violation at the end
of the program, but nothing if an exit() is put right before the closing
bracket(}).
Brian MAK
More information about the Comp.lang.c
mailing list