lcl.chm crashes textmode IDE
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
I've been wrestling with a problem in the textmode IDE that I can't find since fall 2008. I've already spent days trying to debug this, but to no avail.
(see steps to reproduce below)
The crash is in loading the index of the lcl, something that has a few thousand entries. Usually the crash is when 1500-2000 entries are loaded.
I suspect the tableformatting routines (ttable.formattable in whtmlhlp.pas), but haven't been able to find anything.
Things I tried:
- debugger stops in the tcollection (is roughly TV tlist) with items, which probably is corrupted.
- varying architecture and OS -> crash seems independant of it, except location
- tried valgrind to raise possible problem places.
- tried writeln debugging (http://wiki.freepascal.org/Textmode_IDE_development#Writeln_like define wdebug)
- tried to enable runtime checks to see if that would point to suspect code.
All to no avail. I could really use a fresh set of eyes.
Steps to reproduce:
- register any lcl.chm in the IDE (e.g. from http://www.stack.nl/~marcov/doc-chm.zip ).
- Press F1, then select "index".
Usually the IDE will crash. (less than 5% of the cases it won't, if so, change something about the build, e.g. debuginfo).
Mantis conversion info:
- Mantis ID: 14313
- OS: All
- Platform: All
- Version: 2.3.1
- Target version: 2.4.0