Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!hub.ucsb.edu!orange!brian From: brian@orange.ucsb.edu (Brian Mak) Newsgroups: comp.lang.c Subject: FOLLOW-UP FOR WEIRD BUG ON EXIT Message-ID: <6043@hub.ucsb.edu> Date: 1 Aug 90 07:00:22 GMT Sender: news@hub.ucsb.edu Reply-To: brian@orange.ucsb.edu (Brian Mak) Distribution: na Organization: University of California, Santa Barbara Lines: 24 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