[fpc-devel] Valgrind errors in TReader

Micha Nelissen micha at neli.hopto.org
Fri Aug 12 10:47:37 CEST 2005


Hi,

I've been valgrind'ing an LCL application, and valgrind reports a lot of errors TReader.ReadProperty:

==13664== 182 errors in context 31 of 34:
==13664== Conditional jump or move depends on uninitialised value(s)
==13664==    at 0x8099602: SYSUTILS_STRSCAN$PCHAR$CHAR$$PCHAR (strings.inc:485)
==13664==    by 0x808C215: CLASSES_TREADER_$__READPROPERTY$TPERSISTENT (reader.inc:991)
==13664==    by 0x808BC6E: CLASSES_TREADER_$__READDATA$TCOMPONENT (reader.inc:833)
==13664==    by 0x8083A02: CLASSES_TCOMPONENT_$__READSTATE$TREADER (compon.inc:253)
==13664==    by 0x808CE7A: CLASSES_TREADER_$__READROOTCOMPONENT$TCOMPONENT$$TCOMPONENT (reader.inc:1203)

In various places in strings.inc, line 485, 488, 490, 495. Something wrong there? Looking at reader.inc, code does not seem to wrong on first look, but maybe I'm not looking good enough; or it's a problem in the assembly, but dissecting assembly takes quite some time :S

Should I make a bug report (my experience with valgrind is only little, so maybe I've done something wrong?) ?

Micha




More information about the fpc-devel mailing list