immortalvm / ivm-implementations

iVM contemporary implementations
5 stars 0 forks source link

v0.32 crash #32

Closed oleliabo closed 3 years ago

oleliabo commented 3 years ago

Testing release v0.32 on Ubuntu:

ole@ivm:~/dev/testzone/ivm-apps/build/ivm/app$ ivm
Failure processing application bundle.
Couldn't open host binary for reading contents
Segmentation fault (core dumped)
oleliabo commented 3 years ago

Get same problem on v0.31 as well.

ivar-rummelhoff commented 3 years ago

Please provide more details. I have no problem running the latest release on Ubuntu 18.04 LTS:

ivarru@pogo:~$ unzip v0.32_linux-x64.zip
Archive:  v0.32_linux-x64.zip
  inflating: ivm
  inflating: ivm.pdb
ivarru@pogo:~$ chmod u+rx ivm*
ivarru@pogo:~$ ./ivm
iVM Assembler and VM, v0.32
elnv commented 3 years ago

Problably there are some conflicts in the directory where the .net bundle is decompressed. If this is the reason, it can be solved by declaring a per-user directory in ~/.bashrc, for example:

# Avoid problems with the ivm dotnet bundle
# Failure processing application bundle.
# Failed to create directory [/var/tmp/.net/ivm/] for extracting bundled files
# The default directory /var/tmp/.net/ivm/ is shared by all users causing this failure
export DOTNET_BUNDLE_EXTRACT_BASE_DIR=/tmp/_var_tmp_dotnet_${USER}/
oleliabo commented 3 years ago

I had only set the execute permission.