Re: Has the pango_itemize call changed since libpango 1.8? We now get severe valgrind issues (invalid read and others) associated with this call.
- From: Behdad Esfahbod <behdad behdad org>
- To: "Alan W. Irwin" <irwin beluga phys uvic ca>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Has the pango_itemize call changed since libpango 1.8? We now get severe valgrind issues (invalid read and others) associated with this call.
- Date: Sun, 25 Mar 2007 18:06:18 -0400
On Sun, 2007-03-25 at 13:51 -0700, Alan W. Irwin wrote:
> 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?
Not really.
All the warnings you attached look like false positives happening deep
into the libc. What happens if you use the 1.8.1 pango on the same
system as the one you tested 1.12.3?
behdad
> 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
> __________________________
> _______________________________________________ gtk-i18n-list mailing list gtk-i18n-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]