|
From: M Mohan-A. <mo...@mo...> - 2006-04-28 04:34:31
|
Hi All, I have two application where one process allocates shared memory and other process uses it and free the memory vica-versa. Does valgrind support here to check for memory leaks? Basically if valgrind supports checking leaks for shared memory then I can start these two process as single process with two different threads to test leaks. Please help me here. Thanks Mohan M |
|
From: Bryan M. <om...@br...> - 2006-04-28 09:56:27
|
Hi, at a guess, I would say that running your programs as two threads in a single process and marking the shared memory pointer with MALLOCLIKE_BLOCK and then FREELIKE_BLOCK when you free it could well be what you are looking for. See the docs and valgrind.h for the macros you need. You may also want to have a look at my omega tool: http://www.brainmurders.eclipse.co.uk/omega.html but it is still in beta. The choice is yours. hope this helps, Bryan "Brain Murders" Meredith M Mohan-A19706 wrote: > Hi All, > > I have two application where one process allocates shared memory and > other process uses it and free the memory vica-versa. > > Does valgrind support here to check for memory leaks? > > Basically if valgrind supports checking leaks for shared memory then I > can start these two process as single process with two different threads > to test leaks. > > Please help me here. > > Thanks > Mohan M > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |