[fpc-devel] 3.3.1 Access violation during compile

Martin Frb lazarus at mfriebe.de
Thu Jun 30 22:03:31 CEST 2022


My 3.3.1 build is from the 27th June.
However the error did happened with the previous build too. (That is 
according to error msg, I did not compare the trace).

During a build of the Lazarus IDE, ppu files from the previous build 
still in place. Just a handful of source files changed.

There is no pattern to what needs to change.
But the error seems to be bound to a handful of locations (actually, not 
really checked, but I do notice it happens always in the same few units 
/ not sure of the pattern which one it happens in).

In the below case, it is the first function in the "implementation" 
section. ( ide\sourcefilemanager.pas(311,1) )
The function itself has no reference to any of the changed units.


(3104) Compiling sourcefilemanager.pas
B:\lazarus_main\ide\sourcefilemanager.pas(4886,20) Hint: (5024) 
Parameter "Sender" not used
B:\lazarus_main\ide\sourcefilemanager.pas(5178,44) Hint: (5091) Local 
variable "CompResourceCode" of a managed type does not seem to be 
initialized
B:\lazarus_main\ide\sourcefilemanager.pas(311,1) Error: (1026) 
Compilation raised exception internally
Fatal: (1018) Compilation aborted
An unhandled exception occurred at $0000000100089CA3:
EAccessViolation: Access violation
   $0000000100089CA3  OwnerHierarchyName,  line 2180 of symdef.pas
   $000000010008585D  typename,  line 406 of symtype.pas
   $000000010029ECFB  beforeappenddef,  line 1822 of dbgdwarf.pas
   $00000001000652AD  appenddef,  line 242 of dbgbase.pas
   $00000001000655F1  write_remaining_defs_to_write,  line 314 of 
dbgbase.pas
   $00000001002A3E7D  inserttypeinfo,  line 3293 of dbgdwarf.pas
   $0000000100226DE1  finish_unit,  line 1388 of pmodules.pas
   $0000000100226776  proc_unit,  line 1158 of pmodules.pas
   $000000010004CE50  compile,  line 403 of parser.pas
   $000000010015D816  loadppu,  line 2289 of fppu.pas
   $0000000100224DEE  loadunits,  line 542 of pmodules.pas
   $000000010022600D  proc_unit,  line 1002 of pmodules.pas
   $000000010004CE50  compile,  line 403 of parser.pas
   $000000010015D816  loadppu,  line 2289 of fppu.pas
   $0000000100224DEE  loadunits,  line 542 of pmodules.pas
   $0000000100228A1D  proc_program,  line 2165 of pmodules.pas
   $000000010004CEA1  compile,  line 411 of parser.pas



More information about the fpc-devel mailing list