4 ms·
"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
by p9idf 15y ago
"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.
- adobriyan 15y agoDistros ship with "ulimit -c" being 0, so no, it won't dump core.
- piotrSikora 15y agoBlame your distribution for that, not C... On OpenBSD "it just works (tm)": $ ulimit -c unlimited
- eru 15y agoAlthough for most Linux users nowadays a limit of zero is the Right Thing.
- sunkencity 15y agoAh, 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.
- deleted 15y ago[deleted]
- burgerbrain 15y ago...Which means that only the people who want coredumps/stacktraces get them. Instead of everyone. Sounds like a feature.