[Vm-beginners] Got "Error: basicNew: failed" when running InterpreterSimulator

Nick. nick.lsts at gmail.com
Fri Sep 23 04:40:46 UTC 2011


Hi guys!

In the past few days i tried to get InterpreterSimulator running without
success.
First of all, a little context about my goal: I'm digging into the VM
because i would like to be able to delegate to some class (that I'll
develop) the responsibility for, say, the method lookup algorithm.

With that in mind, here's what i've been doing:
Using the Pharo 1.2 image Mariano Peck's prepared in his exellent article
(http://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/),  loaded
the VMMaker package with the following script:

    Deprecation raiseWarning: false.
        Gofer new
        squeaksource: 'MetacelloRepository';
        package: 'ConfigurationOfCog';
        load.
    (Smalltalk at: #ConfigurationOfCog) project latestVersion load.

Once it finishes (without errors) I "Save As" the current image as
"demo.image", close it and open the original Pharo 1.2 image that Mariano
provided.
When, for example, I run:

    (CogVMSimulator new openOn: 'demo.image') test
or
    (InterpreterSimulatorLSB new openOn: 'demo.image') test

I get the following error: "Error: basicNew: failed" (see attached images at
the end).
When I tried to load VMMaker in the Pharo 1.3 OneClick release, I got
another error (see attached images at the end).

Am I doing something wrong?
Are those the right simulators to use? I can tell the difference between all
that are available in VMMaker package.

Thanks in advance!

Nick


http://forum.world.st/file/n3835723/error_while_trying_to_run_InterpreterSimulator.png 
http://forum.world.st/file/n3835723/Error_while_loading_VMMaker_in_Pharo-1.3-OneClick.png 



--
View this message in context: http://forum.world.st/Got-Error-basicNew-failed-when-running-InterpreterSimulator-tp3835723p3835723.html
Sent from the Smalltalk VM - Beginners mailing list archive at Nabble.com.


More information about the VM-beginners mailing list