Skip to content
Discussion options

You must be logged in to vote

Huh this works for me. Some things to try. First, after you source the settings, you should be able to run dmalloc again to make sure that the high debug flags and the logpath are set:

$ ./dmalloc
Debug-Flags`` 0x4f4ed03 (83160323) (internal token: high)
...
Logpath      './logfile'

Or print out the DMALLOC env variable:

$ env | grep DMALLOC
DMALLOC_OPTIONS=debug=0x4f4ed03,inter=100,log=./logfile

Next, do a nm test on your utility to make sure that it linked with libdmalloc.a correctly. You should see a bunch of _dmalloc symbols:

$ nm test | grep dmalloc
00000000000f11c0 B _dmalloc_aborting_b
00000000000f11f0 B _dmalloc_address
...

Lastly, make sure you are running your test and not th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matthewluckie
Comment options

Answer selected by j256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants