Re: Error handling in C



Richard Bos wrote:
lawrence.jones@xxxxxxxxxxx wrote:

Richard Bos <raltbos@xxxxxxxxx> wrote:

A non-repeatable bug isn't a bug, it's a pilot error.

Attitudes like that are why we're saddled with unreliable, buggy
software. Undefined behavior isn't necessarily repeatable.

No, but there's a difference between "hard to repeat" and "cannot be
repeated".

Yes - "hard to repeat" is something that can be said about real world
bugs. "cannot be repeated" is something we'd like to be able to say,
but it is inherently impossible to collect enough sufficient data to
justify saying so. The simple fact that you could not reproduce a
problem reported by a user might be due to any of a number of
problems. It could be that your system differs from the user's system
in some subtle way that you are unaware of. It might depend upon time
or the environment in some way that was covered by none of your
attempts to reproduce the problem. It might be due to a communications
failure between you and the user (and keep in mind that this failure
might not be entirely the user's fault).

... I'd love to say that all bug reports are equally worthwhile,
but I've seen too many "bugs" which turned out to be the operator being,
for example, unable to read a simple instruction on the screen.

If you know that the problem was due to the operator being unable to
read a simple instruction, then the right diagnosis might be "operator
error", but it could also be "poorly written instruction". This is
particularly true if the instruction was written by the developer -
such instructions often assume that the user should understand as much
about the internals of the program as the developer does.
In neither case is "unrepeatable" an appropriate diagnosis.
.



Relevant Pages

  • Re: Pace Pvr1 ok now
    ... Just because _this_ bug would have been caught doesn't ... To _properly_ test such configurations, they'd have to repeat all their ... it with numerous replacement drives, ...
    (uk.tech.tv.sky)
  • Re: [Bugme-new] [Bug 9906] New: Weird hang with NPTL and SIGPROF.
    ... mentioned this in the bug itself but I'll repeat it here: ... rather than summing the utime/stime/sched_time at interrupt it ... With these changes I've gone from a hang at 4500 threads to ... This bug is also dependent on HZ, since it ...
    (Linux-Kernel)
  • Re: AppleWin debugger
    ... That's actually a simple bug to fix. ... Highlighting the listing file is truly source-level debugging, ... address equal to the current instruction address, or, if there is ...
    (comp.emulators.apple2)
  • Re: upgrade glibc disaster
    ... > As I recall from reading the bug report, the 686 release was later than ... > This is not true of the glibc update. ... > is that almost all of the upgrades are i386 upgrades. ... > together with detailed instruction as to how to correct the problem. ...
    (alt.os.linux)
  • Re: Signed and unsigned int
    ... > Sorry for not replying but I had to rebuild my machine ... > The bug is not about SINGLE files bigger than 2GB. ... > I repeat that the bug is related to the 2GB limit since it appeared ...
    (comp.lang.c)