Live data from Hacker News

Heisenbug

en.wikipedia.org

1–10 of 34 posts

Re: Heisenbug

#3
post #2

Obligatory: https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/255161 I wonder if at one point we'll end up with a crisis that will make us see excessive complexity as a bug on its own.

Isn't it considered a bad practice already? But same as with regular bugs, complexity is not something one can just stop doing. It's something to actively manage and take care of.

Re: Heisenbug

#4
post #2

Obligatory: https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/255161 I wonder if at one point we'll end up with a crisis that will make us see excessive complexity as a bug on its own.

Probably 'bug' is not the best word, but many programmers definitely consider excessive complexity as 'bad design' (unless complexity is inherently unavoidable due to the very nature of the problem).

Re: Heisenbug

#5
Every coder at some stage has run into this, right?

- A bug that disappears when you try to add some cout- Everything looks correct in debug, where (as mentioned) the variables are initialised to nice values like 0. When you compile with -O3, you get really large values instead.

- A bug that is rare enough that you have to run the program for a long while before it happens. And when it does, you haven't logged the relevant information.

- A bug that only manifests when you're not trying to show a colleague.

Re: Heisenbug

#6
post #2

Obligatory: https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/255161 I wonder if at one point we'll end up with a crisis that will make us see excessive complexity as a bug on its own.

Search that page for “open office will never print on Tuesdays” to find the good bit

Re: Heisenbug

#7
post #2

Obligatory: https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/255161 I wonder if at one point we'll end up with a crisis that will make us see excessive complexity as a bug on its own.

See also: "the network that ate my font"

http://verticalsysadmin.com/blog/sysadmin-war-story-the-netw...

https://news.ycombinator.com/item?id=15258238

tldr; printers have a hardware cache for fonts that's cleared when rebooted, havoc ensues

Re: Heisenbug

#8
post #4
post #2

Obligatory: https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/255161 I wonder if at one point we'll end up with a crisis that will make us see excessive complexity as a bug on its own.

Probably 'bug' is not the best word, but many programmers definitely consider excessive complexity as 'bad design' (unless complexity is inherently unavoidable due to the very nature of the problem).

And others pile it on in the name of "user friendliness" or "security"...

Re: Heisenbug

#9
If you hate heisenbugs, use Functional Programming (or data-race-safe langs such as Rust). It will kill 99.99% of them.

Re: Heisenbug

#10
post #2

Obligatory: https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/255161 I wonder if at one point we'll end up with a crisis that will make us see excessive complexity as a bug on its own.

LP#255161 is not a heisenbug.
Post reply on HN