Sign in Join

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

Mailing lists / fpc-devel / 2006-02

AV in compiler

9 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Martin Schreiber

If I compile MSEide + MSEgui version 0.8rc1a from

http://mypage.bluewin.ch/msegui/

FPC crashes with AV:

Free Pascal Compiler version 2.0.3 [2006/02/14] for i386 Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for i386
Compiling mseide.pas
Compiling main.pas
Compiling sourcepage.pas
Compiling breakpointsform.pas
Compiling sourceform.pas
Compiling sourcepage.pas
Compiling pascaldesignparser.pas
Compiling msedesigner.pas
Compiling formdesigner.pas
Compiling componentpaletteform.pas
Compiling main.pas
Compiling sourcepage.pas
Compiling sourceform.pas
Compiling projectoptionsform.pas
Compiling sourceform.pas
Compiling main.pas
main.pas(35,76) Warning: Some fields coming after "flags" weren't initialized main.pas(36,53) Warning: Some fields coming after "flags" weren't initialized Compiling /home/mse/test/msegui/lib/common/regcomponents/regdb.pas Compiling /home/mse/test/msegui/lib/common/db/msedbedit.pas msedbedit.pas(89,46) Fatal: Compilation aborted
An unhandled exception occurred at $080AF86D :
EAccessViolation : Access violation
$080AF86D TDEREF__BUILD, line 970 of symtype.pas $080AF1C4 TTYPE__BUILDDEREF, line 631 of symtype.pas $080AF7E1 TSYMLIST__BUILDDEREF, line 809 of symtype.pas $080B33D0 TPROPERTYSYM__BUILDDEREF, line 1231 of symsym.pas $0809788F TSTOREDSYMTABLE__BUILDDEREF, line 517 of symtable.pas $080C6C49 TOBJECTDEF__BUILDDEREF, line 5264 of symdef.pas $08097843 TSTOREDSYMTABLE__BUILDDEREF, line 510 of symtable.pas $080FE86E TPPUMODULE__GETPPUCRC, line 1167 of fppu.pas $0810A988 PROC_UNIT, line 1146 of pmodules.pas
$0809685F COMPILE, line 532 of parser.pas
$080FF48C TPPUMODULE__LOADPPU, line 1509 of fppu.pas $0810959E LOADUNITS, line 625 of pmodules.pas
$08109EDD PARSE_IMPLEMENTATION_USES, line 843 of pmodules.pas $0810AAB9 PROC_UNIT, line 1188 of pmodules.pas
$0809685F COMPILE, line 532 of parser.pas
$080FF48C TPPUMODULE__LOADPPU, line 1509 of fppu.pas $0810959E LOADUNITS, line 625 of pmodules.pas

What shall I do?

Martin

Reply by email

Martin Schreiber
to Jonas Maebe
Jonas Maebe wrote 5 lines
>> FPC crashes with AV: > > Same problem with version 0.8. Fixed.

Thank you very much Jonas.

There is another AV:
- with MSEide+MSEgui version 0.8 open project 'msegui/apps/ide/mseide.prj'.
- 'Project'-'Build'.
- 'File'-'Open'-'objectinspector.pas' (you will be asked for 'main.mfm' and 'actionsmodule.mfm').
- Enter a space at start of first line in objectinspector.pas.
- 'Project'-'Make':

Free Pascal Compiler version 2.0.3 [2006/02/17] for i386 Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for i386
Compiling mseide.pas
Compiling objectinspector.pas
objectinspector.pas(509,23) Warning: Class types "titemeditlist" and "titemlist1" are not related
Fatal: Compilation aborted
An unhandled exception occurred at $0814AC90 :
EAccessViolation : Access violation
$0814AC90 HANDLE_PROPERTYSYM, line 1028 of pexpr.pas $0814B331 DO_MEMBER_READ, line 1185 of pexpr.pas $0814D00C POSTFIXOPERATORS, line 1919 of pexpr.pas $0814B43C FACTOR, line 2042 of pexpr.pas
$0814E94B SUB_EXPR, line 2488 of pexpr.pas
$0814E969 SUB_EXPR, line 2490 of pexpr.pas
$0814E969 SUB_EXPR, line 2490 of pexpr.pas
$0814E969 SUB_EXPR, line 2490 of pexpr.pas
$0814F14A EXPR, line 2591 of pexpr.pas
$08170759 STATEMENT, line 994 of pstatmnt.pas
$081709EC STATEMENT_BLOCK, line 1089 of pstatmnt.pas $08113B08 BLOCK, line 227 of psub.pas
$08115D5C TCGPROCINFO__PARSE_BODY, line 1035 of psub.pas $08116464 READ_PROC, line 1270 of psub.pas
$081169C6 READ_DECLARATIONS, line 1406 of psub.pas $08113984 BLOCK, line 161 of psub.pas
$08115D5C TCGPROCINFO__PARSE_BODY, line 1035 of psub.pas

Martin

Reply by email

Jonas Maebe
to Martin Schreiber
Martin Schreiber wrote 9 lines
There is another AV: - with MSEide+MSEgui version 0.8 open project 'msegui/apps/ide/ mseide.prj'. - 'Project'-'Build'. - 'File'-'Open'-'objectinspector.pas' (you will be asked for 'main.mfm' and 'actionsmodule.mfm'). - Enter a space at start of first line in objectinspector.pas. - 'Project'-'Make':

Note that I can't use msegui, because it seems that its redrawing is incompatible with the Mac OS X port of xfree86 (I'm running msegui remotely on a linux/x86 box). E.g. the menus are drawn behind the main window (so you can only select menu items using the keyboard), and all text in dialog boxes (such as the open dialog box) disappears when changing the current directory or when selecting it using the mouse or keyboard).

Jonas

Reply by email

Martin Schreiber
to Jonas Maebe
Jonas Maebe wrote 7 lines
Note that I can't use msegui, because it seems that its redrawing is incompatible with the Mac OS X port of xfree86 (I'm running msegui remotely on a linux/x86 box). E.g. the menus are drawn behind the main window (so you can only select menu items using the keyboard), and all text in dialog boxes (such as the open dialog box) disappears when changing the current directory or when selecting it using the mouse or keyboard).

Then we need a Mac port of MSEide + MSEgui soon :-)

Please use the attached script to reproduce the effect.

Martin

Reply by email

Jonas Maebe
to Martin Schreiber: Thank you very much Jonas. There is another AV: - with MSEide+MSEgui version 0.8 open…
Martin Schreiber wrote 13 lines
> Fixed. Thank you very much Jonas. There is another AV: - with MSEide+MSEgui version 0.8 open project 'msegui/apps/ide/ mseide.prj'. - 'Project'-'Build'. - 'File'-'Open'-'objectinspector.pas' (you will be asked for 'main.mfm' and 'actionsmodule.mfm'). - Enter a space at start of first line in objectinspector.pas. - 'Project'-'Make':

I've found the cause together with Peter, but fixing it is non- trivial unfortunately, so it may take a while.

Jonas

Reply by email

Martin Schreiber
to Jonas Maebe
Jonas Maebe wrote
I've found the cause together with Peter, but fixing it is non- trivial unfortunately, so it may take a while.

I am happy that you can reproduce. Thanks a lot for your effort!

Martin

Reply by email

Jonas Maebe
to Martin Schreiber
Martin Schreiber wrote
> I've found the cause together with Peter, but fixing it is non- > trivial unfortunately, so it may take a while. I am happy that you can reproduce. Thanks a lot for your effort!

It's fixed in 2.1.1. It will be merged to 2.0.3 once the fix has been verified to be stable.

Jonas

Reply by email