#1 2019-07-25 04:30:47

ComingNine
Member
Registered: 2010-07-29
Posts: 294

AV raised in TestSQL3 cross compiled by FPC.

The latest mORMot is cross compiled to linux64 by FPC on Windows. The console log is shown below.

 1.2. Low level types:
  - RTTI: 443 assertions passed  363us
  - Url encoding: 200 assertions passed  659us
  - Encode decode JSON: 396,397 assertions passed  132.40ms
  - Variants: 64 assertions passed  212us
  - Mustache renderer: 147 assertions passed  1.75ms
! Low level types - TDocVariant
! Exception EAccessViolation raised with messsage:
!  Access violation
  - TDecimal128: 17,446 assertions passed  1.89ms
  - BSON: 245,068 assertions passed  50.87ms
     100000 TBSONObjectID.ComputeNew in 49.84ms i.e. 2,006,179/s, aver. 0us
  - TSynTableStatement: 221 assertions passed  213us
  - TSynMonitorUsage: 1,202 assertions passed  212us
  Total failed: 0 / 732,939  - Low level types PASSED  714.93ms

The line indicated from the file log is shown below.

          TSynTestEvent(C.TestMethod[t])(); // run tests + Check() and TestFailed()

The version of fpc is

C:\fpcupdeluxe\fpc\bin\i386-win32 > fpc
Free Pascal Compiler version 3.3.1-r39711 [2018/09/08] for i386

Could you check this ? Many thanks !

PS: The same mORMot compiled by FPC on Windows as a Windows executable runs flawlessly.

Offline

#2 2019-07-25 08:01:39

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,225
Website

Re: AV raised in TestSQL3 cross compiled by FPC.

Yes, I have seen it, but was not able to find out where it fails.
I will investigate further!

Offline

#3 2019-07-25 12:50:56

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Re: AV raised in TestSQL3 cross compiled by FPC.

Many thanks !

PS: I have just tried "FPC trunk SVN 40491; Lazarus trunk SVN 59757", as suggested from the documentation, and the same AV exists. big_smile

Offline

Board footer

Powered by FluxBB