Hi all
for the demo of Squeak I'm preparing I would like to show the VM can be interprted.
I did the following steps with alex and we are stuck:
- took a 3.6 image - created a mvc project - saved the image named mvc36 - took a 3.6 image - executed (InterpreterSimulator new openOn: 'mvc36.image') test
We did the same with the latest 3.7alpha 5623 - we load VMmaker from SqueakMap 3.6g2
and in both cases we got the following DNU
What did we forget?
Thanks in advance
Stef and Alex
8 January 2004 5:31:50 pm
VM: Mac OS - a SmalltalkImage Image: Squeak3.7alpha [latest update: #5623]
Bitmap(Object)>>doesNotUnderstand: #copyGrownBy: Receiver: a Bitmap of length 2138980 Arguments and temporary variables: aMessage: copyGrownBy: 258436 Receiver's instance variables: a Bitmap of length 2138980
InterpreterSimulatorMSB(InterpreterSimulator)>>sqGrowMemory:By: Receiver: an InterpreterSimulatorMSB Arguments and temporary variables: oldLimit: 8555920 delta: 1033744 Receiver's instance variables: memory: a Bitmap of length 2138980 youngStart: 0 endOfMemory: 8056808 memoryLimit: 8555920 nilObj: 4 falseObj: 12 trueObj: 20 specialObjectsOop: 1940220 rootTable: #(0 0 0 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... rootTableCount: 0 child: 2401690460 field: 8056608 parentField: 3 freeBlock: 8056804 lastHash: 18437 allocationCount: 0 lowSpaceThreshold: 0 signalLowSpace: false compStart: 7944744 compEnd: 8057936 fwdTableNext: 8056816 fwdTableLast: 8555912 remapBuffer: #(8056380 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil)...etc... remapBufferCount: 0 allocationsBetweenGCs: 4000 tenuringThreshold: 2000 statFullGCs: 0 statFullGCMSecs: 0 statIncrGCs: 1 statIncrGCMSecs: 4 statTenures: 0 statRootTableOverflows: 0 freeContexts: 1 freeLargeContexts: 1 interruptCheckCounter: 872 totalObjectCount: 181605 shrinkThreshold: 8388608 growHeadroom: 4194304 headerTypeBytes: a CArrayAccessor on: #(8 4 0 0) youngStartLocal: 0 activeContext: 8056608 theHomeContext: 8056608 method: 3969776 receiver: 2061796 instructionPointer: 3969821 stackPointer: 8056648 localIP: 3969821 localSP: 8057488 localHomeContext: 8057448 localReturnContext: 8057448 localReturnValue: 307201 messageSelector: 4144 argumentCount: 1 newMethod: 3220880 currentBytecode: 205 successFlag: true primitiveIndex: 71 methodCache: #(370400 681696 3561864 101 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... atCache: #(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... lkupClass: 660584 reclaimableContextCount: 4 nextPollTick: 255637 nextWakeupTick: 0 lastTick: 255137 interruptKeycode: 2094 interruptPending: false semaphoresToSignalA: #(nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... semaphoresUseBufferA: true semaphoresToSignalCountA: 0 semaphoresToSignalB: #(nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... semaphoresToSignalCountB: 0 savedWindowSize: 34406785 fullScreenFlag: 0 deferDisplayUpdates: false pendingFinalizationSignals: 0 compilerInitialized: false compilerHooks: nil extraVMMemory: 0 newNativeMethod: 4 methodClass: 681448 receiverClass: 660584 interpreterVersion: nil obsoleteIndexedPrimitiveTable: a CArrayAccessor on: #(a CArrayAccessor on: #(nil nil nil) a CArrayAccessor on: #(nil nil nil) a CArrayAccesso...etc... obsoleteNamedPrimitiveTable: a CArrayAccessor on: #(#(#gePrimitiveMergeFillFrom...etc... interpreterProxy: an InterpreterSimulatorMSB showSurfaceFn: nil interruptCheckCounterFeedBackReset: 1000 interruptChecksEveryNms: 3 externalPrimitiveTable: a CArrayAccessor on: #(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... byteCount: 2268 sendCount: 1 traceOn: true myBitBlt: a BitBltSimulator displayForm: nil filesOpen: an OrderedCollection() imageName: 'Data:Users:ducasse:Workspace:FirstCircle:SqDemoes:Sq-Demo-0104: Sque...etc... pluginList: #('MiscPrimitivePlugin'->a MiscPrimitivePlugin) mappedPluginEntries: #() inputSem: nil quitBlock: [] in InterpreterSimulatorMSB(InterpreterSimulator)>>test {[^ self]}...etc...
InterpreterSimulatorMSB(ObjectMemory)>>growObjectMemory: Receiver: an InterpreterSimulatorMSB Arguments and temporary variables: delta: 1033744 limit: nil Receiver's instance variables: memory: a Bitmap of length 2138980 youngStart: 0 endOfMemory: 8056808 memoryLimit: 8555920 nilObj: 4 falseObj: 12 trueObj: 20 specialObjectsOop: 1940220 rootTable: #(0 0 0 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... rootTableCount: 0 child: 2401690460 field: 8056608 parentField: 3 freeBlock: 8056804 lastHash: 18437 allocationCount: 0 lowSpaceThreshold: 0 signalLowSpace: false compStart: 7944744 compEnd: 8057936 fwdTableNext: 8056816 fwdTableLast: 8555912 remapBuffer: #(8056380 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil)...etc... remapBufferCount: 0 allocationsBetweenGCs: 4000 tenuringThreshold: 2000 statFullGCs: 0 statFullGCMSecs: 0 statIncrGCs: 1 statIncrGCMSecs: 4 statTenures: 0 statRootTableOverflows: 0 freeContexts: 1 freeLargeContexts: 1 interruptCheckCounter: 872 totalObjectCount: 181605 shrinkThreshold: 8388608 growHeadroom: 4194304 headerTypeBytes: a CArrayAccessor on: #(8 4 0 0) youngStartLocal: 0 activeContext: 8056608 theHomeContext: 8056608 method: 3969776 receiver: 2061796 instructionPointer: 3969821 stackPointer: 8056648 localIP: 3969821 localSP: 8057488 localHomeContext: 8057448 localReturnContext: 8057448 localReturnValue: 307201 messageSelector: 4144 argumentCount: 1 newMethod: 3220880 currentBytecode: 205 successFlag: true primitiveIndex: 71 methodCache: #(370400 681696 3561864 101 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... atCache: #(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... lkupClass: 660584 reclaimableContextCount: 4 nextPollTick: 255637 nextWakeupTick: 0 lastTick: 255137 interruptKeycode: 2094 interruptPending: false semaphoresToSignalA: #(nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... semaphoresUseBufferA: true semaphoresToSignalCountA: 0 semaphoresToSignalB: #(nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... semaphoresToSignalCountB: 0 savedWindowSize: 34406785 fullScreenFlag: 0 deferDisplayUpdates: false pendingFinalizationSignals: 0 compilerInitialized: false compilerHooks: nil extraVMMemory: 0 newNativeMethod: 4 methodClass: 681448 receiverClass: 660584 interpreterVersion: nil obsoleteIndexedPrimitiveTable: a CArrayAccessor on: #(a CArrayAccessor on: #(nil nil nil) a CArrayAccessor on: #(nil nil nil) a CArrayAccesso...etc... obsoleteNamedPrimitiveTable: a CArrayAccessor on: #(#(#gePrimitiveMergeFillFrom...etc... interpreterProxy: an InterpreterSimulatorMSB showSurfaceFn: nil interruptCheckCounterFeedBackReset: 1000 interruptChecksEveryNms: 3 externalPrimitiveTable: a CArrayAccessor on: #(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... byteCount: 2268 sendCount: 1 traceOn: true myBitBlt: a BitBltSimulator displayForm: nil filesOpen: an OrderedCollection() imageName: 'Data:Users:ducasse:Workspace:FirstCircle:SqDemoes:Sq-Demo-0104: Sque...etc... pluginList: #('MiscPrimitivePlugin'->a MiscPrimitivePlugin) mappedPluginEntries: #() inputSem: nil quitBlock: [] in InterpreterSimulatorMSB(InterpreterSimulator)>>test {[^ self]}...etc...
InterpreterSimulatorMSB(ObjectMemory)>>fullCompaction Receiver: an InterpreterSimulatorMSB Arguments and temporary variables: sz: 62387 Receiver's instance variables: memory: a Bitmap of length 2138980 youngStart: 0 endOfMemory: 8056808 memoryLimit: 8555920 nilObj: 4 falseObj: 12 trueObj: 20 specialObjectsOop: 1940220 rootTable: #(0 0 0 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... rootTableCount: 0 child: 2401690460 field: 8056608 parentField: 3 freeBlock: 8056804 lastHash: 18437 allocationCount: 0 lowSpaceThreshold: 0 signalLowSpace: false compStart: 7944744 compEnd: 8057936 fwdTableNext: 8056816 fwdTableLast: 8555912 remapBuffer: #(8056380 nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil)...etc... remapBufferCount: 0 allocationsBetweenGCs: 4000 tenuringThreshold: 2000 statFullGCs: 0 statFullGCMSecs: 0 statIncrGCs: 1 statIncrGCMSecs: 4 statTenures: 0 statRootTableOverflows: 0 freeContexts: 1 freeLargeContexts: 1 interruptCheckCounter: 872 totalObjectCount: 181605 shrinkThreshold: 8388608 growHeadroom: 4194304 headerTypeBytes: a CArrayAccessor on: #(8 4 0 0) youngStartLocal: 0 activeContext: 8056608 theHomeContext: 8056608 method: 3969776 receiver: 2061796 instructionPointer: 3969821 stackPointer: 8056648 localIP: 3969821 localSP: 8057488 localHomeContext: 8057448 localReturnContext: 8057448 localReturnValue: 307201 messageSelector: 4144 argumentCount: 1 newMethod: 3220880 currentBytecode: 205 successFlag: true primitiveIndex: 71 methodCache: #(370400 681696 3561864 101 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... atCache: #(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... lkupClass: 660584 reclaimableContextCount: 4 nextPollTick: 255637 nextWakeupTick: 0 lastTick: 255137 interruptKeycode: 2094 interruptPending: false semaphoresToSignalA: #(nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... semaphoresUseBufferA: true semaphoresToSignalCountA: 0 semaphoresToSignalB: #(nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil...etc... semaphoresToSignalCountB: 0 savedWindowSize: 34406785 fullScreenFlag: 0 deferDisplayUpdates: false pendingFinalizationSignals: 0 compilerInitialized: false compilerHooks: nil extraVMMemory: 0 newNativeMethod: 4 methodClass: 681448 receiverClass: 660584 interpreterVersion: nil obsoleteIndexedPrimitiveTable: a CArrayAccessor on: #(a CArrayAccessor on: #(nil nil nil) a CArrayAccessor on: #(nil nil nil) a CArrayAccesso...etc... obsoleteNamedPrimitiveTable: a CArrayAccessor on: #(#(#gePrimitiveMergeFillFrom...etc... interpreterProxy: an InterpreterSimulatorMSB showSurfaceFn: nil interruptCheckCounterFeedBackReset: 1000 interruptChecksEveryNms: 3 externalPrimitiveTable: a CArrayAccessor on: #(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc... byteCount: 2268 sendCount: 1 traceOn: true myBitBlt: a BitBltSimulator displayForm: nil filesOpen: an OrderedCollection() imageName: 'Data:Users:ducasse:Workspace:FirstCircle:SqDemoes:Sq-Demo-0104: Sque...etc... pluginList: #('MiscPrimitivePlugin'->a MiscPrimitivePlugin) mappedPluginEntries: #() inputSem: nil quitBlock: [] in InterpreterSimulatorMSB(InterpreterSimulator)>>test {[^ self]}...etc...
--- The full stack --- Bitmap(Object)>>doesNotUnderstand: #copyGrownBy: ...etc...
On Thursday 08 January 2004 8:33 am, ducasse wrote:
Hi all
for the demo of Squeak I'm preparing I would like to show the VM can be interprted.
Bitmap(Object)>>doesNotUnderstand: #copyGrownBy:
I ran into this a while ago, and came up with the attached.
Don't remember if this was enough, though.
Hi Ned!
Thanks for you fix, unfortunately after having the MVC image started (and shown) I get a rollback:
Error: subscript is out of bounds: 0
I used a 5707. Do you have any other clue ?
thanks a lot, Alexandre
On Thu, Jan 08, 2004 at 09:12:25AM -0800, Ned Konz wrote:
On Thursday 08 January 2004 8:33 am, ducasse wrote:
Hi all
for the demo of Squeak I'm preparing I would like to show the VM can be interprted.
Bitmap(Object)>>doesNotUnderstand: #copyGrownBy:
I ran into this a while ago, and came up with the attached.
Don't remember if this was enough, though.
'From Squeak3.6 of ''6 October 2003'' [latest update: #5424] on 8 January 2004 at 9:10:50 am'!
"Change Set: SimFixes-nk Date: 8 January 2004 Author: Ned Konz
Some InterpreterSimulator fixes. "!
!ArrayedCollection methodsFor: 'as yet unclassified' stamp: 'nk 10/13/2003 22:26'! copyGrownBy: n "Create a new collection containing all the elements from aCollection."
^ (self class new: self size + n) replaceFrom: 1 to: self size with: self! !
!Interpreter methodsFor: 'other primitives' stamp: 'nk 10/13/2003 22:39'! primitiveGetAttribute "Fetch the system attribute with the given integer ID. The result is a string, which will be empty if the attribute is not defined."
successFlag _ false. ! !
!InterpreterSimulatorLSB methodsFor: 'as yet unclassified' stamp: 'nk 10/13/2003 22:43'! halfWordAt: byteAddress "Return the half-word at byteAddress which must be even." | lowBits | lowBits _ byteAddress bitAnd: 2. ^((self longAt: byteAddress - lowBits) bitShift: (lowBits) * 8) bitAnd: 16rFFFF ! !
I've incorporated Ned's changes into my working copy of the VMMaker package. New relase due out sometime in the not too distant future.
tim
Please consider closing this thread. This can be done as easily as appending ' ([closed] fixed in near future version)' to the subject.
Ken
On Thu, 2004-03-04 at 21:38, tim Rowledge wrote:
I've incorporated Ned's changes into my working copy of the VMMaker package. New relase due out sometime in the not too distant future.
tim
In message 1078458654.868.48.camel@12-222-173-196.client.insightbb.com Ken Causey ken@kencausey.com wrote:
Please consider closing this thread. This can be done as easily as appending ' ([closed] fixed in near future version)' to the subject.
Ken
On Thu, 2004-03-04 at 21:38, tim Rowledge wrote:
I've incorporated Ned's changes into my working copy of the VMMaker package. New relase due out sometime in the not too distant future.
tim
Let's see if this works.
tim -- Tim Rowledge, tim@sumeru.stanford.edu, http://sumeru.stanford.edu/tim Strange OpCodes: WE: Write and Erase data
squeak-dev@lists.squeakfoundation.org