Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2013-02

fpc 2.7.1 segfault in writestr?

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

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

Reply by email

Jonas Maebe
to Martin
Martin wrote 15 lines
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>

As mentioned before: please post a compilable example that demonstrates the problem.

Jonas

Reply by email