Closed Bug 823363 Opened 12 years ago Closed 11 years ago

DFD: a tool for detecting double-frees

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: n.nethercote, Unassigned)

Details

Attachments

(1 file)

Attached file DMD.cpp
DFD will complain if you:

- free()/realloc() a heap block that has already been freed, or

- free()/realloc() a non-heap-block pointer.

It's currently implemented as a hacked-up version of DMD.  Replace memory/replace/dmd/DMD.cpp with the copy of DMD.cpp in the attachment.  (I did it this way because a patch against DMD.cpp would bit-rot very quickly.)

Build and run it just like DMD (see https://wiki.mozilla.org/Performance/MemShrink/DMD for instructions).  Yes, all the names like --enable-dmd and $DMD are unchanged.  It runs significantly slower than a normal build, but should be moderately usable.

Output goes to /tmp/out.dfd or /data/local/tmp/out.dfd.
OS: Linux → All
Hardware: x86_64 → All
No longer blocks: 817946
This isn't going anywhere.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: