[fpc-devel] SetString difference between Ansistring and UnicodeString

Vincent Snijders vsnijders at vodafonevast.nl
Thu Oct 8 14:27:01 CEST 2009


Marco van de Voort schreef:
> In our previous episode, Vincent Snijders said:
>>> Vincent Snijders schreef:
>>>> While running valgrind on fpcdoc, I got a warning in
>>> Maybe you are interested in the valgind output. See attachment.
>>>
>> Another problem, that was also in the valgrind output (reading uninitialized memory):
>> EAccessViolation : Access violation
>>    $08099882  TNODEPOOL__DESTROY,  line 3304 of src/dom.pp
>>    $080BFF73  THTMLWRITER__WRITEDOC,  line 3341 of dw_html.pp
>>    $08049809  CREATEDOCUMENTATION,  line 267 of fpdoc.pp
>>    $08049A00  main,  line 290 of fpdoc.pp
> 
> Nodepool and friends use objects on non-allocated memory. It might be that
> valgrind doesn't understand that. I think DOM should have a define to turn
> that off, for debugging purposes.

Well, this AV is from a build with gt, which seems to suggest that the nodepool is 
reading from uninitialized memory. I doubt that the valgrind warning is false.

I admit these are mere hints at a possible bug, but if I were maintainer of that 
code, I would take another look at it.

Vincent



More information about the fpc-devel mailing list