News for hackers. Stuff that matters.
Re:Learn C The Hard Way by praptak on Sunday July 03, 2011 @09:17AM (#2723637)
"I manage to get more exceptions in my Python, Ruby code, owing to undefined variables or incorrect types, than I get segfaults in C."

What happens when you don't get a clean segfault is what got C the "dangerous" reputation.

Re:Learn C The Hard Way by irahul on Sunday July 03, 2011 @04:52PM (#2724564)
If you are developing, `gcc -g` while compiling(or CFLAGS += g), and loading the core with gdb does give a very good idea of what went wrong.
Re:Learn C The Hard Way by praptak on Sunday July 03, 2011 @05:11PM (#2724615)
It is a lucky scenario when you actually get a core and one taken at the exactly right time. Unfortunately there are some pointer bugs that are hard to find even with Valgrind.

Buffer overflows do not produce cores, they just sit there until a determined cracker makes use of them. And a dangling pointer might still access memory that looks valid both to OS and memcheck.