[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-GIFT] memory overwriting bug

From: Wolfgang Mueller
Subject: [bug-GIFT] memory overwriting bug
Date: Wed, 4 Apr 2001 03:17:27 +0200 (CEST)

This is to describe a big'n ugly bug arising in 1.6pre (AFAIK only when
using multithreading) and the current CVS version:

There appears to be a memory leak of some sort (which I have not yet
spotted) that writes somewhere into the prairie without provoking a
segmentation violation. It seems? to occur in CQInverted file.

The error manifests itself by writing ill-formed (i.e. not
well-formed) XML, where either attributes have crazy values or crazy
names. In some cases this can mean that there is an out of memory
error when copying strings (i.e. there is no zero in memory to
terminate the string).

Currently I am getting at it by modifying CAttributeList, such that it
is storing each attribute twice and comparing the attributes each time
I use them. This makes assert()s fail quite early. I get them after
first deleting a session, maybe it's that. I will continue to look
into this. 


Wolfgang Müller, 
assistant-doctorant ==  PhD student (2001), teaching assistant
Personal page: http://cui.unige.ch/~vision/members/WolfgangMueller.html 
Maintainer, GNU Image Finding Tool (http://www.gnu.org/software/gift)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]