|
From: Irek S. <ij...@ii...> - 2005-10-06 02:34:06
|
Thank you, Paul, for your reply. Paul Pluzhnikov wrote: >> I used massif before with the same code and got some results. What >> am I doing wrong this time? > > Probably linking with libc.a or linking static malloc() > implementation from some other library. > What does 'nm simone | grep malloc' report? This command returns nothing, because I am not using malloc. The program is written in C++. The command 'nm -C simone | grep new' returns among other things this: > U operator new[](unsigned int) > U operator new(unsigned int) > 0804ba90 W operator new(unsigned int, void*) The command 'ldd simone' says: > libdmallocxx.so => /usr/lib/libdmallocxx.so (0x00c79000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x009e0000) > libm.so.6 => /lib/tls/libm.so.6 (0x006d7000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00aad000) > libc.so.6 => /lib/tls/libc.so.6 (0x005ab000) > /lib/ld-linux.so.2 (0x00591000) But 'nm -C /usr/lib/libstdc++.so.6' says: > nm: /usr/lib/libstdc++.so.6: no symbols which is a new thing on me. Thanks & best, Irek |