From: Richard Heathfield Newsgroups: comp.lang.c Subject: Re: segmentation fault hunsoo wrote: > > Hello, world? > > Let me know who prints the "Segmentation fault" [1], > and "core dumped"[2] to my terminal of my Linux box. > > Does the glibc print them? > Does OS(the kernel) prints them? > > Who prints them? There's a guy in Newcastle who has an exclusive franchise deal for the actual printing, but I think he sub-contracts the distribution. Who cares who prints them? What matters is that they only get printed when your program is broken. So instead of trying to track down the error messages, track down their causes. Typically, these include incorrect memory management (e.g. freeing something you didn't malloc), array bounds violations, and related pointer problems.