Stale pointer bug

(Or “aliasing bug”) A class of subtle programming errors that can arise in code that does dynamic allocation, especially via malloc or equivalent.
If several pointers address (are “aliases for”) a given hunk of storage, it may happen that the storage is freed or reallocated (and thus moved) through one alias and then referenced through another, which may lead to subtle (and possibly intermittent) lossage depending on the state and the allocation history of the malloc arena. This bug can be avoided by never creating aliases for allocated memory, or by use of a higher-level language, such as Lisp, which employs a garbage collector.
The term “aliasing bug” is nowadays associated with C programming, it was already in use in a very similar sense in the ALGOL 60 and Fortran communities in the 1960s.
See also smash the stack, fandango on core, memory leak, memory smash, spam.
[Jargon File]


Read Also:

  • Stalin

    noun 1. Joseph V (Iosif Vissarionovich Dzhugashvili or Dzugashvili) 1879–1953, Soviet political leader: secretary general of the Communist Party 1922–53; premier of the U.S.S.R. 1941–53. 2. a former name of Donetsk. 3. former name of Varna. 4. former name of Braşov. noun 1. Also called Stalino a former name (from after the Revolution until 1961) […]

  • Stalinabad

    noun 1. a former name of Dushanbe. noun 1. the former name (1929–61) of Dushanbe

  • Staling

    adjective, staler, stalest. 1. not fresh; vapid or flat, as beverages; dry or hardened, as bread. 2. musty; stagnant: stale air. 3. having lost novelty or interest; hackneyed; trite: a stale joke. 4. having lost freshness, vigor, quick intelligence, initiative, or the like, as from overstrain, boredom, or surfeit: He had grown stale on the […]

  • Stalingrad

    noun 1. former name of Volgograd. noun 1. the former name (1925–61) of Volgograd

Disclaimer: Stale pointer bug definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.