fpdoc/fcl-passrc can no longer parse system.fpd
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 tried to investigate some of the fpdoc problems, and it seems that fpdoc can no longer parse system.fpd
Steps to reproduce:
Error: C:\repo\fixes30\rtl\inc\system.fpd(64,20): Expected "," or ":" at token ")" in file C:\repo\fixes30\rtl\inc\system.fpd at line 64 column 20
which is the first line of the next block:
Procedure Write (V1);
Procedure Write (V1,V2);
Procedure Write (V1,V2,v3);
Procedure WriteLn (V1);
Procedure WriteLn (V1,V2);
Procedure WriteLn (V1,V2,v3);
Additional information:
maybe related:
A sigsegv happens before this sometimes at
Program received signal SIGSEGV, Segmentation fault.
TPASPARSER__HASTOKEN (this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:931
931 if FTokenRingStart<FTokenRingEnd then
(gdb)
in unit baseunix.
#0 TPASPARSER__HASTOKEN (this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:931
#1 0x0046ba14 in TPASPARSER__CURSOURCEPOS (this=<error reading variable>, result=...) at ./fcl-passrc/src/pparser.pp:921
#2 0x0046b303 in TPASTREECONTAINER__FINISHSCOPE (SCOPETYPE=27587940, EL=0x3bbf0b8, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:762
#3 0x00471c56 in TPASPARSER__PARSEUSESLIST (ASECTION=0x3bbf0b8, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:3444
#4 0x004704aa in TPASPARSER__PARSEOPTIONALUSESLIST (ASECTION=0x1a4f564, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:2851
#5 0x00470509 in TPASPARSER__PARSEINTERFACE (this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:2866
#6 0x0046ff34 in TPASPARSER__PARSEUNIT (MODULE=0x9e11640, this=<error reading variable>, parentfp=0x1a4f5f4)
at ./fcl-passrc/src/pparser.pp:2720
#7 0x0046fcf5 in TPASPARSER__PARSEMAIN (MODULE=0x9e11640, this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:2675
#8 0x0046ae93 in PARSESOURCE (AENGINE=0x3bd0558,
FPCCOMMANDLINE=0x3c5e92c 'c:\repo\fixes30/rtl/unix/baseunix.pp -dcpu64 -Fic:\repo\fixes30/rtl/unix -Fic:\repo\fixes30/rtl/
x -Fic:\repo\fixes30/rtl/linux/i386', OSTARGET=0x3bac264 'Linux', CPUTARGET=0x3bac284 'x86_64', OPTIONS=...)
at ./fcl-passrc/src/pparser.pp:704
#9 0x0046aa5c in PARSESOURCE (AENGINE=0x0, FPCCOMMANDLINE=0x0, OSTARGET=0x3bbf0b8 'x'#13'L',
CPUTARGET=0x1a4f6b0 '@'#22'á'#9'dº'#3',éÅ'#3'X'#5'½'#3'äö¤'#1'\ªF', USESTREAMS=false) at ./fcl-passrc/src/pparser.pp:558
#10 0x00433389 in TFPDOCENGINE__PARSEUSEDUNIT (ANAME=0x9d4c634 'BaseUnix',
AINPUTLINE=0x3c5e92c 'c:\repo\fixes30/rtl/unix/baseunix.pp -dcpu64 -Fic:\repo\fixes30/rtl/unix -Fic:\repo\fixes30/rtl/linu
ic:\repo\fixes30/rtl/linux/i386', AOSTARGET=0x3bac264 'Linux', ACPUTARGET=0x3bac284 'x86_64', this=<error reading variable>)
at fpdoc/dglobals.pp:1266
#11 0x004331b5 in TFPDOCENGINE__FINDMODULE (ANAME=0x9d4c634 'BaseUnix', this=<error reading variable>) at fpdoc/dglobals.pp:12
#12 0x00471738 in TPASPARSER__ADDUSEUNIT (ASECTION=0x3bbf128, NAMEPOS=..., AUNITNAME=0x9d4c634 'BaseUnix', NAMEEXPR=0x9e11500,
INFILEEXPR=0x0, this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:3345
#13 0x00471bef in TPASPARSER__PARSEUSESLIST (ASECTION=0x3bbf128, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:3429
#14 0x004704aa in TPASPARSER__PARSEOPTIONALUSESLIST (ASECTION=0x1a4f6b0, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:2851
#15 0x00470509 in TPASPARSER__PARSEINTERFACE (this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:2866
#16 0x0046ff34 in TPASPARSER__PARSEUNIT (MODULE=0x9e11550, this=<error reading variable>, parentfp=0x1a4f864)
at ./fcl-passrc/src/pparser.pp:2720
#17 0x0046fcf5 in TPASPARSER__PARSEMAIN (MODULE=0x9e11550, this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:2675
#18 0x0046ae93 in PARSESOURCE (AENGINE=0x3bd0558,
FPCCOMMANDLINE=0x3c38474 'c:\repo\fixes30/rtl/linux/linux.pp -dclone_implemented -Fic:\repo\fixes30/rtl/linux -Fic:\repo\f
30/rtl/unix', OSTARGET=0x3bac264 'Linux', CPUTARGET=0x3bac284 'x86_64', OPTIONS=...) at ./fcl-passrc/src/pparser.pp:704
#19 0x0046aa5c in PARSESOURCE (AENGINE=0x0, FPCCOMMANDLINE=0x0, OSTARGET=0x3bbf0b8 'x'#13'L',
CPUTARGET=0x1a4f920 'P'#21'á'#9'dº'#3't'#132'Ã'#3'X'#5'½'#3'Tù¤'#1'\ªF', USESTREAMS=false)
at ./fcl-passrc/src/pparser.pp:558
#20 0x00433389 in TFPDOCENGINE__PARSEUSEDUNIT (ANAME=0x9d4c4d4 'linux',
AINPUTLINE=0x3c38474 'c:\repo\fixes30/rtl/linux/linux.pp -dclone_implemented -Fic:\repo\fixes30/rtl/linux -Fic:\repo\fixes
tl/unix', AOSTARGET=0x3bac264 'Linux', ACPUTARGET=0x3bac284 'x86_64', this=<error reading variable>) at fpdoc/dglobals.pp:1266
#21 0x004331b5 in TFPDOCENGINE__FINDMODULE (ANAME=0x9d4c4d4 'linux', this=<error reading variable>) at fpdoc/dglobals.pp:1235
#22 0x00471738 in TPASPARSER__ADDUSEUNIT (ASECTION=0x3bbf048, NAMEPOS=..., AUNITNAME=0x9d4c4d4 'linux', NAMEEXPR=0x9e11320,
INFILEEXPR=0x0, this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:3345
#23 0x00471bef in TPASPARSER__PARSEUSESLIST (ASECTION=0x3bbf048, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:3429
#24 0x004704aa in TPASPARSER__PARSEOPTIONALUSESLIST (ASECTION=0x1a4f920, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:2851
#25 0x00470509 in TPASPARSER__PARSEINTERFACE (this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:2866
#26 0x0046ff34 in TPASPARSER__PARSEUNIT (MODULE=0x9e112d0, this=<error reading variable>, parentfp=0x1a4fad4)
at ./fcl-passrc/src/pparser.pp:2720
#27 0x0046fcf5 in TPASPARSER__PARSEMAIN (MODULE=0x9e112d0, this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:2675
#28 0x0046ae93 in PARSESOURCE (AENGINE=0x3bd0558,
FPCCOMMANDLINE=0x3c4e65c 'c:\repo\fixes30/rtl/unix/sysutils.pp -dFPC_HAS_UNICODESTRING -dFPC_HAS_FEATURE_THREADING -dFPC_H
YPE_EXTENDED -dFPC_HAS_TYPE_DOUBLE -dFPC_HAS_TYPE_SINGLE -Fic:\repo\fixes30/rtl/objpas/sysutils -Fic'...,
OSTARGET=0x3bac264 'Linux', CPUTARGET=0x3bac284 'x86_64', OPTIONS=...) at ./fcl-passrc/src/pparser.pp:704
#29 0x0046aa5c in PARSESOURCE (AENGINE=0x0, FPCCOMMANDLINE=0x0, OSTARGET=0x3bbf0b8 'x'#13'L',
CPUTARGET=0x1a4fb90 'Ð'#18'á'#9'dº'#3'\æÄ'#3'X'#5'½'#3'Äû¤'#1'\ªF', USESTREAMS=false) at ./fcl-passrc/src/pparser.pp:558
#30 0x00433389 in TFPDOCENGINE__PARSEUSEDUNIT (ANAME=0x9d4bd14 'SysUtils',
AINPUTLINE=0x3c4e65c 'c:\repo\fixes30/rtl/unix/sysutils.pp -dFPC_HAS_UNICODESTRING -dFPC_HAS_FEATURE_THREADING -dFPC_HAS_T
EXTENDED -dFPC_HAS_TYPE_DOUBLE -dFPC_HAS_TYPE_SINGLE -Fic:\repo\fixes30/rtl/objpas/sysutils -Fic'...,
AOSTARGET=0x3bac264 'Linux', ACPUTARGET=0x3bac284 'x86_64', this=<error reading variable>) at fpdoc/dglobals.pp:1266
#31 0x004331b5 in TFPDOCENGINE__FINDMODULE (ANAME=0x9d4bd14 'SysUtils', this=<error reading variable>) at fpdoc/dglobals.pp:12
#32 0x00471738 in TPASPARSER__ADDUSEUNIT (ASECTION=0x3bbef68, NAMEPOS=..., AUNITNAME=0x9d4bd14 'SysUtils', NAMEEXPR=0x9e11190,
INFILEEXPR=0x0, this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:3345
#33 0x00471bef in TPASPARSER__PARSEUSESLIST (ASECTION=0x3bbef68, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:3429
#34 0x004704aa in TPASPARSER__PARSEOPTIONALUSESLIST (ASECTION=0x1a4fb90, this=<error reading variable>)
at ./fcl-passrc/src/pparser.pp:2851
#35 0x00470509 in TPASPARSER__PARSEINTERFACE (this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:2866
#36 0x0046ff34 in TPASPARSER__PARSEUNIT (MODULE=0x9e111e0, this=<error reading variable>, parentfp=0x1a4fd44)
at ./fcl-passrc/src/pparser.pp:2720
#37 0x0046fcf5 in TPASPARSER__PARSEMAIN (MODULE=0x9e111e0, this=<error reading variable>) at ./fcl-passrc/src/pparser.pp:2675
#38 0x0046ae93 in PARSESOURCE (AENGINE=0x3bd0558,
FPCCOMMANDLINE=0x9e110ac 'c:\repo\fixes30/packages/rtl-objpas/src/inc/strutils.pp ', OSTARGET=0x3bac264 'Linux',
CPUTARGET=0x3bac284 'x86_64', OPTIONS=...) at ./fcl-passrc/src/pparser.pp:704
#39 0x0046aa1f in PARSESOURCE (AENGINE=0x0, FPCCOMMANDLINE=0x0,
OSTARGET=0x40dc00 'J'#2#15'¶B'#1#141#28#1#139'K'#4#133'Ét0'#139#3#153'÷ù'#137'Å'#139'C'#8#139'8'#141'qÿ'#133'ö|'#29'»ÿÿÿÿ'
'Ã'#1#137'è'#15'¯Ã'#3#4'$'#137'ú'#139'L$'#4'ÿÑ9ó|é'#144#141'd$'#8']_^[Ã', CPUTARGET=0x9cac240 'L'#131'L')
at ./fcl-passrc/src/pparser.pp:550
#40 0x0045c1d5 in TFPDOCCREATOR__CREATEDOCUMENTATION (APACKAGE=0x3bbfd40, PARSEONLY=false, this=<error reading variable>)
at fpdoc/mkfpdoc.pp:277
#41 0x00403304 in TFPDOCAPPLICATION__DORUN (this=<error reading variable>) at fpdoc/fpdoc.pp:410
#42 0x004305c1 in TCUSTOMAPPLICATION__RUN (this=<error reading variable>) at ./fcl-base/src/custapp.pp:343
#43 0x004034b2 in main () at fpdoc/fpdoc.pp:430
(gdb)
Mantis conversion info:
- Mantis ID: 33187