This is a question about the proper way to set up the call to pango_itemize for libpango. When I build libLASi (http://www.unifont.org/lasi/) using the Debian stable development libraries (Version: 1.8.1-1 of libpango and Version: 2.1.7-6 of libfreetype), and build a simple example that links to libLASi, the result is valgrind clean (except for some unfreed memory at the end). When I or any of my colleagues on the libLASi development team build against any version of libpango later than that (e.g., Ubuntu Dapper with Version: 1.12.3-0ubuntu3 of libpango and Version: 2.1.10-1ubuntu2.2 of libfreetype) then the same simple example exhibits severe valgrind memory management problems (e.g., invalid reads) associated with the call to pango_itemize. Please check the attachment for details of the valgrind output. You will see there that every valgrind complaint is associated with the call to pango_itemize. Has there been some change to how users should set up pango_itemize since version 1.8.1 of the libpango library? N.B. I don't have much experience with C++ or libLASi (I was brought on to the libLASI development team because of my CMake skills), but I cannot see anything obviously wrong we are doing with how pango_itemize is called (see http://lasi.svn.sourceforge.net/viewvc/lasi/trunk/src/psDoc.cpp?revision=73&view=markup) so it may be something subtle such as modern libpango demands more of the setup for the call to pango_itemize than version 1.8.1 of the library. Nobody on the libLASi development team (all with better C++/libLASi skills than me) has been able to solve this issue so I thought a simple question to the libpango experts on this list might lead to the solution instead. I hope I am right! :-) 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 Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________
Attachment:
valgrind.out.gz
Description: compressed valgrind output