Hi,

I���ve built a stackVM straight out of the box from the instructions at https://github.com/pharo-project/pharo-vm to run some experiments. So I���m trying for a simple Hello world on stdout/stderr. I assumed on headless Transcript would go to some useful place, so I tried,

I have a hello.st
-----
Transcript show: 'hello world!';cr.
"(Smalltalk at: #Transcript) show: 'hello world!';cr."
-----
and run-test:
-----
#! /bin/sh
#
# Run it with a headless Pharo:
#
DIR=~/git/pharo-project/stackVM/build
VM=$DIR/vm/Debug/Pharo.app/Contents/MacOS/Pharo
#IMAGE=$DIR/dist/pharo-vm/resources/img.image
IMAGE=img.image
ls -l $VM $IMAGE
grep . "$@" /dev/null
set -x
$VM -vm-display-null -headless --logLevel=4 $IMAGE "$@" --save --quit
-----

and I get:
: Sep14 ; date;./run-test hello.st ;date
Wed 14 Sep 2022 14:09:17 EDT
-rwxr-xr-x 1 dmason staff 50226 9 Sep 14:08 /Users/dmason/git/pharo-project/stackVM/build/vm/Debug/Pharo.app/Contents/MacOS/Pharo
-rw-r--r-- 1 dmason staff 206336 13 Sep 23:21 img.image
hello.st:Transcript show: 'hello world!';cr.
hello.st:"(Smalltalk at: #Transcript) show: 'hello world!';cr."
+ /Users/dmason/git/pharo-project/stackVM/build/vm/Debug/Pharo.app/Contents/MacOS/Pharo -vm-display-null -headless --logLevel=4 img.image hello.st --save --quit
[DEBUG] 2022-09-14 14:09:17.000 logParameters (src/parameters/parameters.c:341):Image file name: img.image
[DEBUG] 2022-09-14 14:09:17.000 logParameters (src/parameters/parameters.c:342):Is default Image: no
[DEBUG] 2022-09-14 14:09:17.000 logParameters (src/parameters/parameters.c:343):Is interactive session: no
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:331):vmParameters [count = 5]:
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:334): /Users/dmason/git/pharo-project/stackVM/build/vm/Debug/Pharo.app/Contents/MacOS/Pharo
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:334): -vm-display-null
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:334): -headless
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:334): --logLevel=4
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:334): --headless
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:331):imageParameters [count = 3]:
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:334): hello.st
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:334): --save
[DEBUG] 2022-09-14 14:09:17.000 logParameterVector (src/parameters/parameters.c:334): --quit
[INFO ] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:113):Opening Image: img.image
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:135):Working Directory /Users/dmason/git/AST-Smalltalk/testing
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:137):sizeof(int): 4
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:138):sizeof(long): 8
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:139):sizeof(long long): 8
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:140):sizeof(void*): 8
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:141):sizeof(sqInt): 8
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:142):sizeof(sqLong): 8
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:143):sizeof(float): 4
[DEBUG] 2022-09-14 14:09:17.000 vm_main_with_parameters (src/client.c:144):sizeof(double): 8
[DEBUG] 2022-09-14 14:09:17.000 runOnMainThread (src/client.c:254):Running VM on main thread
[DEBUG] 2022-09-14 14:09:17.000 sqAllocateMemory (src/memoryUnix.c:139):Trying to load the image in 0x804000
[DEBUG] 2022-09-14 14:09:17.000 sqAllocateMemory (src/memoryUnix.c:181):Loading the image in 0x106fa4000
[WARN ] 2022-09-14 14:09:17.000 ioLoadModule (src/externalPrimitives.c:102):Failed to load module: SecurityPlugin

and 40 minutes later it exits having been kill -9���ed

Once, it exited quickly, but I have no idea what was different that time. Also ���save does seem to do anything.

If it reliably exited, I could experiment, but I have no idea what���s happening.

Help! (and Thanks in advance)

../Dave