Live data from Hacker News

How I Found a 20-Year-Old Linux Kernel Bug

robert.ocallahan.org

31–40 of 45 posts

Re: How I Found a 20-Year-Old Linux Kernel Bug

#31
post #8

Great work! Segfaults are horrible, but bugs like these are even more so. Crawling, sneaking, living in your walls. Stealing precious CPU cycles and memory from millions of machines at once--petabytes and petaflops when you add it all up. Worst yet, they don't make a peep until you shine the holy light of benchmarks, code reviews, automated testing, or the (un)lucky corner case on them. At least segfaults let you kno…

A segfault is how the memory management gods show mercy

https://www.reddit.com/r/programmingcirclejerk/comments/62d1...

Re: How I Found a 20-Year-Old Linux Kernel Bug

#32

The 'rr' project gets a side mention, but if you're into debuggers, it's really worth a look - a very practical "record and replay" debugger that allows you to move around in time in a debug session. http://rr-project.org/

rr is indispensable to me specially as I started hacking around on Firefox and other C++ codebases (lack of interactive debuggers).

Re: How I Found a 20-Year-Old Linux Kernel Bug

#38

Title should have been "How i found a bug in some deprecated 802.11g-era API that is disabled by default" I always wonder why the kernel does not just warn when this API is used or yank it. Any software stuck with this API can barely know about 802.11n and is probably wondering what is 802.11ac or 802.11ax. Only some old or broken device drivers require this API. Linux distros should just stop enabling this API.

I actually use a 802.11g because work. So no thanks.

Re: How I Found a 20-Year-Old Linux Kernel Bug

#39
post #32

The 'rr' project gets a side mention, but if you're into debuggers, it's really worth a look - a very practical "record and replay" debugger that allows you to move around in time in a debug session. http://rr-project.org/

rr is indispensable to me specially as I started hacking around on Firefox and other C++ codebases (lack of interactive debuggers).

Why are there no interactive debuggers if you develop firefox?

Re: How I Found a 20-Year-Old Linux Kernel Bug

#40
post #26

Earlier quoted context omitted.

I think the counter point of this is being kind when people report bugs that aren't bugs. If users encounter a weird result, report it, and have someone call them an idiot because they misunderstood a nuance of the system... they're​ probably not going to take the time to report next time around. (And I get it, there's that common issue that people consistently misunderstand and you continually get reports about. But…

I think your parenthetical probably explains the dismissive attitude many upstreams have, but I would argue that if so many people are (consistently) misunderstanding your software then there's probably a UI/UX/education problem that needs fixin'... (Not saying it's easy , but it's a sign...)

Someone said, somewhere: User files bug that isn't a bug:

bad/rookie dev: omg dumb user

good dev: closes bug issue, files new issue to fix docs.

Post reply on HN