[GemStone-Smalltalk] GsDevKit_stones - error loading gt4gemstone into a Rowan_371 extent - ERROR 2718 , a ArgumentError occurred (error 2718), attempt to create a CByteArray or CPointer that would reference VM memory
Reg Krock
reg.krock at gmail.com
Mon Jul 8 16:28:38 PDT 2024
Dale,
Jupiter had suggested that and I had tried it both ways with the same result.
Regards
Reg
> On Jul 8, 2024, at 3:12 PM, Dale Henrichs <dale.henrichs at gemtalksystems.com> wrote:
>
> Reg,
>
> One final thought ... There are known issues running native code on 3.7.1 so you could try setting `GEM_NATIVE_CODE_ENABLED = 0;` in the gem.conf file for the stone to see if that cleans up the problem ...
>
> Dale
>
> On Mon, Jul 8, 2024 at 12:06 PM Dale Henrichs <dale.henrichs at gemtalksystems.com <mailto:dale.henrichs at gemtalksystems.com>> wrote:
>> Reg,
>>
>> Thanks for the detailed stack ... I see that the code is getting an error checking for the file .GDKStoneSpec.ston and this check is made by superDoit pretty early on in the process of running a .stone script so this looks an awful lot like a GemStone error.
>>
>> The file .GDKStoneSpec.ston should exist in the the stone directory where you appear to be running the script, so could you double check that the file does indeed exist? That way we should be able to reproduce the problem internally.
>>
>> We do run Github CI tests for a number of different OSX versions for branch v2 [1] and branch v2.1[2] ... so it would be useful to know the version of OSX and the version of GsDEvKit_stones you are using as well ...
>>
>> Dale
>>
>> [1] https://github.com/GsDevKit/GsDevKit_stones/actions/runs/9699834332
>> [2] https://github.com/GsDevKit/GsDevKit_stones/actions/runs/9699899207
>>
>>
>> On Mon, Jul 8, 2024 at 10:44 AM Reg Krock via GemStone-Smalltalk <gemstone-smalltalk at lists.gemtalksystems.com <mailto:gemstone-smalltalk at lists.gemtalksystems.com>> wrote:
>>> I have been trying for a while to fix this problem. And I have not been able to do it. Does anyone have any ideas.
>>>
>>> Thanks
>>>
>>> Reg
>>>
>>> I am getting an error trying to load the gt4gemstone code into a rowan_371 extent.
>>> It has to do with getcwd (See frame 6)
>>>
>>> Environment: OS/X with GsDevKit_stones
>>>
>>> The gslist command results:
>>>
>>> Status Version Owner Started Type Name
>>> ------- --------- --------- ------------ ------ ----
>>> exists 3.7.1 regkrock Jul 08 11:12 Stone rowan_371
>>> exists 3.7.1 regkrock Jul 08 11:12 cache rowan_371~53f4ddf531c645f9
>>>
>>> The gem.conf file is defined as:
>>> GEM_TEMPOBJ_CACHE_SIZE = 1000000;
>>>
>>> The rowan_371 server has been created and I am attempting to load gt4gemstone into the rowan_371 server.
>>>
>>> I run the following command:
>>>
>>> regkrock at rkhome1 rowan_371 % installProject.stone file:$STONES_PROJECTS_HOME/git/gt4gemstone/rowan/specs/gt4gemstone.ston \
>>> --projectsHome=$STONES_PROJECTS_HOME/git/gt4gemstone -D
>>>
>>> I receive the following error:
>>>
>>> ERROR 2718 , a ArgumentError occurred (error 2718), attempt to create a CByteArray or CPointer that would reference VM memory
>>> Near line 8 of file /opt/GsDevKit/git/superDoit/gemstone/superdoit_boot_debug_2.tpz
>>>
>>>
>>> The stack is:
>>>
>>> topaz 1> stack
>>> ==> 1 ArgumentError (AbstractException) >> _signalToDebugger @11 line 8
>>> receiver [26274049 size:5 ArgumentError] a ArgumentError occurred (error 2718), attempt to create a CByteArray or CPointer that would referen ...(12 more bytes)
>>>
>>> res nil
>>> blk nil
>>> proc nil
>>> (skipped 1 temps)
>>> 2 ArgumentError (AbstractException) >> defaultAction @2 line 18
>>> receiver [26274049 size:5 ArgumentError] a ArgumentError occurred (error 2718), attempt to create a CByteArray or CPointer that would referen ...(12 more bytes)
>>>
>>> 3 ArgumentError (AbstractException) >> _defaultAction @4 line 4
>>> receiver [26274049 size:5 ArgumentError] a ArgumentError occurred (error 2718), attempt to create a CByteArray or CPointer that would referen ...(12 more bytes)
>>>
>>> res nil
>>> 4 ArgumentError (AbstractException) >> _signalFromPrimitive @2 line 10
>>> receiver [26274049 size:5 ArgumentError] a ArgumentError occurred (error 2718), attempt to create a CByteArray or CPointer that would referen ...(12 more bytes)
>>>
>>> res nil
>>> num nil
>>> 5 CCallout >> callWith:errno: @1 line 34
>>> receiver [26195457 CCallout] aCCallout getcwd
>>> argsArray [26189825 size:2 Array] anArray
>>> errnoArg [26189057 size:1 Array] anArray
>>> 6 FsLibcUnistd_macOS (FsLibcUnistd) >> getcwd @6 line 18
>>> receiver [26127361 FsLibcUnistd_macOS] aFsLibcUnistd_macOS
>>> errnoHolder [26189057 size:1 Array] anArray
>>> result nil
>>> 7 FsMacOSStore_arm64 (DiskStore) >> currentWorkingDirectoryPath @3 line 5
>>> receiver [26043649 FsMacOSStore_arm64] aFsMacOSStore_arm64
>>> pathString nil
>>> 8 FsDiskFileSystem (FileSystem) >> workingDirectoryPath @3 line 6
>>> receiver [26038273 FsDiskFileSystem] aFsDiskFileSystem
>>> 9 FsDiskFileSystem (FileSystem) >> workingDirectory @2 line 6
>>> receiver [26038273 FsDiskFileSystem] aFsDiskFileSystem
>>> (skipped 1 temps)
>>> 10 SystemResolver >> workingDirectory @3 line 4
>>> receiver [25961985 SystemResolver] aSystemResolver
>>> 11 SystemResolver (Object) >> perform: @1 line 8
>>> receiver [25961985 SystemResolver] aSystemResolver
>>> aSelectorSymbol [20363009 size:16 Symbol] workingDirectory
>>> 12 SystemResolver (FileSystemResolver) >> resolve: @4 line 3
>>> receiver [25961985 SystemResolver] aSystemResolver
>>> aSymbol [20363009 size:16 Symbol] workingDirectory
>>> 13 FileLocator >> resolve @4 line 2
>>> receiver [25801729 FileLocator] aFileLocator
>>> 14 FileLocator >> asFileReference @2 line 2
>>> receiver [25801729 FileLocator] aFileLocator
>>> 15 Executed Code @3 line 1
>>> receiver [25678593 SuperDoitExecutionClass] aSuperDoitExecutionClass
>>> (skipped 3 temps)
>>> 16 GsNMethod >> _executeInContext: @1 line 11
>>> receiver [25679873 size:43 GsNMethod] aGsNMethod
>>> anObject [25678593 SuperDoitExecutionClass] aSuperDoitExecutionClass
>>> 17 String >> evaluateInContext:symbolList: @3 line 10
>>> receiver [25652481 size:512 String] (FileLocator workingDirectory asFileReference / '.GDKStoneSpec.ston') exists\n ifTrue: [ self defin ...(412 more bytes)
>>>
>>> anObject [25678593 SuperDoitExecutionClass] aSuperDoitExecutionClass
>>> aSymbolList [25646337 size:8 SymbolList] aSymbolList
>>> 18 SuperDoitExecutionClass (SuperDoitExecutionMetadataClass) >> theDoit @4 line 15
>>> receiver [25678593 SuperDoitExecutionClass] aSuperDoitExecutionClass
>>> 19 [] in SuperDoitExecution >> doit @20 line 6
>>> self [25678593 SuperDoitExecutionClass] aSuperDoitExecutionClass
>>> receiver [25601793 size:0 ExecBlock0] anExecBlock0
>>> self [25678593 SuperDoitExecutionClass] aSuperDoitExecutionClass
>>> (skipped 1 temps)
>>> 20 ExecBlock0 (ExecBlock) >> on:do: @3 line 44
>>> receiver [25601793 size:0 ExecBlock0] anExecBlock0
>>> exceptionSelector [25575169 size:3 ExceptionSet] anExceptionSet
>>> handlerBlock [25574401 size:0 ExecBlock1] anExecBlock1
>>> fastPath true
>>> 21 SuperDoitExecutionClass (SuperDoitExecution) >> doit @4 line 8
>>> receiver [25678593 SuperDoitExecutionClass] aSuperDoitExecutionClass
>>> res nil
>>> gotEx [26274049 size:5 ArgumentError] a ArgumentError occurred (error 2718), attempt to create a CByteArray or CPointer that would referen ...(12 more bytes)
>>>
>>> exitClientMessage nil
>>> exitClientStatus nil
>>> 22 SuperDoitDoitCommand >> executeAgainst: @27 line 19
>>> receiver [25486593 SuperDoitDoitCommand] aSuperDoitDoitCommand
>>> aCommandParser [25485569 SuperDoitCommandParser] aSuperDoitCommandParser
>>> instance [25678593 SuperDoitExecutionClass] aSuperDoitExecutionClass
>>> (skipped 1 temps)
>>> 23 SuperDoitDoitCommand >> executeAgainst:onErrorDo: @2 line 4
>>> receiver [25486593 SuperDoitDoitCommand] aSuperDoitDoitCommand
>>> aCommandParser [25485569 SuperDoitCommandParser] aSuperDoitCommandParser
>>> errorBlock [25479169 size:0 ExecBlock] anExecBlock
>>> 24 [] in SuperDoitCommandDefinition >> executeAgainst:onErrorDo: @7 line 3
>>> self nil
>>> receiver [25474049 size:0 ExecBlock1] anExecBlock1
>>> command [25486593 SuperDoitDoitCommand] aSuperDoitDoitCommand
>>> errorBlock [25479169 size:0 ExecBlock] anExecBlock
>>> aCommandParser [25485569 SuperDoitCommandParser] aSuperDoitCommandParser
>>> (skipped 1 temps)
>>> 25 OrderedCollection (Collection) >> do: @5 line 10
>>> receiver [25466881 size:8 OrderedCollection] anOrderedCollection
>>> aBlock [25474049 size:0 ExecBlock1] anExecBlock1
>>> i 8
>>> (skipped 2 temps)
>>> 26 SuperDoitCommandDefinition >> executeAgainst:onErrorDo: @3 line 3
>>> receiver [25463297 SuperDoitCommandDefinition] aSuperDoitCommandDefinition
>>> aCommandParser [25485569 SuperDoitCommandParser] aSuperDoitCommandParser
>>> errorBlock [25479169 size:0 ExecBlock] anExecBlock
>>> (skipped 1 temps)
>>> 27 [] in SuperDoitCommandParser >> parseAndExecuteScriptFile: @22 line 17
>>> self [25485569 SuperDoitCommandParser] aSuperDoitCommandParser
>>> receiver [25456385 size:0 ExecBlock0] anExecBlock0
>>> command [25486593 SuperDoitDoitCommand] aSuperDoitDoitCommand
>>> self [25485569 SuperDoitCommandParser] aSuperDoitCommandParser
>>> 28 ExecBlock0 (ExecBlock) >> ensure: @2 line 12
>>> receiver [25456385 size:0 ExecBlock0] anExecBlock0
>>> terminationBlock [25428481 size:0 ExecBlock] anExecBlock
>>> result nil
>>> b nil
>>> 29 SuperDoitCommandParser >> parseAndExecuteScriptFile: @4 line 53
>>> receiver [25485569 SuperDoitCommandParser] aSuperDoitCommandParser
>>> scriptFilePath [25424897 size:58 String] /opt/GsDevKit/git/GsDevKit_stones/bin/installProject.stone
>>> (skipped 3 temps)
>>> 30 SuperDoitCommandParser class >> processInputFile @29 line 21
>>> receiver [26255361 SuperDoitCommandParser class] SuperDoitCommandParser
>>> args [25324801 size:11 Array] anArray
>>> scriptArgStart 6
>>> argIndex 7
>>> scriptFile [25424897 size:58 String] /opt/GsDevKit/git/GsDevKit_stones/bin/installProject.stone
>>> scriptArgs [25323777 size:3 Array] anArray
>>> scriptArgIndex 8
>>> (skipped 1 temps)
>>> 31 Executed Code @2 line 6
>>> receiver nil
>>> 32 GsNMethod class >> _gsReturnToC @1 line 11
>>> receiver [144897 GsNMethod class] GsNMethod
>>> [GsProcess 26291457]
>>> topaz 1>
>>>
>>>
>>> _______________________________________________
>>> GemStone-Smalltalk mailing list
>>> GemStone-Smalltalk at lists.gemtalksystems.com <mailto:GemStone-Smalltalk at lists.gemtalksystems.com>
>>> https://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/archives/gemstone-smalltalk/attachments/20240708/d1ff4ae6/attachment-0001.htm>
More information about the GemStone-Smalltalk
mailing list