On 2015-04-13 14:11-0400 Hazen Babcock wrote: > On 04/12/2015 08:23 AM, Alan W. Irwin wrote: >> >>> >>> Why do you think these Qt components fail in the tests, but work fine >>> if they are run independently? What is the testing framework doing >>> that is not being done from the command line? >> >> My guess is nothing explictly different is being done. Instead, you >> are dealing with a severe memory management issue which can sometimes >> (by accident) be symptomless and sometimes can result in segfaults. So >> segfaults typically imply severe memory management issues, but the >> converse is not always true. The only completely reliable way I know >> of to identify severe memory management issues is using valgrind to >> run the examples. If such a valgrind run (say on examples/c/x00c -dev >> pngwidget -o test.png -fam) shows severe memory management issues, >> then the Qt libraries on Lubuntu are the likely source of this issue. >> However, if that valgrind run shows no severe memory management issue, >> but you are getting segfaults on the x00 example with ctest (either >> run by hand after running "make all" or via the script), then that >> would be a strong indication that there is something wrong with either >> our ctest setup or our script. > > I've attached my some lubuntu valgrind results for pngqt vs pngcairo. > > valgrind ./x00c -dev pngqt -o test.png -fam >& png_qt.txt > valgrind ./x00c -dev pngcairo -o test.png -fam >& png_cairo.txt > > Severe memory management issues means errors greater than 0 in the final > ERROR SUMMARY line?
Yes. Valgrind detecting all those invalid reads is never a good thing even though this particular way of running the examples gave a symptomless (no segfault) result by chance. According to <http://en.wikipedia.org/wiki/Lubuntu>, Lubuntu is an official Ubuntu variant (unlike Kubuntu which is slightly unofficial). Just speculating here, but I wonder if Andrew's good results on Kubuntu are because that deploys a KDE desktop which necessarily means they must be careful that Qt (heavily used by KDE) is built correctly while the rest of the Ubuntu variants might be less than careful with their Qt build since it is only lightly used by those variants? 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); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); 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 __________________________ ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel