News for hackers. Stuff that matters.
Re:My Favorite Debug Ever by teddyh on Tuesday January 05, 2016 @07:23AM (#10842862)
Is using GDB and Electric Fence to find a normal buffer overflow bug really interesting enough to warrant a blog post these days, let alone a HN story?

I guess it might be interesting for all the people who, like the author, are Java and PHP programmers and have no experience with C?

Re:My Favorite Debug Ever by matthewmacleod on Tuesday January 05, 2016 @08:39AM (#10843155)
The fact that the author wrote a blog post about it, and the fact that someone found it interesting enough to share, are iron-clad proof that these things are obviously interesting enough to write about.
Re:My Favorite Debug Ever by phosphore on Tuesday January 05, 2016 @08:32AM (#10843126)
The fact that he pursued the cause of the bug even when things got difficult or strange for him was the essence of his real "hacker" experience. Was it a simple buffer overflow? Maybe, but he learned a lot getting his hands dirty
Re:My Favorite Debug Ever by EliRivers on Tuesday January 05, 2016 @08:21AM (#10843085)
In my experience, using GDB and any kind of memory debugging tool is all new to the majority of C and C++ programmers, so I'd expect them to find it interesting too.
Re:My Favorite Debug Ever by hluska on Tuesday January 05, 2016 @11:23AM (#10844038)
I'm trying to read this comment in the most kind voice that I can muster, and it still comes across as rather mean. The article may not be useful to you, but it was well written, quite funny in parts, and useful to enough people to make the first page.
Re:My Favorite Debug Ever by JadeNB on Tuesday January 05, 2016 @10:02AM (#10843518)
> I guess it might be interesting for all the people who, like the author, are Java and PHP programmers and have no experience with C?

Maybe it isn't snark, but that reads like it, and it seems unconstructive. Why knock down someone who's learning by denigrating his background? What's the harm in someone sharing something interesting (to him) that he learned, whether or not you think he should have known it already? It's easy enough not to read it, especially on a random blog and even on HN, if you don't want to share his experience.

Re:My Favorite Debug Ever by teddyh on Tuesday January 05, 2016 @10:23AM (#10843654)
I’m mostly trying to understand why this is deemed interesting, and not to snark. I mean, sure, anything voted up is interesting enough, but I thought that this was below the minimum level of knowledge a C programmer ought to have. It’s like if there was a story on the front page of HN about debugging HTTP using “telnet”.
Re:My Favorite Debug Ever by wink on Tuesday January 05, 2016 @05:06PM (#10846428)
But there's loads of not-C-programmers who might still work on segfaults from time to time.

For example I am absolutely able to use gdb, but have never heard of Electric Fence. (But I had heard of AddressSanitizer mentioned above.)

Re:My Favorite Debug Ever by vardump on Tuesday January 05, 2016 @11:33AM (#10844107)
Maybe not for people who do this kind of things almost on daily basis anyways.

It does have educational value: help to give more people pointers, short tutorial how to attack these issues. The more people can do this, the less bugs we will have around.

We need more people with these skills. It's all the time harder to hire these people nowadays.

Re:My Favorite Debug Ever by anc84 on Tuesday January 05, 2016 @09:47AM (#10843431)
Yes.