|
From: Irek S. <ij...@ii...> - 2005-10-04 21:05:53
|
I have a question on the massif tool. Valgrind and massif have been working great showing that indeed there is a problem with my code. However, I am unable to trace where the problem exactly is. I am using Valgrind v. 2.2.0 on Fedora 3, Linux 2.6.10. Massif produces files massif.<pid>.ps and massif.<pid>.txt. I can see in the massif.<pid>.ps image that indeed there is one function that allocates a lot of memory. Unfortunately its name is cut short, because it wouldn't fit into the image. So I know this function is: x80621D3:__gnu_cxx::new_ When I used the nm command to find the symbol __gnu_cxx::new_, numerous symbols matched, and no symbol is reported to be at the address x80621D3. Moreover, this address in not mentioned in the massif.<pid>.txt file, so I cannot track down what this function is. If needed, you can find the output files of the massif tool here: http://www.iitis.gliwice.pl/~iszczesniak/massif.5718.pdf http://www.iitis.gliwice.pl/~iszczesniak/massif.5718.txt Thanks for reading. I would appreciate your help. Thank you & best, Irek |
|
From: Nicholas N. <nj...@cs...> - 2005-10-04 21:11:06
|
On Tue, 4 Oct 2005, Irek Szczesniak wrote:
> I have a question on the massif tool. Valgrind and massif have been
> working great showing that indeed there is a problem with my code.
> However, I am unable to trace where the problem exactly is. I am
> using Valgrind v. 2.2.0 on Fedora 3, Linux 2.6.10.
>
> Massif produces files massif.<pid>.ps and massif.<pid>.txt. I can see
> in the massif.<pid>.ps image that indeed there is one function that
> allocates a lot of memory. Unfortunately its name is cut short,
> because it wouldn't fit into the image.
Change the '16' in this line in massif/ms_main.c:
if ( ! VG_(get_fnname)(xtree_snapshot->xpt->ip, buf2, 16)) {
to something larger (anything less than 1024 should be ok).
Nick
|
|
From: Irek S. <ij...@ii...> - 2005-10-04 22:25:57
|
Nicholas Nethercote wrote:
>> Massif produces files massif.<pid>.ps and massif.<pid>.txt. I can
>> see in the massif.<pid>.ps image that indeed there is one function
>> that allocates a lot of memory. Unfortunately its name is cut
>> short, because it wouldn't fit into the image.
>
> Change the '16' in this line in massif/ms_main.c:
>
> if ( ! VG_(get_fnname)(xtree_snapshot->xpt->ip, buf2, 16)) {
>
> to something larger (anything less than 1024 should be ok).
Thank you for your response. I am happy that the author of massif
replied to my post! I made the change and got the name of the
function.
Thanks again & best,
Irek
|