Duma (software)

Duma (software)

Detect Unintended Memory Access (or DUMA) is a memory debugger. It consists of a library which programmers can link into their code to override the C standard library and C++ memory management functions. DUMA triggers a program crash when the memory error occurs, so a debugger can be used to inspect the code that caused the error.

This library is a fork of Bruce Perens' Electric Fence library, but also runs on Windows operating systems.

DUMA is intended to find several common types of programming bugs:

  • Overrunning the end (or beginning) of a dynamically allocated buffer
  • Using a dynamically allocated buffer after returning it to the heap
  • Detecting memory leaks
  • Detects mismatch of allocation/deallocation functions: f.e. allocation with malloc() but deallocation with operator delete

In above cases, DUMA causes the errant program to abort immediately via a segmentation fault. Normally, these errors would cause heap corruption, which would manifest itself only much later, usually in unrelated ways. Thus, DUMA helps programmers find the precise location of memory programming errors.

DUMA allocates at least two pages (often 8kB) for every allocated buffer. In some modes of operation, it does not deallocate freed buffers. Thus, DUMA vastly increases the memory requirements of programs being debugged. This leads to the recommendation that programmers should never leave DUMA linked against production code.

DUMA is free software licensed under the GNU General Public License.

See also

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Duma (disambiguation) — Duma can mean several things: Duma, a Russian representative assembly State Duma, the lower house of parliament of the Russian Federation State Duma of the Russian Empire, the legislative assembly in the Russian Empire Duma (epic), poetry of the… …   Wikipedia

  • Economy of Russia — Russia is a unique emerging market, in the sense that being the nucleus of a former superpower shows more anomalies. On one hand, its exports are primarily resource based, and on the other, it has a pool of technical talent in aerospace, nuclear… …   Wikipedia

  • Viktor Alksnis — ( ru. Виктор Имантович Алкснис , lv. Viktors Alksnis; born 21 June 1950 in Tashtagol, Kemerovo Oblast, USSR) is a ethnic Latvian former Soviet Air Force colonel and Russian ultranationalist politician. He is the chairman of Russian Center of Free …   Wikipedia

  • Moscow — This article is about the capital of Russia. For other uses, see Moscow (disambiguation). Moscow Москва (Russian)   Federal city   …   Wikipedia

  • Calendar of 1998 — ▪ 1999 January January 1       At the stroke of the new year, the Russian ruble is worth a thousand times less than before as three zeros are removed from its value; about six new rubles equal one U.S. dollar.       Foreign Minister David Levy… …   Universalium

  • Russian Tax Code — The Russian Tax Code is the primary tax law for the Russian Federation. The Code was created, adopted and implemented in three stages. Part One, enacted July 31, 1998, also referred to as General Part , regulates relationships between taxpayers,… …   Wikipedia

  • Calendar of 1995 — ▪ 1996 January January 1       Cardoso assumes office       Having won some 54% of the ballots cast in the October 1994 election, Fernando Cardoso took the oath of office as president of Brazil. As chief executive of South America s largest… …   Universalium

  • Nizhny Novgorod — For other cities named Novgorod, see Novgorod (disambiguation). Nizhny Novgorod (English) Нижний Новгород (Russian) …   Wikipedia

  • Calendar of 2000 — ▪ 2001 January We are fortunate to be alive at this moment in history. Never before has our nation enjoyed, at once, so much prosperity and social progress with so little internal crisis and so few external threats. Never before have we had such… …   Universalium

  • Bibliography — INTRODUCTION The number of books dedicated to the late Union of Soviet Socialist Republics (USSR) and its successor state, the Russian Federation, is virtually incalculable. This surfeit is due to a number of factors: Russia’s geographic size and …   Historical Dictionary of the Russian Federation

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”