#1 2019-07-07 15:10:07

stj
Member
Registered: 2019-06-28
Posts: 25

[EDIT & SOLVED] TestSQL3 failed with AV in SynSelfTests.TDocVariant

Hi all.

I'm really interrested in getting mORMot up and running, so I gave it a second try in Linux:

Installed fpc on debian 9, 64 bit, via fpcupdeluxe as shown in the docs.

FPC trunk Rev 40491
Lazarus trunk Rev 59757

TestSQL3 compiles fine and gave me:

! Low level types - TDocVariant
! Exception EAccessViolation raised with messsage:
!  Access violation

I tracked it down to line 8925 in SynSelfTests.

  Doc.InitArray(['one',2,3.0]);
  Check(variant(Doc)._kind=ord(dvArray));
  Check(Doc.Count=3);
  Check(variant(Doc)._count=3);
  Check(Doc.Values[0]='one');
  Check(Doc.Values[1]=2);
  Check(Doc.Values[2]=3.0);
  Check(Doc.Value[0]='one');
  Check(Doc.Value[1]=2);
  Check(Doc.Value[2]=3.0);
  for i := 0 to Doc.Count-1 do
    Check(Doc.Values[i]=Doc.Value[i]);   <--- Error

mORMot is the current trunk.

Any idea whats wrong?

Stephan

Edit @11.07.2019:

I installed "NewPascal" via fpcupdeluxe and the SelfTest passes.

I still doesn't know if I've done sth wrong or the given revisions in the doc are wrong.
Anybody checked them?

Stephan

Last edited by stj (2019-07-11 12:18:20)

Offline

Board footer

Powered by FluxBB