Sign in Join

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

Mailing lists / pas2js / 2020-11

AV on compile since r931

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Ondrej Pokorny

Hello,

r931 broke compilation of my pas2js project. The error message is:

c:\ENTWICKLUNG\utils\pas2js\MyPas2JS.pas(13,15) Info: (2030) Start parsing implementation section.
Info: (127) Compiling "c:\ENTWICKLUNG\utils\pas2js\MyPas2JS.pas" ... Info: (127) Compiling
"c:\ENTWICKLUNG\FPC\pas2js\packages\rtl\system.pas" ... Fatal: bug: uncaught EAccessViolation: Access violation Fatal: EAccessViolation: Access violation
Fatal: (118) Compilation aborted

r925 works fine.

Before I dig deep into the problem, can I somehow show the debug information for pas2js to help you trace the error?

Thanks,
Ondrej

Reply by email

Mattias Gaertner
to Ondrej Pokorny
Show quoted text 17 lines
Hello, r931 broke compilation of my pas2js project. The error message is: c:\ENTWICKLUNG\utils\pas2js\MyPas2JS.pas(13,15) Info: (2030) Start parsing implementation section. Info: (127) Compiling "c:\ENTWICKLUNG\utils\pas2js\MyPas2JS.pas" ... Info: (127) Compiling "c:\ENTWICKLUNG\FPC\pas2js\packages\rtl\system.pas" ... Fatal: bug: uncaught EAccessViolation: Access violation Fatal: EAccessViolation: Access violation Fatal: (118) Compilation aborted r925 works fine. Before I dig deep into the problem, can I somehow show the debug information for pas2js to help you trace the error?

Can you create a stacktrace?

Mattias

Reply by email

Ondrej Pokorny
to Mattias Gaertner
Mattias Gaertner wrote 6 lines
On Thu, 12 Nov 2020 16:41:03 +0100 Ondrej Pokorny wrote: > Before I dig deep into the problem, can I somehow show the debug > information for pas2js to help you trace the error? Can you create a stacktrace?

Here is the exception:

Project pas2js raised exception class 'EPas2JS' with message: Type "UnicodeString" cannot be published

 In file
'C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp' at line 26258

Here is the stack trace:

#0 fpc_raiseexception(0xfb5, 0x599f94, 0x69b76b0) at seh32.inc:86 #1 TPASTOJSCONVERTER__DOERROR(20170409173329, 4021, 0x599f94 'Type "%s" cannot be publi'..., {}, 0x219ad8, 0, <error reading variable>) at C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:26258 #2 TPASTOJSCONVERTER__GETTYPEINFONAME(0x1e8d58, 0x69a0258, 0x219ad8, false, <error reading variable>, 0x0) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:26632 #3 TPASTOJSCONVERTER__CREATETYPEINFOREF(0x1e8d58, 0x69a0258, 0x219ad8, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:19373 #4 TPASTOJSCONVERTER__CREATERTTIMEMBERFIELD(0x5eb1960, 11, 0x69a0258, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:19679 #5 TPASTOJSCONVERTER__CREATERTTIMEMBERS(0x5e9cf68, 0x6a92250, 0x69a0258, 0x6a92250, 0x69a0258, 0x6abf4d8, false, <error reading variable>) at C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:20097 #6 TPASTOJSCONVERTER__CREATERECORDRTTI(0x5e9cf68, 0x6a92250, 0x69a0258, 0x6a92250, 0x69a0258, <error reading variable>) at C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:17936 #7 TPASTOJSCONVERTER__CONVERTRECORDTYPE(0x5e9cf68, 0x6a025f8, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:26206 #8 TPASTOJSCONVERTER__CREATETYPEDECL(0x5e9cf68, 0x6a025f8, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:14703 #9 TPASTOJSCONVERTER__CONVERTDECLARATIONS(0x1d84b8, 0x6a025f8, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:15151 #10 TPASTOJSCONVERTER__CONVERTMODULE(0x1e1380, 0x6a6a2a0, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:8037 #11 TPASTOJSCONVERTER__CONVERTELEMENT(0x1e1380, 0x6a6a2a0, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:25979 #12 TPASTOJSCONVERTER__CONVERTPASELEMENT(0x1e1380, 0x199410, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\fppas2js.pp:26799 #13 TPAS2JSCOMPILERFILE__CREATEJS(<error reading variable>) at C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\pas2jscompiler.pp:1548 #14 TPAS2JSCOMPILER__CREATEJAVASCRIPT(0x1d7808, 0x6a421a8, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\pas2jscompiler.pp:2277 #15 CHECKUSESCLAUSE(0x190410, 0x1dffcdc) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\pas2jscompiler.pp:2253 #16 TPAS2JSCOMPILER__CREATEJAVASCRIPT(0x1d76b8, 0x6a421a8, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\pas2jscompiler.pp:2274 #17 TPAS2JSCOMPILER__COMPILE(44147.758701053244, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\pas2jscompiler.pp:2042 #18 TPAS2JSCOMPILER__RUN(0x1df6cc 'c:\ENTWICKLUNG\FPC\pas2js'..., 0x1e77e4 'c:\ENTWICKLUNG\A\util'..., 0x213238, true, <error reading variable>) at
C:\ENTWICKLUNG\FPC\pas2js\compiler\packages\pastojs\src\pas2jscompiler.pp:4551 #19 TPAS2JSCLI__DORUN(<error reading variable>) at pas2js.pp:45 #20 CUSTAPP$_$TCUSTOMAPPLICATION_$__$$_RUN at :0
#21 :85

Ondrej

Reply by email

Ondrej Pokorny
to Ondrej Pokorny

The attached patch fixes the compilation for me, but I don't know if anything else is needed (compiler\packages\pastojs\src\fppas2js.pp - I don't know why I cannot create a patch from root).

Thanks
Ondrej

-------------- next part --------------
Index: fppas2js.pp
=================================================================== --- fppas2js.pp (Revision 47401)
+++ fppas2js.pp (Arbeitskopie)
@@ -26521,7 +26521,7 @@
btSmallInt,btWord,
btLongint,btLongWord,
btIntDouble,btUIntDouble,
- btString,btChar,
+ btString,btUnicodeString,btChar,
btDouble,
btBoolean,
btPointer:

Reply by email

Mattias Gaertner
to Ondrej Pokorny
The attached patch fixes the compilation for me, but I don't know if anything else is needed (compiler\packages\pastojs\src\fppas2js.pp - I don't know why I cannot create a patch from root).

It consists of some imports. The compiler is part of the fpc repo.

I fixed it.

Mattias

Reply by email

Ondrej Pokorny
to Mattias Gaertner
Mattias Gaertner wrote 9 lines
On Thu, 12 Nov 2020 18:20:44 +0100 Ondrej Pokorny wrote: > The attached patch fixes the compilation for me, but I don't know if > anything else is needed (compiler\packages\pastojs\src\fppas2js.pp - > I don't know why I cannot create a patch from root). It consists of some imports. The compiler is part of the fpc repo. I fixed it.

Thank you! I confirm that I can compile now.

Ondrej

Reply by email