• Stars
    star
    159
  • Rank 235,916 (Top 5 %)
  • Language
    C
  • License
    ISC License
  • Created over 6 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Debug Malloc memory allocation debugging C library

Debug Malloc Library

Version 5.6.5 -- 12/28/2020

CircleCI

The debug memory allocation or "dmalloc" library has been designed as a drop in replacement for the system's malloc, realloc, calloc, free and other memory management routines while providing powerful debugging facilities configurable at runtime. These facilities include such things as memory-leak tracking, fence-post write detection, file/line number reporting, and general logging of statistics.

The library is reasonably portable having been run successfully on at least the following operating systems: AIX, DGUX, Free/Net/OpenBSD, GNU/Hurd, HPUX, Irix, Linux, OSX, NeXT, OSF/DUX, SCO, Solaris, Sunos, Ultrix, Unixware, MS Windows, and Unicos on a Cray T3E. It also provides support for the debugging of threaded programs.

The package includes the library, configuration scripts, debug utility application, test program, and documentation. Online documentation as well as the full source is available at the dmalloc home page.

Enjoy. Gray Watson

Documentation

See the INSTALL.txt file for building, installation, and quick-start notes.

Examine the html documentation for dmalloc. The source of all documation is the dmalloc.texi texinfo file which also can generate PDF hardcopy output with the help of the texinfo.tex file. You can download the full documentation package or read it online from the repository.

Quick Getting Started

This section should give you an idea on how to get going. See the more complete getting started documentation for more details.

  1. Download the latest version of the library available from https://dmalloc.com/.

  2. Run ./configure to configure the library.

  3. Run make install to install the library on your system.

  4. Add an alias for the dmalloc utility. The idea is to have the shell capture the dmalloc program's output and adjust the environment.

    Bash, ksh, and zsh users should add the following to their dot files:

    function dmalloc { eval `command dmalloc -b $*`; }
    

    Csh or tcsh users should add the following to their dot files:

    alias dmalloc 'eval `\dmalloc -C \!*`'
    
  5. Link the dmalloc library into your program and the end of the library list.

  6. Enable the debugging features by (for example) typing dmalloc -l logfile -i 100 low. Use dmalloc --usage to see other arguments to the dmalloc program.

  7. Run your program, examine the logfile, and use its information to help debug your program.

Thanks

The initial idea of this library came from Doug Balog. He and many other net folk contributed to the design, development, and continued maintenence of the library. My thanks goes out to them all.

ChangeLog Release Notes

See the ChangeLog.txt file.

More Repositories

1

ormlite-android

ORMLite Android functionality used in conjunction with ormlite-core
Java
1,588
star
2

ormlite-core

Core ORMLite functionality that provides a lite Java ORM in conjunction with ormlite-jdbc or ormlite-android
Java
577
star
3

two-factor-auth

Two Factor Authentication Java code implementing the Time-based One-time Password Algorithm
Java
313
star
4

ormlite-jdbc

ORMLite JDBC functionality that works with JDBC drivers to attach to various database types
Java
224
star
5

simplemagic

Simple file magic number and content-type library which provides mime-type determination from files and byte arrays
Java
218
star
6

ormlite-examples

Various example programs
Java
181
star
7

simplejmx

Simple JMX Java Library to help with the publishing of objects using JMX and the web
Java
92
star
8

cloudwatch-logback-appender

Appender that publishes logback log entries to AWS CloudWatch
Java
55
star
9

simplecsv

Simple Java CSV reading and writing library using Java annotations
Java
24
star
10

perl-two-factor-auth

Two Factor Authentication Perl code
Perl
13
star
11

ormlite-tests

More extensive unit tests
Java
6
star
12

simplelogging

Simple Java logging facade which can backend into a number of different logging implementations and is designed to be copied into another project.
Java
5
star
13

simplezip

Java processing of Zip files that gives full control over all Zip disk structures
Java
5
star
14

simplemetrics

Simple Java metrics for counting and publishing metrics from Java applications
Java
3
star
15

test-check-publisher-maven-plugin

Maven plugin designed to take tests results produced by continuous integration systems and publish them to github as a "check" annotation on a particular commit.
Java
2
star
16

simple-web-framework

Simple web framework for providing annotation based web request handling
Java
2
star
17

ormlite-android-tests

Android specific tests for the emulator.
Java
2
star
18

mailgw

Mailgw Issues and Feature Requests
1
star
19

sortu

Unit sort command-line utility with the ability to count unique entries inline. Also includes some cut features to handle fields.
C
1
star
20

null

Unix command line utility which combines /dev/null, tree, md5sum, and other useful features.
C
1
star