Re:How can C Programs be so Reliable?
by nickolai on Thursday September 22, 2011 @06:10AM
(#3025514)
Provided the binary has a minimum of debugging symbols, you can get a meaningful backtrace from a core dump of a C program. It is very similar to the java stack trace. You can even get the value of the parameters, which AFAIK, java doesnt do.
[ Parent
| on HN ]
Re:How can C Programs be so Reliable?
by Roboprog on Thursday September 22, 2011 @12:36PM
(#3026641)
Assuming the core wasn't dumped as a result of secondary damage, causing a completely correct line of code to be shown at the top of the stack trace.
At least with Java, pointers/references/objects are either null, or valid. Uninitialized references won't compile, and a null dereference blows stack at point of first use.
Having said that, I like pointer and bounds checking, but wish Java had significant memory management options, for times when you were willing to trade some safety for speed.