On 2007-06-06 18:48-0700 Alan W. Irwin wrote:

> On 2007-06-06 20:26-0400 Hazen Babcock wrote:
>
>>
>> On Jun 4, 2007, at 10:17 PM, Alan W. Irwin wrote:
>>> (2) Memory management issues
>>>
>>> Here is the associated error message (after I hit one additional CR after
>>> the last page of example 8 is displayed)
>>>
>>> *** glibc detected *** double free or corruption (!prev): 0x08050358 ***
>>>
>>> Unless there is some internal problem in the Ubuntu Dapper libraries (this
>>> is possible since these are old versions of each library) it sounds like
>>> your code might be trying to free something that has already been freed.
>>
>> I'm not seeing this in OS-X. If you are so inclined, could you go to the
>> sub-routine plD_tidy_xcairo(), line 783, in cairo.c and comment out the call
>> to plD_tidy_cairo() and/or the call to free() on line 796 and let me know
>> which one (if either) makes this message go away?
>
> Commenting out just plD_tidy_cairo() on line 783 makes no obvious difference
> and I still get the above error message.
>
> Commenting out just free() on line 796 gets rid of the above error message.
>
> Commenting out both lines also seems to get rid of the above error message,
> but I assume that is not the correct fix since the free seems to be the
> culprit.

BTW, we worked hard in the old days to get both the memory management and
familying issues correct for gd.c.  So if you follow that general pattern
(albeit with libcairo specifics), you should be okay.

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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to