Hello, I found out...
CRYPTO_malloc does not allocate the memory itself. It invokes some other function within libssl.so. This function does not have any name, and is shown as ??? (I use massif visualizer to view the results). Is it possible to suppress all allocations from certain library, like libssl.so? Best regards Marian Dne 24.4.2012 15:58, Julian Seward napsal(a): > On Tuesday, April 24, 2012, you wrote: >> Dear Julian, >> >> yes, you were right, and the spaces seem to matter. >> >> (I am a bit surprised, as I wouldn't expect that; from compiler's point >> of view they are inert). >> >> But it seems that once I enter the method name precisely as reported by >> nm -gC, including >> the spaces after the commas, the --ignore-fn starts to work. >> >> And no mangling was necessary. >> >> I found yet another interesting problem, though. >> >> In the openssl library, there is a method called CRYPTO_malloc. I want >> to set it as a custom allocator; massif does not allow me to, or, again, >> ignores my attempts to do so from the command line. > No idea .. check you have the name right, check the function really > got compiled in, and not inlined everywhere. > > J > >> Again, tried with spaces, without spaces, full signature, or no... >> >> Best regards >> >> Marian >> >> Dne 24.4.2012 12:07, Julian Seward napsal(a): >>> On Tuesday, April 24, 2012, you wrote: >>>> Hello, >>>> >>>> yes, I removed the spaces between the parameter names. Does that matter? >>> I don't know for sure but I would guess it does. >>> >>> J >>> >>>> Best regards >>>> >>>> Marian >>>> >>>> Also ... >>>> >>>> --ignore-fn='CSDLUtil::CreateFontTextureBuffer(MShineFont&,unsigned >>>> int,unsigned int)' did you remove the spaces between the parameter >>>> names? J ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
