News for hackers. Stuff that matters.
Re:How can C Programs be so Reliable? by p9idf on Thursday September 22, 2011 @06:23AM (#3025536)
"Java prints a stack trace by default to help correct the mistake, a huge step forward from C's generic segfault."

A segfaulting program will dump core, which the programmer can use to get the stack trace. I consider this to be better UI than printing the trace at a likely bewildered user.

Re:How can C Programs be so Reliable? by adobriyan on Thursday September 22, 2011 @06:28AM (#3025550)
Distros ship with "ulimit -c" being 0, so no, it won't dump core.
Re:How can C Programs be so Reliable? by piotrSikora on Thursday September 22, 2011 @06:41AM (#3025573)
Blame your distribution for that, not C... On OpenBSD "it just works (tm)":

  $ ulimit -c
  unlimited
Re:How can C Programs be so Reliable? by eru on Thursday September 22, 2011 @06:54AM (#3025597)
Although for most Linux users nowadays a limit of zero is the Right Thing.
Re:How can C Programs be so Reliable? by burgerbrain on Thursday September 22, 2011 @11:28AM (#3026374)
...Which means that only the people who want coredumps/stacktraces get them. Instead of everyone.

Sounds like a feature.

Re:How can C Programs be so Reliable? by sunkencity on Thursday September 22, 2011 @07:54AM (#3025730)
Ah, interesting information nugget! I have been wondering why there's no core dumps around in linux any more, in the old days when I used redhat & mandrake the fs would be littered with them.