I have just discovered that the new C example 16 (yet to be propagated to non-C languages) exposes severe memory management issues with -dev cgm. The various symptoms are segfaults, double frees, and lots of messages from valgrind.
All other examples I have checked with this device are absolutely valgrind clean so I suspect it is the new updating of the colour palettes that occurs for every page of example 16 that is exposing the cgm issue. Note the rather similar gd.c (also written originally by Andrew Roach) has no such issues with the new example 16 so the fix to cgm.c is probably straightforward, but I don't have time right now to deal with this so I am hoping someone else will deal with it. Because of this issue I have disabled this device by default (revision 10194) for now. Thus, to see the issue, you will have to specify -DPLD_cgm=ON. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
