[fpc-devel] fpc 2.7.1 segfault in writestr?

Martin lazarus at mfriebe.de
Fri Feb 15 23:38:41 CET 2013


revision 23621
Win 32 / Vista

RTL build with OPT="-gl -gw -godwarfsets -O-1"
compiler build with OPT="-gl -O3 -Or -CpPENTIUMM -OpPENTIUMM"
Lazarus  -WC -gh -Criot -gw2 -godwarfsets -O-1 -gt

The following line crashes with SigSegV
     writestr(BaseConf, AType,':',
              ' IMode=', dbgs(AIndentMode), ' IMax=', 
AIndentFirstLineMax, ' IExtra=', AIndentFirstLineExtra,
              ' CMode=', ACommentMode, ' CMatch=', AMatchMode, ' 
CLine=', AMatchLine,
              ' M=''', AMatch, ''' R=''', APrefix, ''' CIndent=', 
ACommentIndent
             );


Stepping through the disassembler it happens in a cass to
0046E95B e8e03efaff               call   0x412840 <fpc_write_end>


Not much of the stack is available:
#0 CPUDECLOCKED(1718187125) at ..\i386\i386.inc:1246
#1 fpc_ansistr_decr_ref(0x66697475) at ..\i386\i386.inc:1490
#2 ?? at :0




More information about the fpc-devel mailing list