[liblouis-liblouisxml] Re: Has memory-handling changed in liblouis?

  • From: Bert Frees <bertfrees@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 15 May 2012 14:15:57 +0200

Hi John,

I have no idea what might cause this. The changes we did were not that substantial.

The new variable "prevSrcMapping" is allocated and freed the same way "srcMapping" is, in liblouis_allocMem / liblouis_free (for this I also had to add a name to the AllocBuf enumeration definition in louis.h). At the end of the translation, srcMapping is memcopied to inputPositions (line 216 in lou_translate).

/Bert


On 05/15/2012 09:50 AM, John J. Boyer wrote:
This is mostly for Christian and Bert. When using formatFor utd in
liblouisutdml I set aside about 64K for the input-positions array.
Everything seems to go fine until near the end of processing, when this
array is freed. Then the system produces some kind of dump. This is on
Linux. It is new with the new changes to the liblouis code. I looked at
liblouis_allocMem, and it seems to be just the same. Do you have
suggestions as to what might cause this problem and how it might be
solved?

Thanks,
John


Other related posts: