OpenSmalltalk / opensmalltalk-vm

Cross-platform virtual machine for Squeak, Pharo, Cuis, and Newspeak.
http://opensmalltalk.org/
Other
557 stars 111 forks source link

AARCH64/ARM64 OSProcess forking crashes VM immediately #681

Open timrowledge opened 5 months ago

timrowledge commented 5 months ago

OSProcess includes a neat way to fork the running image/vm but unfortunately it doesn't work on arm64 (at least, not on a Pi3/4/5).

We had some discussion about this a while back (sorry, not written notes I can find) and I think we concluded it was likely to do with the setup for the dual-access of the translated code memory area not getting carried across with the fork.

OpenSmalltalk-Bot commented 5 months ago

Please remove me from the list. Sent from my iPhone

On Apr 11, 2024, at 9:41 AM, tim Rowledge via Vm-dev @.***> wrote:



OSProcess includes a neat way to fork the running image/vm but unfortunately it doesn't work on arm64 (at least, not on a Pi3/4/5).

We had some discussion about this a while back (sorry, not written notes I can find) and I think we concluded it was likely to do with the setup for the dual-access of the translated code memory area not getting carried across with the fork.

— Reply to this email directly, view it on GitHubhttps://github.com/OpenSmalltalk/opensmalltalk-vm/issues/681, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIJPEW6AJ2ER2IHVSJ7R6U3Y424I7AVCNFSM6AAAAABGCURUZ2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTQMJTHAZDCNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

OpenSmalltalk-Bot commented 5 months ago

Please remove me from list. Thank you Sent from my iPhone

On Apr 11, 2024, at 1:05 PM, Pete Fazio @.***> wrote:

 Please remove me from the list. Sent from my iPhone

On Apr 11, 2024, at 9:41 AM, tim Rowledge via Vm-dev @.***> wrote:



OSProcess includes a neat way to fork the running image/vm but unfortunately it doesn't work on arm64 (at least, not on a Pi3/4/5).

We had some discussion about this a while back (sorry, not written notes I can find) and I think we concluded it was likely to do with the setup for the dual-access of the translated code memory area not getting carried across with the fork.

— Reply to this email directly, view it on GitHubhttps://github.com/OpenSmalltalk/opensmalltalk-vm/issues/681, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIJPEW6AJ2ER2IHVSJ7R6U3Y424I7AVCNFSM6AAAAABGCURUZ2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTQMJTHAZDCNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>