My first post on this list, and it may not be my last. I am trying to run the InterpreterSimulator adn am having issues. Mathieu Suen mentioned this list and that there may be a patch for it. Does anyone know of a patch?
My current issue is: In postGCAction, the gcSemaphoreIndex is nil, which blows up in signalSemaphoreWithIndex:. Trying to be a bit more self sufficient, I put a halt in primitiveSetGCSemaphore and reran it, but it never breaks, so it never seems to get set. Full stop.
thank you, Rob
- primitiveSetGCSemaphore: Indicates a semaphore (index) to be
signaled whenever a garbage collection occurs.
it should have a value of zero if it's not used. Obviously in C that's zero by the magic of auto-initialization of that C variable, and so the code runs without care, but in Smalltalk it's nil and you die.
I'd make a mantis report and supply a patch to initialize the value explicitly in the interpreter startup code initializeInterpreter: so that the simulator will run.
On Oct 24, 2007, at 7:09 PM, Rob Withers wrote:
My first post on this list, and it may not be my last. I am trying to run the InterpreterSimulator adn am having issues. Mathieu Suen mentioned this list and that there may be a patch for it. Does anyone know of a patch?
My current issue is: In postGCAction, the gcSemaphoreIndex is nil, which blows up in signalSemaphoreWithIndex:. Trying to be a bit more self sufficient, I put a halt in primitiveSetGCSemaphore and reran it, but it never breaks, so it never seems to get set. Full stop.
thank you, Rob
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
Thanks, John. I fixed this in ObjectMemory>>#initializeObjectMemory:, since I figured it belonged there more than in the Interpreter. On running further, I also had to add fixes to the following, all switching from Smalltalk to SmalltalkImage current: InterpreterSimulator>>#primitiveGetAttribute InterpreterSimulator>>#vmPathGet:Length: InterpreterSimulator>>#vmPathSize
Then I hit FilePluginSimulator>>#primitiveFileRead. This gets its file from: file := self fileValueOf: (interpreterProxy stackValue: 3). where the stackValue is 20, which is not an integer object and the file is nil. It's beyond me.
How can I report these to Mantis. Is there a website for it?
Cheers, Rob
----- Original Message ----- From: "John M McIntosh" johnmci@smalltalkconsulting.com To: "Squeak Virtual Machine Development Discussion" vm-dev@lists.squeakfoundation.org Sent: Wednesday, October 24, 2007 7:20 PM Subject: Re: [Vm-dev] Any patch for InterpreterSimulator
- primitiveSetGCSemaphore: Indicates a semaphore (index) to be
signaled whenever a garbage collection occurs.
it should have a value of zero if it's not used. Obviously in C that's zero by the magic of auto-initialization of that C variable, and so the code runs without care, but in Smalltalk it's nil and you die.
I'd make a mantis report and supply a patch to initialize the value explicitly in the interpreter startup code initializeInterpreter: so that the simulator will run.
On Oct 24, 2007, at 7:09 PM, Rob Withers wrote:
My first post on this list, and it may not be my last. I am trying to run the InterpreterSimulator adn am having issues. Mathieu Suen mentioned this list and that there may be a patch for it. Does anyone know of a patch?
My current issue is: In postGCAction, the gcSemaphoreIndex is nil, which blows up in signalSemaphoreWithIndex:. Trying to be a bit more self sufficient, I put a halt in primitiveSetGCSemaphore and reran it, but it never breaks, so it never seems to get set. Full stop.
thank you, Rob
--
=== John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
On Oct 24, 2007, at 10:17 PM, Rob Withers wrote:
How can I report these to Mantis. Is there a website for it?
http://bugs.squeak.org/main_page.php
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
On Oct 25, 2007, at 04:09 , Rob Withers wrote:
My first post on this list, and it may not be my last. I am trying to run the InterpreterSimulator adn am having issues. Mathieu Suen mentioned this list and that there may be a patch for it. Does anyone know of a patch?
The patches I know of are in this report:
http://bugs.squeak.org/view.php?id=6555
Cheers, Adrian
My current issue is: In postGCAction, the gcSemaphoreIndex is nil, which blows up in signalSemaphoreWithIndex:. Trying to be a bit more self sufficient, I put a halt in primitiveSetGCSemaphore and reran it, but it never breaks, so it never seems to get set. Full stop.
thank you, Rob
I saw that one and tried the patches, but it didn't solve this file access issue. I started http://bugs.squeak.org/bug_view_page.php?bug_id=6740 for that. This may be a 3.10 issue. Or my issue, only, since the patches seem to work for people.
Cheers, Rob
----- Original Message ----- From: "Adrian Lienhard" adi@netstyle.ch To: "Squeak Virtual Machine Development Discussion" vm-dev@lists.squeakfoundation.org Sent: Wednesday, October 24, 2007 11:52 PM Subject: Re: [Vm-dev] Any patch for InterpreterSimulator
On Oct 25, 2007, at 04:09 , Rob Withers wrote:
My first post on this list, and it may not be my last. I am trying to run the InterpreterSimulator adn am having issues. Mathieu Suen mentioned this list and that there may be a patch for it. Does anyone know of a patch?
The patches I know of are in this report:
http://bugs.squeak.org/view.php?id=6555
Cheers, Adrian
My current issue is: In postGCAction, the gcSemaphoreIndex is nil, which blows up in signalSemaphoreWithIndex:. Trying to be a bit more self sufficient, I put a halt in primitiveSetGCSemaphore and reran it, but it never breaks, so it never seems to get set. Full stop.
thank you, Rob
vm-dev@lists.squeakfoundation.org