Oberon Community Platform Forum
November 19, 2019, 07:40:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Compiler trapped  (Read 2842 times)
darek
Jr. Member
**
Posts: 59


« on: April 02, 2011, 09:46:15 AM »

Hi All,
  attached a very simple program that kills the compiler. Red-screen report also  attached.
 
  Missing a size of a COMPLEXARRAY in  the NEW statement
  should be  a compilation error.

Regards,
  Darek



 

* MtxCompTest.Mod (0.12 KB - downloaded 278 times.)
* COMPILER_TRAPPED (8.53 KB - downloaded 287 times.)
Logged
darek
Jr. Member
**
Posts: 59


« Reply #1 on: April 03, 2011, 08:12:07 PM »

Hi All,
  Try this one:

  MODULE Test;  

      TYPE arr =  ARRAY [ * ] OF LONGREAL;

      VAR   a:arr;
BEGIN
   NEW(a); (*<-- compiler crashes here *)
   (* NEW(a, 10);  this works fine *)
END Test.



and the red-screen info:

[1] TRAP 0 PL 3 access violation WinAos Revision 2946 (24.02.2010)

 CS:=00000023 DS:=0000002B ES:=0000002B SS:=0000002B PC=013B91B2 ESI=05772910 EDI=00000000 ESP=0018F33C PID=000011B8

 EAX=00000001 EBX=05692E80 ECX=00000002 EDX=00000000 EBP=0018F540 FS:=00000053 GS:=0000002B TMR=0649EE35

 FLAGS: cpazstIdo iopl0 {1, 9, 16}

Process: 4536 run 0 2055FE978:WMMessages.MsgSequencer Unknown PC=7776F861H {0, 28}

FoxSemanticChecker.Checker.NewBuiltinCallDesignator:3158 pc=69442 [00010F42H] = 66284 + 3158

  position=75 (0000004BH)

  builtin=0B5E6880H (FoxSyntaxTree.Builtin)

  actualParameters=0B5EF940H (FoxSyntaxTree.ExpressionList)

  left=0B5EFDA0H (FoxSyntaxTree.SymbolDesignator)

  numberActualParameters=1 (00000001H)

  numberFormalParameters=0

  formalParameter=00000000H (NIL)

  actualParameter=00000000H (NIL)

  procedureType=00000000H (NIL)

  parameter0=0B5EFE00H (FoxSyntaxTree.SymbolDesignator)

  parameter1=00000000H (NIL)

  parameter2=00000000H (NIL)

  result=0B5EFE60H (FoxSyntaxTree.BuiltinCallDesignator)

  expression=00000000H (NIL)

  designator=00000000H (NIL)

  inPort=00000000H (NIL)

  outPort=00000000H (NIL)

  constructor=00000000H (NIL)

  type0=0B5EF300H (FoxSyntaxTree.MathArrayType)

  type1=00000000H (NIL)

  type2=00000000H (NIL)

  type=00000000H (NIL)

  base=00000000H (NIL)

  parameterType=00000000H (NIL)

  arrayType=00000000H (NIL)

  parameter=00000000H (NIL)

  procedure=00000000H (NIL)

  i=0

  i0=2 (00000002H)

  i1=2 (00000002H)

  r=  0.000000E+000

  r0=  0.000000E+000

  r1=  0.000000E+000

  c=00X

  id=111 (0000006FH)

  b=FALSE

  name=""...

  mathArrayType=0B5EF300H (FoxSyntaxTree.MathArrayType)

State FoxSemanticChecker:

FoxSemanticChecker.Checker.VisitParameterDesignator:653 pc=88261 [000158C5H] = 87608 + 653

  designator=0B5EFAA0H (FoxSyntaxTree.ParameterDesignator)

  parameters=0B5EF940H (FoxSyntaxTree.ExpressionList)

  left=0B5EFDA0H (FoxSyntaxTree.SymbolDesignator)

  result=056760A0H (FoxSyntaxTree.Designator)

  expression=00000000H (NIL)

  typeDeclaration=00000000H (NIL)

  @hiddenIRVar99=00000000H (NIL)

  @hiddenIRVar100=00000000H (NIL)

FoxSyntaxTree.ParameterDesignator.Accept:33 pc=14383 [0000382FH] = 14350 + 33

  v=0B5EFB40H (FoxSemanticChecker.Checker)

  position=75 (0000004BH)

FoxSemanticChecker.Checker.ResolveExpression:82 pc=89987 [00015F83H] = 89905 + 82

  expression=0B5EFAA0H (FoxSyntaxTree.ParameterDesignator)

  result=00000000H (NIL)

  prev=00000000H (NIL)

FoxSemanticChecker.Checker.ResolveDesignator:51 pc=51353 [0000C899H] = 51302 + 51

  d=0B5EFAA0H (FoxSyntaxTree.ParameterDesignator)

  result=00000000H (NIL)

  resolved=00000000H (NIL)

FoxSemanticChecker.Checker.VisitProcedureCallStatement:166 pc=98039 [00017EF7H] = 97873 + 166

  procedureCall=0B5EFB00H (FoxSyntaxTree.ProcedureCallStatement)

  call=0B5EFAA0H (FoxSyntaxTree.ParameterDesignator)

  @hiddenIRVar105=00000000H (NIL)

FoxSyntaxTree.ProcedureCallStatement.Accept:33 pc=19605 [00004C95H] = 19572 + 33

  v=0B5EFB40H (FoxSemanticChecker.Checker)

  position=75 (0000004BH)

FoxSemanticChecker.Checker.ResolveStatement:88 pc=97674 [00017D8AH] = 97586 + 88

  x=0B5EFB00H (FoxSyntaxTree.ProcedureCallStatement)

  prev=00000000H (NIL)

  resolved=00000000H (NIL)

FoxSemanticChecker.Checker.StatementSequence:111 pc=97820 [00017E1CH] = 97709 + 111

  statementSequence=0B5EF7E0H (FoxSyntaxTree.StatementSequence)

  i=0

  statement=0B5EFB00H (FoxSyntaxTree.ProcedureCallStatement)

  resolved=00000000H (NIL)

  @hiddenIRVar104=0

FoxSemanticChecker.Checker.VisitStatementBlock:272 pc=106761 [0001A109H] = 106489 + 272

  statementBlock=0B5EF780H (FoxSyntaxTree.Body)

  recentExclusive=FALSE

  recentUnreachable=FALSE

  recentRealtime=FALSE

FoxSemanticChecker.Checker.Body:24 pc=106818 [0001A142H] = 106794 + 24

  body=0B5EF780H (FoxSyntaxTree.Body)

  @hiddenIRVar117=00000000H (NIL)

FoxSemanticChecker.Checker.Implementation:768 pc=108156 [0001A67CH] = 107388 + 768

  scope=0B5EF600H (FoxSyntaxTree.ProcedureScope)

  prevScope=00000000H (NIL)

  procedure=0B5EF680H (FoxSyntaxTree.Procedure)

  prevIsRealtime=FALSE

  prevIsBodyProcedure=FALSE

  prevIsCellNet=FALSE

FoxSemanticChecker.Checker.Implementations:69 pc=108267 [0001A6EBH] = 108198 + 69

  x=0B5EF0A0H (FoxSyntaxTree.Module)

  scope=0B5EF600H (FoxSyntaxTree.ProcedureScope)

  prevPhase=0

FoxSemanticChecker.Checker.Module:324 pc=110223 [0001AE8FH] = 109899 + 324

  x=0B5EF0A0H (FoxSyntaxTree.Module)

Compiler.Module:740 pc=2263 [000008D7H] = 1523 + 740

  source=0, 1663070030 (63206F4EH)

  reader=0B5DCAE0H (Streams.StringReader)

  position=0

  diagnostics=09A68200H (WMDiagnostics.Model)

  flags={2, 7..8}

  backend=0B5DAC80H (FoxAMDBackend.BackendAMD64)

  symbolFileFormat=0B5DB420H (FoxBinarySymbolFile.BinarySymbolFile)

  objectFileFormat=0B5DB1E0H (FoxBinaryObjectFile.ObjectFileFormat)

  activeCellsSpecification=00000000H (NIL)

  log=00000000H (NIL)

  importCache=0B5EFCC0H (FoxSyntaxTree.ModuleScope)

  findPC=0, 0

TextCompiler.CompileText:537 pc=1879 [00000757H] = 1342 + 537

  t=09AD00A0H (Texts.UnicodeText)

  source=0, 1663070030 (63206F4EH)

  pos=0

  pc=0, 1868852821 (6F646E55H)

  opt=1094541869 (413D622DH), 757089357 (2D20444DH)

  log=00000000H (NIL)

  diagnostics=09A68200H (WMDiagnostics.Model)

  error=FALSE

  stringReader=0B5D8400H (Streams.StringReader)

CompilerInterface.Compiler.CompileText:93 pc=110 [0000006EH] = 17 + 93

  t=09AD00A0H (Texts.UnicodeText)

  source=0, 1663070030 (63206F4EH)

  pos=0

  pc=0, 1868852821 (6F646E55H)

  opt=1094541869 (413D622DH), 757089357 (2D20444DH)

  log=0B5D6A00H (TextUtilities.TextWriter)

  diagnostics=09A68200H (WMDiagnostics.Model)

  error=FALSE

  trap=FALSE

PET.PETPanel.DoCompile:388 pc=10607 [0000296FH] = 10219 + 388

  findPC=FALSE

  pc=0, 1868852821 (6F646E55H)

  options=""...

PET.Window.ButtonHandler:686 pc=24984 [00006198H] = 24298 + 686

  sender=00D95718H (WMStandardComponents.Button)

  data=00000000H (NIL)

  options=""...

  searchString=""...

  res=0

WMEvents.EventSource.Call:87 pc=1265 [000004F1H] = 1178 + 87

  par=00000000H (NIL)

  cur=00000000H (NIL)

WMStandardComponents.Button.Click:97 pc=18951 [00004A07H] = 18854 + 97

  sender=00D95718H (WMStandardComponents.Button)

  par=00000000H (NIL)

WMStandardComponents.Button.Up:148 pc=12480 [000030C0H] = 12332 + 148

WMStandardComponents.Button.PointerUp:18 pc=12921 [00003279H] = 12903 + 18

  x=35 (00000023H)

  y=7 (00000007H)

  keys={}

WMComponents.VisualComponent.HandleInternal:822 pc=18503 [00004847H] = 17681 + 822

  msg=Rec@00000158H

  po=00000000H (NIL)

  nm=Rec@00000158H

  handled=FALSE

  b=Rec@00000250H

  r=00000000H (NIL)

  v=00000000H (NIL)

  p=00000000H (NIL)

  @hiddenIRVar35=Rec@00000250H

WMComponents.Component.Handle:184 pc=6658 [00001A02H] = 6474 + 184

  msg=Rec@00000158H

  s=00000000H (NIL)

WMComponents.VisualComponent.HandleInternal:1077 pc=18758 [00004946H] = 17681 + 1077

  msg=Rec@00000158H

  po=00000000H (NIL)

  nm=Rec@00000158H

  handled=FALSE

  b=Rec@00000250H

  r=00000000H (NIL)

  v=00000000H (NIL)

  p=00000000H (NIL)

  @hiddenIRVar35=Rec@00000250H

WMComponents.Component.Handle:184 pc=6658 [00001A02H] = 6474 + 184

  msg=Rec@00000158H

  s=00000000H (NIL)

WMComponents.VisualComponent.HandleInternal:1077 pc=18758 [00004946H] = 17681 + 1077

  msg=Rec@00000158H

  po=00000000H (NIL)

  nm=Rec@00000158H

  handled=FALSE

  b=Rec@00000250H

  r=00000000H (NIL)

  v=00000000H (NIL)

  p=00000000H (NIL)

  @hiddenIRVar35=Rec@00000250H

WMComponents.Component.Handle:184 pc=6658 [00001A02H] = 6474 + 184

  msg=Rec@00000158H

  s=00000000H (NIL)

WMComponents.VisualComponent.HandleInternal:1077 pc=18758 [00004946H] = 17681 + 1077

  msg=Rec@00000158H

  po=00000000H (NIL)

  nm=Rec@00000158H

  handled=FALSE

  b=Rec@00000250H

  r=00000000H (NIL)

  v=00000000H (NIL)

  p=00000000H (NIL)

  @hiddenIRVar35=Rec@00000250H

WMComponents.Component.Handle:184 pc=6658 [00001A02H] = 6474 + 184

  msg=Rec@00000158H

  s=00000000H (NIL)

WMMessages.MsgSequencer.Handle:207 pc=1627 [0000065BH] = 1420 + 207

  msg=Rec@00000004H

WMMessages.MsgSequencer.@Body:345 pc=2441 [00000989H] = 2096 + 345

Objects.Wrapper:384 pc=6972 [00001B3CH] = 6588 + 384

  lpParameter=05600960H (Objects.Process)

  t=05600960H (Objects.Process)

  obj=055FE978H (WMMessages.MsgSequencer)

  type=14322324 (00DA8A94H)

  res=1 (00000001H)

  bp=1638280 (0018FF88H)

  sp=1638236 (0018FF5CH)

  excpfrm=Rec@00000190H

Unknown PC=75623677H FP=0018FF94H

Unknown PC=77789F02H FP=0018FFD4H

Unknown PC=77789ED5H FP=0018FFECH

---------------------------------


Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!