Hi Hez: Here is how to quickly generate the segfault that is mentioned in the subject line from an initially empty build tree.
softw...@raven> cmake \ "-DCMAKE_INSTALL_PREFIX=/home/software/plplot_svn/installcmake" \ -DBUILD_TEST=ON ../plplot_cmake_qt >& cmake.out softw...@raven> make x01c cairo softw...@raven> examples/c/x01c -dev pngcairo -o test.png PLplot library version: 5.9.5 Segmentation fault Here is the corresponding initial valgrind error: ==28922== Use of uninitialised value of size 8 ==28922== at 0x7201314: cairo_transform (in /usr/lib/libcairo.so.2.17.5) ==28922== by 0x6B9C995: rotate_cairo_surface (cairo.c:1488) ==28922== by 0x6B9DE5A: plD_init_pngcairo (cairo.c:2282) ==28922== by 0x4E3E2BF: plP_init (plcore.c:144) ==28922== by 0x4E434E9: c_plinit (plcore.c:2248) ==28922== by 0x4E432A8: c_plstar (plcore.c:2171) ==28922== by 0x4014D2: main (x01c.c:133) So it appears line 1488 of cairo.c is making a call to cairo with something essential undefined with -dev pngcairo. -dev xcairo did not have any such valgrind errors. Also, revision 10861 of cairo.c generated no valgrind errors (or segfaults) with -dev pngcairo and produced a good looking png result. Hope these multiple clues help you to get quickly to the bottom of this segfault. 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 __________________________ ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel