user966379
user966379

Reputation: 2993

How to run dmalloc in linux(OPENSUSE)?

file : main.c

to run dmalloc I have done the following step.

1) gcc -ldmalloc -o test main.c

2) function dmalloc { eval command dmalloc -b $*; }

dmalloc -l logfile -i 100 low

3) ./test

where will I get the result?

Even i could not get the logfile.

Upvotes: 2

Views: 235

Answers (1)

limbo
limbo

Reputation: 11

make sure that your environment actually contains the DMALLOC_OPTIONS variable before running the program. Different shells may be different with the eval. Make sure you actually do a malloc in your test program, else it may not have initialized properly.

Upvotes: 1

Related Questions