#1 2016-06-17 23:20:40

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

@ab

mORMot 1.18.2753:

...
 2.11. DDD shared units:
  - User model: 3,276 assertions passed  463us
! DDD shared units - Authentication model
! Exception EAccessViolation raised with messsage:
!  Access violation
  - Email validation process: 55 assertions passed  124.19ms
! DDD shared units - User CQRS repository
! Exception EAccessViolation raised with messsage:
!  Access violation

 2.12. DDD multi thread:
  - Delete old database: 1 assertion passed  577us
  - Start server: 1 assertion passed  7.91ms
  - Single client test: 1,002 assertions passed  172.52ms
  - Multi threaded clients test: 21 assertions passed  124.33ms
  Total failed: 0 / 1,025  - DDD multi thread PASSED  307.11ms


Using mORMot 1.18.2753 FTS3
Running on Windows 7 64bit SP1 (6.1.7601) with code page 1250
TSQLite3LibraryStatic 3.13.0 with internal MM
Generated with: Free Pascal 3.1.1 compiler

Time elapsed for all tests: 52.61s
Tests performed at 2016-06-18 01:07:32

Total assertions failed for all test suits:  0 / 21,327,100
! Some tests FAILED: please correct the code.

Done - Press ENTER to Exit


mORMot 1.18.2754 - Crashes immediately after START !!!

Michal

Offline

#2 2016-06-18 02:19:38

pcpes2lante
Member
From: Philippines
Registered: 2016-03-29
Posts: 4

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

Went the same in my test after updating to revision 3090.  Rev 3089 was fine

Offline

#3 2016-06-18 05:17:57

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

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

It depends on your FPC trunk revision.

See http://synopse.info/forum/viewtopic.php … 783#p20783

If you have issues with this commit (e.g. if you have a trunk from this month), disable HASDIRECTTYPEINFO conditional below $ifdef VER3_1 in Synopse.inc.
I would disable it by default in a few weeks, when the trunk would be stabilized...

Sven introduced a breaking change in the FPC trunk.
http://wiki.freepascal.org/User_Changes … mat_change
With no FPC_HAS_* associated conditional.
I was not able to find an automated way of identifying if the breaking change was included or not...

Offline

#4 2016-06-18 05:45:35

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

@miab3
Please note that the errors in 2.11. DDD shared units are caused by optimizations problems in FPC.
Using -O0 or -O1 under i386 would be ok.
See: http://bugs.freepascal.org/view.php?id=30255

edit
My bad, this FPC bug was already solved: http://svn.freepascal.org/cgi-bin/viewv … sion=33948
Using -O2 on x86_64 is ok however.

Last edited by AOG (2016-06-18 05:51:55)

Offline

#5 2016-06-18 08:16:50

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

mORMot 1.18.2754 with
280: {.$define HASDIRECTTYPEINFO}:

...
 2.11. DDD shared units:
  - User model: 3,276 assertions passed  463us
! DDD shared units - Authentication model
! Exception EAccessViolation raised with messsage:
!  Access violation
  - Email validation process: 55 assertions passed  30.68ms
! DDD shared units - User CQRS repository
! Exception EAccessViolation raised with messsage:
!  Access violation

 2.12. DDD multi thread:
  - Delete old database: 1 assertion passed  716us
  - Start server: 1 assertion passed  9.02ms
  - Single client test: 1,002 assertions passed  177.55ms
  - Multi threaded clients test: 21 assertions passed  147.56ms
  Total failed: 0 / 1,025  - DDD multi thread PASSED  337.11ms


Using mORMot 1.18.2754 FTS3
Running on Windows 7 64bit SP1 (6.1.7601) with code page 1250
TSQLite3LibraryStatic 3.13.0 with internal MM
Generated with: Free Pascal 3.1.1 compiler

Time elapsed for all tests: 57.48s
Tests performed at 2016-06-18 10:08:18

Total assertions failed for all test suits:  0 / 21,326,971
! Some tests FAILED: please correct the code.

Done - Press ENTER to Exit

Michal

Offline

#6 2016-06-18 10:16:35

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

Did you try with -O0 and/or -O1 optimizations ?

Offline

#7 2016-07-04 13:28:16

Bo
Member
From: Melbourne
Registered: 2016-07-04
Posts: 48
Website

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

I compiled TestSQL3.exe (from source 2016-06-30_140818) with Lazarus 1.6, FPC 3.0.0, ran it with Windows 10, got a lot of AV too, first one was:

!  - Url encoding: 5 / 150 FAILED  2.19ms

Offline

#8 2016-07-04 14:33:30

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

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

Win32 platform?

Offline

#9 2016-07-06 00:54:54

Bo
Member
From: Melbourne
Registered: 2016-07-04
Posts: 48
Website

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

ab wrote:

Win32 platform?

I have compiled and test with both 32bit and 64bit, both have a lot of AV. Last night I tried New Pascal package and result was the same.

Last edited by Bo (2016-07-06 00:57:38)

Offline

#10 2016-07-06 05:58:15

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

Just downloaded latest mORMot, compiled and ran TestSQLite3.exe 32bit on my Win8.1 codepage 1252 machine: 100% success and (as a trivial result) no AV.

My conclusion: there is something special about your PC or your mORMot / FPC setup !?

Offline

#11 2016-07-06 14:20:56

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

@AOG,

I still haven started using Lazarus. So today I downloaded the official mormot and your fork for fpc, I compiled the testsqlit3 project successfully with the fpclazrtticross Lazarus/FPC distribuation you provided earlier.

But interestingly, it emits the following runtime error:

[Window Title]
Error

[Content]
Project TestSQL3 raised exception class 'External: SIGSEGV'.

 At address 458577

[OK]

I think I should download a new version of your cross-compile-ready Lazarus, or download and use the https://github.com/dathox/newpascalpack instead?

I'm a bit confused by the newpascal.org project now - it seems that it integrates your work, but from what I see in the download .zip file, it doesn't contain files for cross-compiling for Linux.

Thanks in advance, for your possible clarification and advises smile

Last edited by edwinsn (2016-07-06 14:21:36)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#12 2016-07-07 06:57:13

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: TestSQL3.exe - Lazarus_fpcup 1.7-Win32 fpc 3.1.1 (2016-06-17)

On July 7, 2016 all tests went OK using the newpascal.org distribution: http://synopse.info/forum/viewtopic.php … 989#p20989


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB