[M3devel] m3front broken

Jay K jay.krell at cornell.edu
Sun Jan 10 11:38:52 CET 2010


nevermind, I see the problem, fix shortly

 

 - Jay


 


From: jay.krell at cornell.edu
To: hosking at cs.purdue.edu; m3devel at elegosoft.com
Date: Sun, 10 Jan 2010 10:26:28 +0000
Subject: [M3devel] m3front broken



Tony, with the recent changes:
 
1)
***
*** runtime error:
***    An array subscript was out of range.
***    file "..\src\misc\Scanner.m3", line 351
***
Stack trace:
   FP         PC      Procedure
---------  ---------  -------------------------------
 0x12f774   0x49c8e2  NoteReserved + 0x44 in ..\src\misc\Scanner.m3
 0x12f7ac   0x4cb247  Define + 0xf9 in ..\src\values\Procedure.m3
 0x12f7d4   0x517b7b  Initialize + 0xd5 in ..\src\builtinOps\Cas.m3
 0x12f7e8   0x4b0320  Initialize + 0x30 in ..\src\builtinOps\BuiltinOps.m3
 0x12f804   0x499341  Initialize + 0x9a in ..\src\misc\M3Front.m3
 0x12f834   0x498f81  ParseImports + 0x151 in ..\src\misc\M3Front.m3
 0x12f860   0x40a6eb  Pass0_CheckImports + 0xa4 in ..\src\Builder.m3
 0x12f8ac   0x409e87  RunM3 + 0x215 in ..\src\Builder.m3
 0x12f8e8   0x40862c  PushOneM3 + 0x10a in ..\src\Builder.m3
 0x12f918   0x4084f9  CompileM3 + 0x21d in ..\src\Builder.m3
.........  .........  ... more frames ...

 
2) If I fix that by removing cas/casp more completely:

 
C:\dev2\cm3.2\scripts\python>\bin\x86\cdb \cm3\bin\cm3
(254c.2440): Access violation - code c0000005 (first chance)
cm3!RTType__HashBrand+0x41:
0064630a 8a5600          mov     dl,byte ptr [esi]          ds:0023:00ebb000=??
0:000> r esi
esi=00ebb000
0:000> db @esi - 4
00ebaffc  00 00 00 00 ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??  ....????????????
0:000> .lines
Line number information will be loaded
0:000> k
ChildEBP RetAddr
0012fe4c 00644c90 cm3!RTType__HashBrand+0x41 [..\src\runtime\common\RTType.m3 @
815]
0012fe70 00644db2 cm3!RTType__NoteBrand+0x1b [..\src\runtime\common\RTType.m3 @
150]
0012fe94 00634928 cm3!RTTypeSRC__AddTypecell+0xa3 [..\src\runtime\common\RTType.
m3 @ 170]
0012fec4 006346d1 cm3!RTLinker__DeclareModuleTypes+0x101 [..\src\runtime\common\
RTLinker.m3 @ 287]
0012fef8 00634227 cm3!RTLinker__FixTypes+0x8a [..\src\runtime\common\RTLinker.m3
 @ 234]
0012ff0c 006342e5 cm3!RTLinker__AddUnitI+0xe2 [..\src\runtime\common\RTLinker.m3
 @ 113]
0012ff30 00633f72 cm3!RTLinker__AddUnit+0xa1 [..\src\runtime\common\RTLinker.m3
@ 122]
0012ff54 00401029 cm3!RTLinker__InitRuntime+0x92 [..\src\runtime\common\RTLinker
.m3 @ 42]
0012ff7c 00675fda cm3!main+0x29 [_m3main.mc @ 3]
0012ffc0 7c817077 cm3!__tmainCRTStartup+0x10f [f:\dd\vctools\crt_bld\self_x86\cr
t\src\crtexe.c @ 582]
0012fff0 00000000 kernel32!BaseProcessStart+0x23
0:000>
 
looks like maybe an off by one problem?
Since the pointer is near valid memory?
Any ideas?
I'll poke around.
 
 
Going back to the release branch versions fixes this.
 
 
 - Jay
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100110/82998d8b/attachment-0002.html>


More information about the M3devel mailing list