Compiler EAccessViolation
Original Reporter info from Mantis: Adriaan van Os
-
Reporter name: Adriaan van Os
Original Reporter info from Mantis: Adriaan van Os
- Reporter name: Adriaan van Os
Description:
{mode macpas}<br/> {extendedsyntax off}
program crash;
var
thePStr: string[ 255];
begin
System.Move
( thePStr, MenuPtr^, Length( thePStr) + 1)
end.
Steps to reproduce:
[P18:~/fpc/testfpc] adriaan% fpc crash.pas
Free Pascal Compiler version 2.5.1 [2010/09/21] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Darwin for i386
Compiling crash.pas
crash.pas(10,23) Error: Identifier not found "MenuPtr"
crash.pas(10,34) Warning: Variable "thePStr" does not seem to be initialized
Fatal: Compilation aborted
An unhandled exception occurred at $0012F37D :
EAccessViolation : Access violation<br/>
$0012F37D
$0012F479
$001268D0
$00168B4C
$000353E3
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
Additional information:
The testprogram is incorrect, but still shouldn't trigger a compiler access violation.
Mantis conversion info:
- Mantis ID: 17455
- OS: Mac OS X
- OS Build: 10.5.4
- Build: svn trunk r16034
- Platform: Darwin
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 16061 (#bd056756)