wu :: forums
« wu :: forums - Computational Errors »

Welcome, Guest. Please Login or Register.
Nov 30th, 2024, 9:36pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   general problem-solving / chatting / whatever
(Moderators: SMQ, william wu, ThudnBlunder, Icarus, Eigenray, Grimbal, towr)
   Computational Errors
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Computational Errors  (Read 494 times)
Ulkesh
Junior Member
**





   
Email

Posts: 147
Computational Errors  
« on: Jun 17th, 2008, 12:59pm »
Quote Quote Modify Modify

First of all, it's been a while since I last posted, so hi to everyone!
 
I've been developing and using a fair amount of software recently, and have come to notice the following:
 
Unexpected software output/results reported by users pretty much always lead to software bugs being discovered.
 
Before developing software at this level I always assumed that there would be a large number of non-replicable errors experienced due to the physical properties of the computing equipment itself. For exmaple, transistors in CPU, memory, hard drives are highly miniaturised, and the possibility of quantum tunneling/bits not being flipped etc., I'd imagine as high. I know there's a level of error checking that goes on, but couldn't this eventually lead to the more macroscopic effect of a software error?
 
I've been told that any error reported is always the result of a programming bug and should always be replicable. To what extent is this true?
 
I know without details of equipment used and program complexity this is a hard question to answer. But take a modern software development scenario (e.g. modern servers, Windows/Linux, a large piece of software such as Windows itself).
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Computational Errors  
« Reply #1 on: Jun 17th, 2008, 1:32pm »
Quote Quote Modify Modify

I just recently read something about how unlikely hardware errors are for personal computers; but I can't find where I read it. So unfortunately I can't give you the probability of how unlikely a calculation error is, but it's very low.
 
Of course replicability may still be a problem. If factors such as the sound in your headset's mike, the time of your system clock, and the last ten seconds of typing on the keyboard work together to create a unique situation that prompts an error, then good luck in replicating it.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
rmsgrey
Uberpuzzler
*****





134688278 134688278   rmsgrey   rmsgrey


Gender: male
Posts: 2873
Re: Computational Errors  
« Reply #2 on: Jun 18th, 2008, 5:20am »
Quote Quote Modify Modify

Of course, hardware faults can be significant, but in non-faulty equipment, I'd put money on a bug being in code first, then probably the OS, any other processes running, and any hardware drivers (in some order, depending on the system) then a compiler error all before suspecting a transient hardware error.
 
Of course, diagnosing a non-fault hardware error is going to be almost impossible - by its nature, it's not going to be replicable, so you'd need to be dumping a lot of data both before and after to have a reasonable chance of having enough to analyse the situation and eliminate all other possibilities.
 
 
It's always possible that a random hardware error will occur - in which case there's a fair chance of some form of unexpected output occuring - but software errors are still vastly more likely.
IP Logged
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: Computational Errors  
« Reply #3 on: Jun 18th, 2008, 8:54am »
Quote Quote Modify Modify

The most likely hardware problems are in the peripherals, like disk read errors, transmission problems, etc.
 
Now, there is one situation where you might have hardware glitches in the memory or CPU, it is when you overclock your CPU.
 
And the CPU is very sensitive to errors.  A single bit error can send the CPU off track and freeze the computer.
IP Logged
SMQ
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 2084
Re: Computational Errors  
« Reply #4 on: Jun 18th, 2008, 11:05am »
Quote Quote Modify Modify

on Jun 18th, 2008, 8:54am, Grimbal wrote:
Now, there is one situation where you might have hardware glitches in the memory or CPU, it is when you overclock your CPU.

Or buy cheap-ass memory.  My experience is that the off-brand/no brand memory really does have a vastly higher rate of intermittent problems than the memory from the "big three" (Kingston, Crucial, Corsair/Samsung).  I used to work for a company that built their own PCs (for internal use) as cheaply as possible rather than order from an OEM, and off-brand memory accounted for >75% of the (twelve or so) hardware failures I encountered.  YMMV, of course.
 
In general, though, the tip-off for hardware problems is that they generally effect everything, more-or-less randomly -- not just one program.
 
--SMQ
IP Logged

--SMQ

Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board