On 2008-10-24 23:04-0400 Hazen Babcock wrote: > > On Oct 24, 2008, at 10:26 PM, Hazen Babcock wrote: > >> On closer inspection, the svg driver is pretty much riddled with this >> problem. You could have all kinds of strange things happen if you >> tried to use two or more svg streams concurrently, not the least of >> which would be that all your output would always go into the current >> stream and then it would likely crash when you closed one of the >> streams. >> >> I was probably being lazy when I wrote it. I will try and fix it up >> in the next day or two. > > Ok. This was pretty straightforward if a little tedious. Tentatively > this driver (rev 8965) should now be capable of dealing with multiple > plotting streams simultaneously.
Hi Hazen: ctest revealed a segfault for the familied files case for example 7. valgrind confirmed memory management issues whenever -fam was turned on for any multipage example (e.g., example 2). By chance, example 7 is the one that turned into a segfault. This reminded me of similar problems years ago for gd.c so I looked in the same place in the code where ordering was so important then for the way device-dependent data were handled, and I made sure svg.c followed the same order and ideas as well. Those changes (culminating in revision 8975) now lead to an absolutely clean valgrind result for example 7 (with -fam option) and example 10 (without the -fam option). Also ctest runs through all the examples without problems now for -dev svg. So it appears my fixes (which simply follow the pattern in gd.c) work. I don't claim to have a deep understanding of what is going on, however, so it would be good to review my changes. 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 __________________________ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
