-
hello. The desired task is to compile the test.c source code and check memory usage(or memory leakage) using dmalloc. At this time, the dmalloc-related git clone process I applied is explained as follows.
The code in my test.c is as follows:
But, at this time, the logfile is not created. Any problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Huh this works for me. Some things to try. First, after you source the settings, you should be able to run
Or print out the DMALLOC env variable:
Next, do a
Lastly, make sure you are running your
|
Beta Was this translation helpful? Give feedback.
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:Or print out the DMALLOC env variable:
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:Lastly, make sure you are running your
test
and not th…