Compiler crashes when reading PPU file
Original Reporter info from Mantis: cobines
-
Reporter name:
Original Reporter info from Mantis: cobines
- Reporter name:
Description:
I sometimes have these crashes when compiling a project. Two logs are attached, it is always either the one or the other error. It has something to do with reading or writing PPU files because as soon as I delete all the PPU files of the project it compiles successfully. It only happens on further compilations.
Unfortunately I cannot reproduce it on demand and I cannot supply a simple test project (although I've tried to do it). I'm hoping the backtrace will give some info.
When I have this error while compiling whole project then I can pinpoint the specific source file on which this error happens. I get this error:
ufilesource.pas(451,36) Error: Class or Object types "TFileSourceOperation" and "TFileSourceListOperation" are not related
Fatal: Compilation aborted
&LtPos;backtrace the same as in crashlog1.log>
However, the TFileSourceListOperation inherits from TFileSourceOperation and the compiler states they are not related. Maybe the info about these classes is read from PPU wrongly. If I remove all the code from that source file except a single "uses &LtPos;something>;" I still get this error. If I also remove the "uses" clause there is no error anymore. As I mentioned, if I delete all PPU files then the file is successfully compiled.
I use FPC 2.5.1 rev. 14644. System is Debian/Sid i386.
Mantis conversion info:
- Mantis ID: 15518
- Version: 2.5.1
- Fixed in version: 3.0.0