From: <flo...@iw...> - 2012-11-22 21:57:13
|
Dear Andrew, thanks for the quick reply. My plplot version is 5.9.9 and I use the current cairo driver on Ubuntu12.10. I tried plplot example02 with a full valgrind memory leak check. Same problem for the plptex function. With "just"=0.0 no problem, with "just" any different number the following valgrind output (as an example). Line 152 is the plptex function: plptex( 0.5, 0.5, 1.0, 0.0, 0.5, text ); ==7448== 500,000 bytes in 100 blocks are definitely lost in loss record 795 of 795 ==7448== at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==7448== by 0x7195E7B: ??? (in /usr/lib/plplot5.9.9/driversd/cairo.so) ==7448== by 0x4E4A5C8: plP_esc (in /usr/lib/libplplotd.so.11.0.0) ==7448== by 0x4E4D53B: ??? (in /usr/lib/libplplotd.so.11.0.0) ==7448== by 0x4E6A989: c_plmtex (in /usr/lib/libplplotd.so.11.0.0) ==7448== by 0x4E6AF84: ??? (in /usr/lib/libplplotd.so.11.0.0) ==7448== by 0x4E6B2C7: c_plptex (in /usr/lib/libplplotd.so.11.0.0) ==7448== by 0x401385: draw_windows(int, int) (plot_test.cpp:152) ==7448== by 0x4011BA: demo2() (plot_test.cpp:115) ==7448== by 0x400EF1: main (plot_test.cpp:30) Cheers Flo. Quoting Andrew Ross <and...@us...>: > > Dear Florian, > > Perhaps you can give us more details of what you are doing? These functions > are basic plplot functions and are well tested. Our first 3 examples cover > all of these cases. Using valgrind under Linux and the psc driver all > three of these examples produce completely clean results with the current > svn version. It seems unlikely therefore that is is an intrinsic problem > with plplot. Do you see the problems with these 3 examples? > > To pin down your problem will require more information. In particular > - a clearer description of your code (if you can condense it to a very > simple example which exhibits the problem that is immensely helpful) > - what version of plplot you are using > - what platform (e.g. Windows MinGW, Linux etc) > - what drivers you are using (some drivers with external library > dependencies exhibit memory leaks related to bugs in the library and > not to plplot itself) > - how you are testing for memory leaks (on Linux valgrind is a very useful > tool) > > Regards > > Andrew > > On Thu, Nov 22, 2012 at 04:43:37PM +0100, > flo...@iw... wrote: >> Hi, >> >> I get memory leaks for the following plplot functions and I couldn't >> find anything related to that topic. >> >> plptex using any 'just' value != 0.0 >> plbox using option 'n' >> plmtex >> pllab >> >> It's a bigger program so the memory leaks in gigabyte size, which >> is not nice. >> Any suggestions, what I'm doing wrong or is it a plplot problem? >> >> Thanks, >> Flo. >> >> >> ------------------------------------------------------------------------------ >> Monitor your physical, virtual and cloud infrastructure from a single >> web console. Get in-depth insight into apps, servers, databases, vmware, >> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >> Pricing starts from $795 for 25 servers or applications! >> http://p.sf.net/sfu/zoho_dev2dev_nov >> _______________________________________________ >> Plplot-general mailing list >> Plp...@li... >> https://lists.sourceforge.net/lists/listinfo/plplot-general >> > |