logic error

Code thinks wrong

A logic error is a bug in a program that causes it to produce incorrect results or behave unexpectedly, even though the code runs without crashing.

Unlike syntax errors, which prevent code from compiling, logic errors stem from flawed reasoning in the algorithm itself: The program ran fine but gave wrong totals—turned out to be a logic error in the calculation loop.

fallacy

non sequitur

Illogical conclusion or remark

begging the question · contradiction · flawed reasoning · equivocation · false equivalence · overgeneralization

reasoning

miscalculation

Error in estimation

misapplication · wrong conclusion · non sequitur · broken chain

programming

bug

Crawling creature or defect

  • defectInherent imperfection or fault
  • flawImperfection in something
  • exceptionDeviation from standard

infinite loop · memory leak · off-by-one · stack overflow · race condition · deadlock · buffer overflow · division by zero

debugging

troubleshoot

Identify and fix faults

step through · inspect · fix · patch · resolve · validate · test · code review · stack trace · reproduce

Categories
Opposites
error type in programming

logic errorsyntax error

Invalid code structure

grammatical error · type error · runtime error

Family

logic, error, logical, logically, illogical, logician, logistics, logistic, logo

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Rated G