[Lazarus] lazbuild access violation

Sandro Cumerlato sandro.cumerlato at gmail.com
Wed Feb 19 19:59:24 CET 2014


Hello,
sorry for the "raw" bug report, but current lazbuild.exe compiled from
svn trunk doesn't work, calling:

\freepascal\laz\1.3\lazbuild.exe --pcp=\freepascal\lazarus project1.lpi

it generates the following error:

-------------------------------------------------------------------------------
SetPrimaryConfigPath NewValue="\freepascal\lazarus" -> "x:\freepascal\lazarus"
primary config path: x:\freepascal\lazarus\
An unhandled exception occurred at $004CDEBD :
EAccessViolation : Access violation
  $004CDEBD  TBASECOMPILEROPTIONS__MAKEOPTIONSSTRING,  line 2834 of
compileroptions.pp
  $004CD77B  TBASECOMPILEROPTIONS__MAKEOPTIONSSTRING,  line 2435 of
compileroptions.pp
  $00507630  TLAZPACKAGEGRAPH__GETPACKAGECOMPILERPARAMS,  line 699 of
x:/freepascal/laz/1.3/packager/packagesystem.pas
  $0050DE66  TLAZPACKAGEGRAPH__CHECKIFCURPKGOUTDIRNEEDSCOMPILE,  line
3059 of x:/freepascal/laz/1.3/packager/packagesystem.pas
  $0050D233  TLAZPACKAGEGRAPH__CHECKIFPACKAGENEEDSCOMPILATION,  line
2961 of x:/freepascal/laz/1.3/packager/packagesystem.pas
  $00518AAF  TLAZPACKAGEGRAPH__COMPILEPACKAGE,  line 3415 of
x:/freepascal/laz/1.3/packager/packagesystem.pas
  $0051872E  TLAZPACKAGEGRAPH__COMPILEREQUIREDPACKAGES,  line 3340 of
x:/freepascal/laz/1.3/packager/packagesystem.pas
  $00404965  STARTBUILDING,  line 796 of lazbuild.lpr
  $004046A7  TLAZBUILDAPPLICATION__BUILDPROJECT,  line 968 of lazbuild.lpr
  $00402869  TLAZBUILDAPPLICATION__BUILDFILE,  line 412 of lazbuild.lpr
  $0040809E  TLAZBUILDAPPLICATION__RUN,  line 1415 of lazbuild.lpr
  $0040A2B6  main,  line 1698 of lazbuild.lpr
-------------------------------------------------------------------------------

I've tried to debug lazbuild.lpi and at line 2834 of compileroptions.pp

  CompilerFilename:=LazarusIDE.GetFPCompilerFilename;

I've found that "LazarusIDE" is nil.

Last change has been made yesterday by Mattias and I don't know if
this part is still under development and will be reworked soon:

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/ide/compileroptions.pp?root=lazarus&r1=44122&r2=44141&pathrev=44172

What do you think? Is it necessary to open a new bugtracker issue?

Thank you for reading!

Sandro




More information about the Lazarus mailing list